| 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 a9a5a849f678b39a5714bc06e6badb64d5a9ef5e..40aba082bda836e76f5abcc4e72fec70cfc5ac71 100644
|
| --- a/chrome/browser/automation/testing_automation_provider.h
|
| +++ b/chrome/browser/automation/testing_automation_provider.h
|
| @@ -947,19 +947,6 @@ class TestingAutomationProvider : public AutomationProvider,
|
| // output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS // optional }
|
| void ReloadJSON(base::DictionaryValue* args, IPC::Message* reply_message);
|
|
|
| - // Get the current url of the specified tab. Uses the JSON interface.
|
| - // Example:
|
| - // input: { "windex": 1, "tab_index": 1 }
|
| - // output: { "url": "http://www.google.com" }
|
| - void GetTabURLJSON(base::DictionaryValue* args, IPC::Message* reply_message);
|
| -
|
| - // Get the current url of the specified tab. Uses the JSON interface.
|
| - // Example:
|
| - // input: { "windex": 1, "tab_index": 1 }
|
| - // output: { "title": "Google" }
|
| - void GetTabTitleJSON(base::DictionaryValue* args,
|
| - IPC::Message* reply_message);
|
| -
|
| // Captures the entire page of the the specified tab, including the
|
| // non-visible portions of the page, and saves the PNG to a file.
|
| // Example:
|
| @@ -1024,15 +1011,33 @@ class TestingAutomationProvider : public AutomationProvider,
|
| // Gets the ID for every open tab. This ID is unique per session.
|
| // Example:
|
| // input: none
|
| - // output: { "ids": [4124, 213, 1] }
|
| + // output: { "ids": [213, 1] }
|
| void GetTabIds(base::DictionaryValue* args, IPC::Message* reply_message);
|
|
|
| + // Gets info about all open views. Each view ID is unique per session.
|
| + // Example:
|
| + // input: none
|
| + // output: { "views": [
|
| + // { "type": 0,
|
| + // "view_id": "0|1902",
|
| + // "extension_id": "askjeoias3" // optional
|
| + // }
|
| + // ]
|
| + // }
|
| + void GetViews(base::DictionaryValue* args, IPC::Message* reply_message);
|
| +
|
| // Checks if the given tab ID refers to an open tab.
|
| // Example:
|
| // input: { "id": 41 }
|
| // output: { "is_valid": false }
|
| void IsTabIdValid(base::DictionaryValue* args, IPC::Message* reply_message);
|
|
|
| + // Checks if the given view ID refers to an open view.
|
| + // Example:
|
| + // input: { "id": "0|1902" }
|
| + // output: { "is_valid": false }
|
| + void DoesViewExist(base::DictionaryValue* args, IPC::Message* reply_message);
|
| +
|
| // Closes the specified tab.
|
| // Example:
|
| // input: { "windex": 1, "tab_index": 1 }
|
|
|