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

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

Issue 10692067: Convert PyAuto's NavigateToURL, GetActiveTabIndex, Refresh, RefreshActiveTab, and AppendTab to the … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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 e91689770c947d767389c703d7d43970b2053542..41a6163eb34a956462ca473a2615fbd84d8b5122 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -863,6 +863,24 @@ class TestingAutomationProvider : public AutomationProvider,
// output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS }
void NavigateToURL(base::DictionaryValue* args, IPC::Message* reply_message);
+ // Get the index of the currently active tab. Uses the JSON interface.
+ // The integer |windex| must be given to specify the browser window.
+ // Example:
+ // input: { "windex": 1 }
+ // output: { "tab_index": 3 }
+ void GetActiveTabIndexJSON(DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Append a new tab. Uses the JSON interface.
+ // The integer |windex| must be given to specify the browser window. The tab
+ // is opened to |url| and blocks until the page loads.
+ // Example:
+ // input: { "windex": 1,
+ // "url": "http://google.com"
+ // }
+ // output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS }
+ void AppendTabJSON(DictionaryValue* args, IPC::Message* reply_message);
+
// Waits until any pending navigation completes in the specified tab.
// The pair |windex| and |tab_index| or the single |auto_id| must be given
// to specify the tab.

Powered by Google App Engine
This is Rietveld 408576698