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

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, 2 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 e1f342bb2146879b9763a9c734679dc5cbf02a47..a90cc2a89f326fdf187022b3a328a58d06957fac 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -201,6 +201,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;
@@ -333,6 +339,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.
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_embedder.cc ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698