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

Unified Diff: Source/WebKit/chromium/public/WebFrame.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/public/WebFrame.h
diff --git a/Source/WebKit/chromium/public/WebFrame.h b/Source/WebKit/chromium/public/WebFrame.h
index 86fdec2e3b426490d291fd951e1071be321ab11b..0ec7ba5ac99333b9a74877ebb6d56798f0b1bb69 100644
--- a/Source/WebKit/chromium/public/WebFrame.h
+++ b/Source/WebKit/chromium/public/WebFrame.h
@@ -67,6 +67,7 @@ class WebURLRequest;
class WebView;
struct WebConsoleMessage;
struct WebFindOptions;
+struct WebPoint;
struct WebRect;
struct WebScriptSource;
struct WebSize;
@@ -370,8 +371,15 @@ public:
virtual WebRange markedRange() const = 0;
+ // Returns the frame rectangle in window coordinate space of the given text
+ // range.
virtual bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&) const = 0;
+ // Returns the index of a character in the Frame's text stream at the given
+ // point. The point is in the window coordinate space. Will return
+ // WTF::notFound if the point is invalid.
+ virtual unsigned characterIndexForPoint(const WebPoint& point) const = 0;
+
// Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll,
// Unselect, etc. See EditorCommand.cpp for the full list of supported
// commands.

Powered by Google App Engine
This is Rietveld 408576698