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

Unified Diff: chrome/browser/ui/find_bar/find_tab_helper.h

Issue 10905058: Upstream the Android port find-in-page feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixes. Created 8 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
Index: chrome/browser/ui/find_bar/find_tab_helper.h
diff --git a/chrome/browser/ui/find_bar/find_tab_helper.h b/chrome/browser/ui/find_bar/find_tab_helper.h
index be11ed9e87784899d82d42ed99e67e82d24453a0..db31cd9f66c38f342e3cd5e60715fb22ae2576b1 100644
--- a/chrome/browser/ui/find_bar/find_tab_helper.h
+++ b/chrome/browser/ui/find_bar/find_tab_helper.h
@@ -9,6 +9,10 @@
#include "chrome/browser/ui/find_bar/find_notification_details.h"
#include "content/public/browser/web_contents_observer.h"
+namespace gfx {
+class RectF;
+}
+
// Per-tab find manager. Handles dealing with the life cycle of find sessions.
class FindTabHelper : public content::WebContentsObserver {
public:
@@ -57,6 +61,15 @@ class FindTabHelper : public content::WebContentsObserver {
return last_search_result_;
}
+#if defined(OS_ANDROID)
+ // Selects and zooms to the find result nearest to the point (x,y)
+ // defined in find-in-page coordinates.
+ void ActivateNearestFindResult(float x, float y);
+
+ // Asks the renderer to send the rects of the current find matches.
+ void RequestFindMatchRects(int current_version);
+#endif
+
void HandleFindReply(int request_id,
int number_of_matches,
const gfx::Rect& selection_rect,
« no previous file with comments | « chrome/browser/ui/find_bar/find_match_rects_details.cc ('k') | chrome/browser/ui/find_bar/find_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698