summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_provider.h
diff options
context:
space:
mode:
authoralyssad@chromium.org <alyssad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 16:35:42 +0000
committeralyssad@chromium.org <alyssad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 16:35:42 +0000
commit3dda5b0f1bb73a437ca6e6f2741580451030ac25 (patch)
tree4546385566b7b28211e416a4862fbe4699ea7b0d /chrome/browser/automation/automation_provider.h
parent0f86277de42193b543d0b33e4c82c750f0642141 (diff)
downloadchromium_src-3dda5b0f1bb73a437ca6e6f2741580451030ac25.zip
chromium_src-3dda5b0f1bb73a437ca6e6f2741580451030ac25.tar.gz
chromium_src-3dda5b0f1bb73a437ca6e6f2741580451030ac25.tar.bz2
New pyauto hook for the translate feature.
Review URL: http://codereview.chromium.org/3026016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53791 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider.h')
-rw-r--r--chrome/browser/automation/automation_provider.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h
index 1286e2b..4095ab9 100644
--- a/chrome/browser/automation/automation_provider.h
+++ b/chrome/browser/automation/automation_provider.h
@@ -57,6 +57,7 @@ class LoginHandler;
class MetricEventDurationObserver;
class InitialLoadObserver;
class NavigationControllerRestoredObserver;
+class TranslateInfoBarDelegate;
struct AutocompleteMatchData;
namespace gfx {
@@ -506,6 +507,18 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>,
DictionaryValue* args,
IPC::Message* reply_message);
+ // Returns information about translation for a given tab. Includes
+ // information about the translate bar if it is showing.
+ void GetTranslateInfo(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Takes the specified action on the translate bar.
+ // Uses the JSON interface for input/output.
+ void SelectTranslateOption(Browser* browser,
+ DictionaryValue* args,
+ IPC::Message* reply_message);
+
// Get the profiles that are currently saved to the DB.
// Uses the JSON interface for input/output.
void GetAutoFillProfile(Browser* browser,