| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 // Launches the specified app from the currently-selected tab. | 864 // Launches the specified app from the currently-selected tab. |
| 865 void LaunchApp(Browser* browser, | 865 void LaunchApp(Browser* browser, |
| 866 base::DictionaryValue* args, | 866 base::DictionaryValue* args, |
| 867 IPC::Message* reply_message); | 867 IPC::Message* reply_message); |
| 868 | 868 |
| 869 // Sets the launch type for the specified app. | 869 // Sets the launch type for the specified app. |
| 870 void SetAppLaunchType(Browser* browser, | 870 void SetAppLaunchType(Browser* browser, |
| 871 base::DictionaryValue* args, | 871 base::DictionaryValue* args, |
| 872 IPC::Message* reply_message); | 872 IPC::Message* reply_message); |
| 873 | 873 |
| 874 // Waits for all tabs to stop loading or a modal dialog to become active. | 874 // Waits for all views to stop loading or a modal dialog to become active. |
| 875 void WaitForAllTabsToStopLoading(base::DictionaryValue* args, | 875 void WaitForAllViewsToStopLoading(base::DictionaryValue* args, |
| 876 IPC::Message* reply_message); | 876 IPC::Message* reply_message); |
| 877 | 877 |
| 878 // Gets the browser and tab index of the given tab. Uses the JSON interface. | 878 // Gets the browser and tab index of the given tab. Uses the JSON interface. |
| 879 // Either "tab_id" or "tab_handle" must be specified, but not both. "tab_id" | 879 // Either "tab_id" or "tab_handle" must be specified, but not both. "tab_id" |
| 880 // refers to the ID from the |NavigationController|, while "tab_handle" is | 880 // refers to the ID from the |NavigationController|, while "tab_handle" is |
| 881 // the handle number assigned by the automation system. | 881 // the handle number assigned by the automation system. |
| 882 // Example: | 882 // Example: |
| 883 // input: { "tab_id": 1, // optional | 883 // input: { "tab_id": 1, // optional |
| 884 // "tab_handle": 3 // optional | 884 // "tab_handle": 3 // optional |
| 885 // } | 885 // } |
| 886 // output: { "windex": 1, "tab_index": 5 } | 886 // output: { "windex": 1, "tab_index": 5 } |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1260 // input: none | 1260 // input: none |
| 1261 // output: { "version": 1 } | 1261 // output: { "version": 1 } |
| 1262 void GetChromeDriverAutomationVersion(base::DictionaryValue* args, | 1262 void GetChromeDriverAutomationVersion(base::DictionaryValue* args, |
| 1263 IPC::Message* message); | 1263 IPC::Message* message); |
| 1264 | 1264 |
| 1265 // Auto-updates installed extensions. | 1265 // Auto-updates installed extensions. |
| 1266 // Uses the JSON interface for input/output. | 1266 // Uses the JSON interface for input/output. |
| 1267 void UpdateExtensionsNow(base::DictionaryValue* args, | 1267 void UpdateExtensionsNow(base::DictionaryValue* args, |
| 1268 IPC::Message* reply_message); | 1268 IPC::Message* reply_message); |
| 1269 | 1269 |
| 1270 // Determines whether the extension page action is visible in the given tab. |
| 1271 // Example: |
| 1272 // input: { "auto_id": { "type": 0, "id": "awoein" }, |
| 1273 // "extension_id": "byzaaoiea", |
| 1274 // } |
| 1275 // output: none |
| 1276 void IsPageActionVisible(base::DictionaryValue* args, |
| 1277 IPC::Message* reply_message); |
| 1278 |
| 1270 // Creates a new |TestingAutomationProvider| that opens a server channel | 1279 // Creates a new |TestingAutomationProvider| that opens a server channel |
| 1271 // for the given |channel_id|. | 1280 // for the given |channel_id|. |
| 1272 // The server channel will be available for connection when this returns. | 1281 // The server channel will be available for connection when this returns. |
| 1273 // Example: | 1282 // Example: |
| 1274 // input: { "channel_id": "testChannel123" } | 1283 // input: { "channel_id": "testChannel123" } |
| 1275 void CreateNewAutomationProvider(base::DictionaryValue* args, | 1284 void CreateNewAutomationProvider(base::DictionaryValue* args, |
| 1276 IPC::Message* reply_message); | 1285 IPC::Message* reply_message); |
| 1277 | 1286 |
| 1278 // Enforces the policies in |args|. The policies are provided as a dictionary | 1287 // Enforces the policies in |args|. The policies are provided as a dictionary |
| 1279 // of policy names to their values. The top-level dictionary maps the policy | 1288 // of policy names to their values. The top-level dictionary maps the policy |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 // Used to enumerate browser profiles. | 1495 // Used to enumerate browser profiles. |
| 1487 scoped_refptr<ImporterList> importer_list_; | 1496 scoped_refptr<ImporterList> importer_list_; |
| 1488 | 1497 |
| 1489 // The stored data for the ImportSettings operation. | 1498 // The stored data for the ImportSettings operation. |
| 1490 ImportSettingsData import_settings_data_; | 1499 ImportSettingsData import_settings_data_; |
| 1491 | 1500 |
| 1492 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1501 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 1493 }; | 1502 }; |
| 1494 | 1503 |
| 1495 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1504 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |