summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/nav/SelectText.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-01-31 13:52:20 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-01-31 13:52:20 -0800
commit14fbfc39bce36536e4d7a08303c10a58081f0b87 (patch)
tree160aef6ca9ef805074e4ed235a7879adb2aa4638 /Source/WebKit/android/nav/SelectText.h
parent6978cfc9ce9dcd4b7c83d9f8b3ecca9cc52474c1 (diff)
parent4b742e0b2c2d5e79a987688fd7d2cce5b0b24842 (diff)
downloadexternal_webkit-14fbfc39bce36536e4d7a08303c10a58081f0b87.zip
external_webkit-14fbfc39bce36536e4d7a08303c10a58081f0b87.tar.gz
external_webkit-14fbfc39bce36536e4d7a08303c10a58081f0b87.tar.bz2
Merge "Minor draw extras cleanup and refactor"
Diffstat (limited to 'Source/WebKit/android/nav/SelectText.h')
-rw-r--r--Source/WebKit/android/nav/SelectText.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/Source/WebKit/android/nav/SelectText.h b/Source/WebKit/android/nav/SelectText.h
index 33d9f3f..904b2b9 100644
--- a/Source/WebKit/android/nav/SelectText.h
+++ b/Source/WebKit/android/nav/SelectText.h
@@ -27,18 +27,12 @@
#define SelectText_h
#include "DrawExtra.h"
-#include "IntPoint.h"
#include "IntRect.h"
#include "PlatformString.h"
-#include "SkPath.h"
-#include "SkPicture.h"
-#include "SkRect.h"
-#include "SkRegion.h"
-#include "wtf/Vector.h"
namespace android {
-class SelectText : public DrawExtra {
+class SelectText : public RegionLayerDrawExtra {
public:
enum HandleId {
StartHandle = 0,
@@ -47,20 +41,6 @@ public:
ExtentHandle = 3,
};
- SelectText() {}
- virtual ~SelectText();
-
- SkRegion* getHightlightRegionsForLayer(int layerId) {
- return m_highlightRegions.get(layerId);
- }
-
- void setHighlightRegionsForLayer(int layerId, SkRegion* region) {
- m_highlightRegions.set(layerId, region);
- }
-
- virtual void draw(SkCanvas*, LayerAndroid*);
- virtual void drawGL(GLExtras*, const LayerAndroid*);
-
IntRect& caretRect(HandleId id) { return m_caretRects[mapId(id)]; }
void setCaretRect(HandleId id, const IntRect& rect) { m_caretRects[mapId(id)] = rect; }
int caretLayerId(HandleId id) { return m_caretLayerId[mapId(id)]; }
@@ -75,8 +55,6 @@ public:
private:
HandleId mapId(HandleId id);
- typedef HashMap<int, SkRegion* > HighlightRegionMap;
- HighlightRegionMap m_highlightRegions;
IntRect m_caretRects[2];
int m_caretLayerId[2];
bool m_baseIsFirst;