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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 597753003: Implement find in page support for top level BrowserPlugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index f2a0f74dd0be0d5abaa9a5ac17b99f8c89617c12..fad9c3086e7fe4964b97d8303289a6a6598e6ff7 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -348,6 +348,19 @@ void BrowserPluginGuest::SetContentsOpaque(bool opaque) {
browser_plugin_instance_id(), opaque));
}
+void BrowserPluginGuest::OnFindReply(int request_id,
+ int number_of_matches,
+ const gfx::Rect& selection_rect,
+ int active_match_ordinal,
+ bool final_update) {
+ // TODO(raymes): Check that this is a top-level guest first somehow.
+ if (embedder_web_contents_) {
+ embedder_web_contents_->OnFindReply(request_id, number_of_matches,
+ selection_rect, active_match_ordinal,
+ final_update);
+ }
+}
+
WebContentsImpl* BrowserPluginGuest::GetWebContents() const {
return static_cast<WebContentsImpl*>(web_contents());
}

Powered by Google App Engine
This is Rietveld 408576698