diff options
author | John Reck <jreck@google.com> | 2012-01-31 13:17:36 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-01-31 13:27:30 -0800 |
commit | 4b742e0b2c2d5e79a987688fd7d2cce5b0b24842 (patch) | |
tree | 2b74642142d3be70c73062cf6ab8d523fa7c3a1a /Source/WebKit/android/nav/SelectText.h | |
parent | dea0c131566f424923425970fe5621305d136e5a (diff) | |
download | external_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.h | 24 |
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; |