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

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

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
« no previous file with comments | « chrome/browser/ui/find_bar/find_tab_helper.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/find_bar/find_tab_helper.cc
diff --git a/chrome/browser/ui/find_bar/find_tab_helper.cc b/chrome/browser/ui/find_bar/find_tab_helper.cc
index 7b9dee16acc8125fa1d3918819f7ecd1255b2c6e..d3b5591a6e4651c6762c640517e5e1c71b821243 100644
--- a/chrome/browser/ui/find_bar/find_tab_helper.cc
+++ b/chrome/browser/ui/find_bar/find_tab_helper.cc
@@ -15,6 +15,7 @@
#include "content/public/browser/web_contents.h"
#include "content/public/common/stop_find_action.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
+#include "ui/gfx/rect_f.h"
using WebKit::WebFindOptions;
using content::WebContents;
@@ -124,6 +125,20 @@ void FindTabHelper::StopFinding(
web_contents()->GetRenderViewHost()->StopFinding(action);
}
+#if defined(OS_ANDROID)
+void FindTabHelper::ActivateNearestFindResult(float x, float y) {
+ if (!find_op_aborted_ && !find_text_.empty()) {
+ web_contents()->GetRenderViewHost()->ActivateNearestFindResult(
+ current_find_request_id_, x, y);
+ }
+}
+
+void FindTabHelper::RequestFindMatchRects(int current_version) {
+ if (!find_op_aborted_ && !find_text_.empty())
+ web_contents()->GetRenderViewHost()->RequestFindMatchRects(current_version);
+}
+#endif
+
void FindTabHelper::HandleFindReply(int request_id,
int number_of_matches,
const gfx::Rect& selection_rect,
« no previous file with comments | « chrome/browser/ui/find_bar/find_tab_helper.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698