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

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: Removed GetActiveTabIndex from the SWIG interface file. 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 a723303173c2f5165e24b7564f50d581bfce6f92..a28156a3709a8bdfba8b5448cee03ac163c479e0 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -850,6 +850,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