Index: content/public/browser/web_contents.h |
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
index 52751bce99ffd344972b44e95783a14e50e52351..79dfd00138a853367fa3c3b45075223515aa8b91 100644 |
--- a/content/public/browser/web_contents.h |
+++ b/content/public/browser/web_contents.h |
@@ -18,6 +18,7 @@ |
#include "content/public/browser/page_navigator.h" |
#include "content/public/browser/save_page_type.h" |
#include "content/public/browser/web_ui.h" |
+#include "content/public/common/stop_find_action.h" |
#include "ipc/ipc_sender.h" |
#include "third_party/skia/include/core/SkColor.h" |
#include "ui/base/window_open_disposition.h" |
@@ -32,6 +33,10 @@ namespace base { |
class TimeTicks; |
} |
+namespace blink { |
+struct WebFindOptions; |
+} |
+ |
namespace gfx { |
class Rect; |
class Size; |
@@ -482,6 +487,15 @@ class WebContents : public PageNavigator, |
// removed since we can then embed iframes in different processes. |
virtual bool IsSubframe() const = 0; |
+ // Finds text on a page. |
+ virtual void Find(int request_id, |
+ const base::string16& search_text, |
+ const blink::WebFindOptions& options) = 0; |
+ |
+ // Notifies the renderer that the user has closed the FindInPage window |
+ // (and what action to take regarding the selection). |
+ virtual void StopFinding(StopFindAction action) = 0; |
+ |
#if defined(OS_ANDROID) |
CONTENT_EXPORT static WebContents* FromJavaWebContents( |
jobject jweb_contents_android); |