diff options
author | John Reck <jreck@google.com> | 2011-10-27 09:07:40 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-10-27 11:29:40 -0700 |
commit | e94313e95fb5e08870a58c7a4b593da08cc3d424 (patch) | |
tree | 00a6fed1c8ca2a6c1edf88a5729cc5ddfee802a6 /Source/WebKit/android/nav/SelectText.h | |
parent | 4476ae7e9e02e5c2ff8a776f01d3fb50e8a4c895 (diff) | |
download | external_webkit-e94313e95fb5e08870a58c7a4b593da08cc3d424.zip external_webkit-e94313e95fb5e08870a58c7a4b593da08cc3d424.tar.gz external_webkit-e94313e95fb5e08870a58c7a4b593da08cc3d424.tar.bz2 |
Keep text handles in sync with native touch targets
Bug: 5522153
Also add some slop to the handle targets, cleaned
up the JNI and improved debugging.
Change-Id: I3b2c3c8b1543d4a1aa599ae2938fa78fe95e01bf
Diffstat (limited to 'Source/WebKit/android/nav/SelectText.h')
-rw-r--r-- | Source/WebKit/android/nav/SelectText.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebKit/android/nav/SelectText.h b/Source/WebKit/android/nav/SelectText.h index e5f7f59..4abf378 100644 --- a/Source/WebKit/android/nav/SelectText.h +++ b/Source/WebKit/android/nav/SelectText.h @@ -59,6 +59,7 @@ public: bool wordSelection(const CachedRoot* , const IntRect& vis, int x, int y); void getSelectionRegion(const IntRect& vis, SkRegion *region, LayerAndroid* root); void updateHandleScale(float handleScale); + void getSelectionHandles(int* handles); public: float m_inverseScale; // inverse scale, x, y used for drawing select path int m_selectX; @@ -66,6 +67,7 @@ public: private: int m_controlWidth; int m_controlHeight; + int m_controlSlop; class FirstCheck; class EdgeCheck; void drawSelectionPointer(SkCanvas* , IntRect* ); |