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. |