diff options
author | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 00:41:26 +0000 |
---|---|---|
committer | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 00:41:26 +0000 |
commit | f9e3c52fb5feba4c279dbbbec049aff0b45b3955 (patch) | |
tree | 05c3f9b88bc11f4da42280a8375b090b51cc691b /chrome/browser/automation/automation_provider.h | |
parent | 7ec5b39703cf0c000d3556e5fc2bff4cb7b9fb21 (diff) | |
download | chromium_src-f9e3c52fb5feba4c279dbbbec049aff0b45b3955.zip chromium_src-f9e3c52fb5feba4c279dbbbec049aff0b45b3955.tar.gz chromium_src-f9e3c52fb5feba4c279dbbbec049aff0b45b3955.tar.bz2 |
Automation support for Find on a given page and return the search count
(Committing on behalf of amolk. Originally reviewed and LGTM-ed at
http://codereview.chromium.org/3402021/show)
BUG=36177
TEST=find_in_page.py
Review URL: http://codereview.chromium.org/3590026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.h')
-rw-r--r-- | chrome/browser/automation/automation_provider.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h index 838fcd6..595fad6 100644 --- a/chrome/browser/automation/automation_provider.h +++ b/chrome/browser/automation/automation_provider.h @@ -19,6 +19,7 @@ #include "base/basictypes.h" #include "base/observer_list.h" #include "base/scoped_ptr.h" +#include "base/string16.h" #include "chrome/browser/autofill/field_types.h" #include "chrome/browser/cancelable_request.h" #include "chrome/browser/tab_contents/navigation_entry.h" @@ -34,6 +35,7 @@ struct AutomationMsg_Find_Params; class PopupMenuWaiter; +class TabContents; namespace IPC { struct Reposition_Params; @@ -197,6 +199,16 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>, // Consumer for asynchronous history queries. CancelableRequestConsumer consumer_; + // Sends a find request for a given query. + void SendFindRequest( + TabContents* tab_contents, + bool with_json, + const string16& search_string, + bool forward, + bool match_case, + bool find_next, + IPC::Message* reply_message); + private: void OnUnhandledMessage(); |