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

Unified Diff: content/public/browser/web_contents.h

Issue 1851793002: Implement a shell of FindRequestManager, and hook it up to WebContentsImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and small fix. Created 4 years, 8 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: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 94ee37dd4b26fe950931c446e65e3cbfa77c88b5..eb0da0053015e6628ce668f844482e4f5700d8b4 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -708,6 +708,20 @@ class WebContents : public PageNavigator,
CONTENT_EXPORT static WebContents* FromJavaWebContents(
jobject jweb_contents_android);
virtual base::android::ScopedJavaLocalRef<jobject> GetJavaWebContents() = 0;
+
+ // Selects and zooms to the find result nearest to the point (x,y) defined in
+ // find-in-page coordinates.
+ virtual void ActivateNearestFindResult(float x, float y) = 0;
+
+ // Requests the rects of the current find matches from the renderer
+ // process. |current_version| is the version of find rects that the caller
+ // already knows about. This version will be compared to the current find
+ // rects version in the renderer process (which is updated whenever the rects
+ // change), to see which new rect data will need to be sent back.
+ //
+ // TODO(paulmeyer): This process will change slightly once multi-process
+ // find-in-page is implemented. This comment should be updated at that time.
+ virtual void RequestFindMatchRects(int current_version) = 0;
#elif defined(OS_MACOSX)
// Allowing other views disables optimizations which assume that only a single
// WebContents is present.
« no previous file with comments | « content/public/browser/render_frame_host.h ('k') | extensions/browser/guest_view/web_view/web_view_find_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698