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

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: 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..846017d87e7b2d9bfb1f73411d28e968b93a7c8d 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,19 @@ 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);
+
+ void HandleGetFindMatchRectsReply(int version,
jam 2012/09/04 16:39:09 it seems very unnecessary that chrome_web_contents
Leandro GraciĆ” Gil 2012/09/04 18:25:50 This was done this way in order to get a symmetric
+ const std::vector<gfx::RectF>& rects,
+ const gfx::RectF& active_rect);
+#endif
+
void HandleFindReply(int request_id,
int number_of_matches,
const gfx::Rect& selection_rect,

Powered by Google App Engine
This is Rietveld 408576698