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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder.h

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_embedder.h
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.h b/content/browser/browser_plugin/browser_plugin_embedder.h
index 95ed9b87abc0cfea41af3eda7492ec2d0ec07cce..e6b0ee701ca7e5121e8ffb3975f010103e7c400c 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.h
+++ b/content/browser/browser_plugin/browser_plugin_embedder.h
@@ -70,6 +70,9 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
// Used to handle special keyboard events.
bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
+ bool Find(int request_id,
+ const base::string16& search_text,
+ const blink::WebFindOptions& options);
private:
explicit BrowserPluginEmbedder(WebContentsImpl* web_contents);
@@ -79,10 +82,13 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
bool DidSendScreenRectsCallback(WebContents* guest_web_contents);
- bool SetZoomLevelCallback(double level, WebContents* guest_web_contents);
-
bool UnlockMouseIfNecessaryCallback(bool* mouse_unlocked, WebContents* guest);
+ bool FindInGuest(int request_id,
+ const base::string16& search_text,
+ const blink::WebFindOptions& options,
+ WebContents* guest);
+
// Message handlers.
void OnAttach(int instance_id,
const BrowserPluginHostMsg_Attach_Params& params);

Powered by Google App Engine
This is Rietveld 408576698