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

Unified Diff: chrome/browser/automation/testing_automation_provider.h

Issue 10790055: Convert more PyAuto proxy calls to the JSON interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: chrome/browser/automation/testing_automation_provider.h
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index 3f374ee5eb1b28d645bcc6666465030d4ebba24a..11f428f6ab236fd859ffe575edc974386eb82ccb 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -875,6 +875,23 @@ class TestingAutomationProvider : public AutomationProvider,
void IsMenuCommandEnabledJSON(DictionaryValue* args,
IPC::Message* reply_message);
+ // Returns a dictionary of information about the given tab.
+ // Example:
+ // input: { "tab_index": 1,
+ // "windex": 1
+ // }
+ // output: { "title": "Hello World",
+ // "url": "http://foo.bar" }
+ void GetTabInfo(DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Returns the tab count for the given browser window.
+ // Example:
+ // input: { "windex": 1 }
+ // output: { "tab_count": 5 }
+ void GetTabCountJSON(DictionaryValue* args,
+ IPC::Message* reply_message);
+
// Navigates to the given URL. Uses the JSON interface.
// The pair |windex| and |tab_index| or the single |auto_id| must be given
// to specify the tab.
@@ -1347,6 +1364,13 @@ class TestingAutomationProvider : public AutomationProvider,
// output: none
void ActivateTabJSON(base::DictionaryValue* args, IPC::Message* message);
+ // Brings the given brower's window to the front.
+ // Example:
+ // input: { "windex": 1 }
+ // output: none
+ void BringBrowserToFrontJSON(base::DictionaryValue* args,
+ IPC::Message* message);
+
// Gets the version of ChromeDriver automation supported by this server.
// Example:
// input: none
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | chrome/test/pyautolib/pyauto.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698