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

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

Issue 8649004: Allow chromedriver to install an extension and get all installed extension IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 1 month 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 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 }
« no previous file with comments | « chrome/browser/automation/automation_util.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698