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..923c71a62a73ca1ed06b6920ffce1ddefbb13ba1 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,14 @@ 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, |
nasko
2014/01/08 17:29:13
style: arguments are one on a line for declaration
Fady Samuel
2014/01/08 17:39:57
Done.
|
+ 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); |