diff options
author | John Reck <jreck@google.com> | 2012-02-01 09:47:34 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-02-01 15:06:40 -0800 |
commit | a21f4ae9448c287a3af2010accf179c8d54dcfe4 (patch) | |
tree | 7d649d83e8fb4d8da450121a9ee15eaf738cfadc /Source/WebKit/android/jni/WebViewCore.h | |
parent | 241f50e7db9a790bba271aebe4b276375c33a172 (diff) | |
download | external_webkit-a21f4ae9448c287a3af2010accf179c8d54dcfe4.zip external_webkit-a21f4ae9448c287a3af2010accf179c8d54dcfe4.tar.gz external_webkit-a21f4ae9448c287a3af2010accf179c8d54dcfe4.tar.bz2 |
Fix text selection on iframes
Change-Id: Ie1943ef0ba2d353fac20ff67f78a1647921daec4
Diffstat (limited to 'Source/WebKit/android/jni/WebViewCore.h')
-rw-r--r-- | Source/WebKit/android/jni/WebViewCore.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/WebKit/android/jni/WebViewCore.h b/Source/WebKit/android/jni/WebViewCore.h index cb345dd..9fc55d1 100644 --- a/Source/WebKit/android/jni/WebViewCore.h +++ b/Source/WebKit/android/jni/WebViewCore.h @@ -305,7 +305,7 @@ namespace android { void recordPicture(SkPicture* picture); void moveFocus(WebCore::Frame* frame, WebCore::Node* node); - void moveMouse(WebCore::Frame* frame, int x, int y); + void moveMouse(WebCore::Frame* frame, int x, int y, HitTestResult* hoveredNode = 0); void moveMouseIfLatest(int moveGeneration, WebCore::Frame* frame, int x, int y); @@ -547,6 +547,7 @@ namespace android { float scale() const { return m_scale; } float textWrapScale() const { return m_screenWidth * m_scale / m_textWrapWidth; } WebCore::Frame* mainFrame() const { return m_mainFrame; } + WebCore::Frame* focusedFrame() const; void updateCursorBounds(const CachedRoot* root, const CachedFrame* cachedFrame, const CachedNode* cachedNode); @@ -607,6 +608,9 @@ namespace android { void selectText(int startX, int startY, int endX, int endY); void selectWordAt(int x, int y); + // Converts from the global content coordinates that WebView sends + // to frame-local content coordinates using the focused frame + IntPoint convertGlobalContentToFrameContent(const IntPoint& point); static void layerToAbsoluteOffset(const LayerAndroid* layer, IntPoint& offset); /** @@ -708,8 +712,9 @@ namespace android { static WebCore::Position getPositionForOffset(Node* node, int offset); VisiblePosition visiblePositionForContentPoint(int x, int y); + VisiblePosition visiblePositionForContentPoint(const IntPoint& point); void selectWordAroundPosition(Frame* frame, VisiblePosition pos); - static SelectText* createSelectText(const VisibleSelection&); + SelectText* createSelectText(const VisibleSelection&); // called from constructor, to add this to a global list static void addInstance(WebViewCore*); |