summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/nav/SelectText.h
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2012-06-04 14:48:08 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-06-04 14:48:08 -0700
commitdcf207c3db53858c06cf054f06721370eba23c77 (patch)
treef2865279b10c584e341166bd10867fcd9d3f1429 /Source/WebKit/android/nav/SelectText.h
parent694d4b356b21c9d78cf5ba3ce101b0a76a23f859 (diff)
parent2d66db6bf0f6f3687361cce7d9280de47ed591ee (diff)
downloadexternal_webkit-dcf207c3db53858c06cf054f06721370eba23c77.zip
external_webkit-dcf207c3db53858c06cf054f06721370eba23c77.tar.gz
external_webkit-dcf207c3db53858c06cf054f06721370eba23c77.tar.bz2
Merge "Change from left/right to base/extent for selection handles."
Diffstat (limited to 'Source/WebKit/android/nav/SelectText.h')
-rw-r--r--Source/WebKit/android/nav/SelectText.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/WebKit/android/nav/SelectText.h b/Source/WebKit/android/nav/SelectText.h
index aaaf3bb..8f7592d 100644
--- a/Source/WebKit/android/nav/SelectText.h
+++ b/Source/WebKit/android/nav/SelectText.h
@@ -35,8 +35,13 @@ namespace android {
class SelectText : public RegionLayerDrawExtra {
public:
enum HandleId {
+ BaseHandle = 0,
+ ExtentHandle = 1,
+ };
+ enum HandleType {
LeftHandle = 0,
- RightHandle = 1,
+ CenterHandle = 1,
+ RightHandle = 2,
};
IntRect& caretRect(HandleId id) { return m_caretRects[id]; }
@@ -48,11 +53,14 @@ public:
void setText(const String& text) { m_text = text.threadsafeCopy(); }
String& getText() { return m_text; }
+ HandleType getHandleType(HandleId id) { return m_handleType[id]; }
+ void setHandleType(HandleId id, HandleType type) { m_handleType[id] = type; }
private:
IntRect m_caretRects[2];
IntRect m_textRects[2];
int m_caretLayerId[2];
+ HandleType m_handleType[2];
String m_text;
};