Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: Source/WebKit/chromium/src/WebFrameImpl.h

Issue 6532004: DO NOT SUBMIT (Closed) Base URL: git://git.webkit.org/WebKit.git@master
Patch Set: Migrate WebTextHelper Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebKit/chromium/src/WebFrameImpl.h
diff --git a/Source/WebKit/chromium/src/WebFrameImpl.h b/Source/WebKit/chromium/src/WebFrameImpl.h
index 55a9f54c7eeb7ddf3fd4162716cc306ff4d0241d..fda30fbffcd6634e23dc6f36139cb031349b7516 100644
--- a/Source/WebKit/chromium/src/WebFrameImpl.h
+++ b/Source/WebKit/chromium/src/WebFrameImpl.h
@@ -141,6 +141,7 @@ public:
virtual bool hasMarkedText() const;
virtual WebRange markedRange() const;
virtual bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&) const;
+ virtual unsigned characterIndexForPoint(const WebPoint& point) const;
virtual bool executeCommand(const WebString&);
virtual bool executeCommand(const WebString&, const WebString& value);
virtual bool isCommandEnabled(const WebString&) const;
@@ -320,6 +321,13 @@ private:
void loadJavaScriptURL(const WebCore::KURL&);
+ // Given a point in content coordinate space, this will return a Range that
+ // contains that point.
+ WebCore::Range* characterRangeAtPoint(const WebCore::IntPoint& point) const;
+
+ // Takes in a Range and extracts a location and length of that range.
+ bool getLocationAndLengthFromRange(WebCore::Range* range, unsigned& location, unsigned& length) const;
+
FrameLoaderClientImpl m_frameLoaderClient;
WebFrameClient* m_client;

Powered by Google App Engine
This is Rietveld 408576698