summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/nav/SelectText.h
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2012-03-21 11:09:27 -0700
committerGeorge Mount <mount@google.com>2012-03-28 07:14:49 -0700
commit304991de60a64b43bffd0c910655ee4ef1e9683c (patch)
treefb352c7dbcb3e0f85f8eccc8262b2df7ab787797 /Source/WebKit/android/nav/SelectText.h
parentec2823d23ab1a53b60599e9192d86b37f2e44d5f (diff)
downloadexternal_webkit-304991de60a64b43bffd0c910655ee4ef1e9683c.zip
external_webkit-304991de60a64b43bffd0c910655ee4ef1e9683c.tar.gz
external_webkit-304991de60a64b43bffd0c910655ee4ef1e9683c.tar.bz2
Snap selection handles to text.
Bug 6198286 Framework Change: I3c51ed5f6988d58440badfbe8b076fd83d48ae2a Change-Id: I55604f3ec28586beaec5fd98a27c9f4b8a59a8a5
Diffstat (limited to 'Source/WebKit/android/nav/SelectText.h')
-rw-r--r--Source/WebKit/android/nav/SelectText.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/WebKit/android/nav/SelectText.h b/Source/WebKit/android/nav/SelectText.h
index 904b2b9..50bc82e 100644
--- a/Source/WebKit/android/nav/SelectText.h
+++ b/Source/WebKit/android/nav/SelectText.h
@@ -43,6 +43,8 @@ public:
IntRect& caretRect(HandleId id) { return m_caretRects[mapId(id)]; }
void setCaretRect(HandleId id, const IntRect& rect) { m_caretRects[mapId(id)] = rect; }
+ IntRect& textRect(HandleId id) { return m_textRects[mapId(id)]; }
+ void setTextRect(HandleId id, const IntRect& rect) { m_textRects[mapId(id)] = rect; }
int caretLayerId(HandleId id) { return m_caretLayerId[mapId(id)]; }
void setCaretLayerId(HandleId id, int layerId) { m_caretLayerId[mapId(id)] = layerId; }
@@ -56,6 +58,7 @@ private:
HandleId mapId(HandleId id);
IntRect m_caretRects[2];
+ IntRect m_textRects[2];
int m_caretLayerId[2];
bool m_baseIsFirst;
String m_text;