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

Unified Diff: webkit/api/public/WebFrameClient.h

Issue 246079: More WebView / WebViewDelegate cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/renderer/render_view.cc ('k') | webkit/api/public/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebFrameClient.h
===================================================================
--- webkit/api/public/WebFrameClient.h (revision 27906)
+++ webkit/api/public/WebFrameClient.h (working copy)
@@ -50,6 +50,7 @@
class WebWorker;
class WebWorkerClient;
struct WebPluginParams;
+ struct WebRect;
struct WebSize;
struct WebURLError;
@@ -221,9 +222,23 @@
virtual void didChangeContentsSize(WebFrame*, const WebSize&) = 0;
- // FIXME need to add:
- // find-in-page
+ // Find-in-page notifications ------------------------------------------
+ // Notifies how many matches have been found so far, for a given
+ // identifier. |finalUpdate| specifies whether this is the last update
+ // (all frames have completed scoping).
+ virtual void reportFindInPageMatchCount(
+ int identifier, int count, bool finalUpdate) = 0;
+
+ // Notifies what tick-mark rect is currently selected. The given
+ // identifier lets the client know which request this message belongs
+ // to, so that it can choose to ignore the message if it has moved on
+ // to other things. The selection rect is expected to have coordinates
+ // relative to the top left corner of the web page area and represent
+ // where on the screen the selection rect is currently located.
+ virtual void reportFindInPageSelection(
+ int identifier, int activeMatchOrdinal, const WebRect& selection) = 0;
+
protected:
~WebFrameClient() { }
};
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/api/public/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698