summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/nav/SelectText.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-01-31 13:17:36 -0800
committerJohn Reck <jreck@google.com>2012-01-31 13:27:30 -0800
commit4b742e0b2c2d5e79a987688fd7d2cce5b0b24842 (patch)
tree2b74642142d3be70c73062cf6ab8d523fa7c3a1a /Source/WebKit/android/nav/SelectText.h
parentdea0c131566f424923425970fe5621305d136e5a (diff)
downloadexternal_webkit-4b742e0b2c2d5e79a987688fd7d2cce5b0b24842.zip
external_webkit-4b742e0b2c2d5e79a987688fd7d2cce5b0b24842.tar.gz
external_webkit-4b742e0b2c2d5e79a987688fd7d2cce5b0b24842.tar.bz2
Minor draw extras cleanup and refactor
Change-Id: Iba601e384549c11cf659a47e06c586048f624148
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;