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

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

Issue 2808923003: Revert of Enable find-in-page across GuestViews. (Closed)
Patch Set: Fixed patch conflicts. Created 3 years, 8 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 68d02bc73c0f9ffd9e60edded6b87f68e20ec3f7..5e4026c978adb5dfd3ebd01b632033b8e60f8776 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.h
+++ b/content/browser/browser_plugin/browser_plugin_embedder.h
@@ -74,6 +74,13 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
// Used to handle special keyboard events.
bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
+ // Find the given |search_text| in the page. Returns true if the find request
+ // is handled by this browser plugin embedder.
+ bool Find(int request_id,
+ const base::string16& search_text,
+ const blink::WebFindOptions& options);
+ bool StopFinding(StopFindAction action);
+
// Returns the "full page" guest if there is one. That is, if there is a
// single BrowserPlugin in the embedder which takes up the full page, then it
// is returned.
@@ -101,6 +108,12 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
static bool UnlockMouseIfNecessaryCallback(bool* mouse_unlocked,
WebContents* guest);
+ static bool FindInGuest(int request_id,
+ const base::string16& search_text,
+ const blink::WebFindOptions& options,
+ WebContents* guest);
+ static bool StopFindingInGuest(StopFindAction action, WebContents* guest);
+
static bool GuestRecentlyAudibleCallback(WebContents* guest);
// Message handlers.
« no previous file with comments | « components/guest_view/browser/guest_view_base.cc ('k') | content/browser/browser_plugin/browser_plugin_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698