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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.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_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index cecca6de166bdef20bd3fb02d0282830af6e9146..817268d4e4658c7220ad56118d1288190161627a 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -205,6 +205,12 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsObserver {
void SetContentsOpaque(bool opaque);
+ // Find the given |search_text| in the page. Returns true if the find request
+ // is handled by this browser plugin guest.
+ bool Find(int request_id,
+ const base::string16& search_text,
+ const blink::WebFindOptions& options);
+
private:
class EmbedderWebContentsObserver;
@@ -338,6 +344,8 @@ class CONTENT_EXPORT BrowserPluginGuest : public WebContentsObserver {
bool pending_lock_request_;
bool guest_visible_;
bool embedder_visible_;
+ // Whether the browser plugin is inside a plugin document.
+ bool is_full_page_plugin_;
// Each copy-request is identified by a unique number. The unique number is
// used to keep track of the right callback.

Powered by Google App Engine
This is Rietveld 408576698