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

Unified Diff: android_webview/native/aw_web_contents_delegate.cc

Issue 10941015: [Android] Upstream the WebView find-in-page API implementation. (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 | « android_webview/native/aw_web_contents_delegate.h ('k') | android_webview/native/cookie_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_web_contents_delegate.cc
diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc
index 249ee0f51fadf7a86a6efe8ee61125ec1ed8a394..2a04d2dd7f29f0a6521218eb4dc9085e7658e012 100644
--- a/android_webview/native/aw_web_contents_delegate.cc
+++ b/android_webview/native/aw_web_contents_delegate.cc
@@ -5,7 +5,12 @@
#include "android_webview/native/aw_web_contents_delegate.h"
#include "base/lazy_instance.h"
+#include "android_webview/browser/find_helper.h"
+#include "android_webview/native/aw_contents.h"
#include "android_webview/native/aw_javascript_dialog_creator.h"
+#include "content/public/browser/web_contents.h"
+
+using content::WebContents;
namespace android_webview {
@@ -26,4 +31,20 @@ AwWebContentsDelegate::GetJavaScriptDialogCreator() {
return g_javascript_dialog_creator.Pointer();
}
+void AwWebContentsDelegate::FindReply(WebContents* web_contents,
+ int request_id,
+ int number_of_matches,
+ const gfx::Rect& selection_rect,
+ int active_match_ordinal,
+ bool final_update) {
+ AwContents* aw_contents = AwContents::FromWebContents(web_contents);
+ if (!aw_contents)
+ return;
+
+ aw_contents->GetFindHelper()->HandleFindReply(request_id,
+ number_of_matches,
+ active_match_ordinal,
+ final_update);
+}
+
} // namespace android_webview
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.h ('k') | android_webview/native/cookie_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698