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

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: Address feedback Created 9 years, 9 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
« no previous file with comments | « Source/WebKit/chromium/WebKit.gyp ('k') | Source/WebKit/chromium/public/WebWidget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/public/WebFrame.h
diff --git a/Source/WebKit/chromium/public/WebFrame.h b/Source/WebKit/chromium/public/WebFrame.h
index bbb3c59df6a1fe41f614a9d5e683f71f4b56bb09..7b0624b1d64bb6ab80be9da828611ae4f5125ca3 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;
@@ -379,8 +380,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&) const = 0;
+
// Supports commands like Undo, Redo, Cut, Copy, Paste, SelectAll,
// Unselect, etc. See EditorCommand.cpp for the full list of supported
// commands.
« no previous file with comments | « Source/WebKit/chromium/WebKit.gyp ('k') | Source/WebKit/chromium/public/WebWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698