| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ | 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 // Gets the version of the runing browser. | 190 // Gets the version of the runing browser. |
| 191 void GetBrowserVersion(std::string* version); | 191 void GetBrowserVersion(std::string* version); |
| 192 | 192 |
| 193 // Gets the ChromeDriver automation version supported by the automation | 193 // Gets the ChromeDriver automation version supported by the automation |
| 194 // server. | 194 // server. |
| 195 void GetChromeDriverAutomationVersion(int* version, Error** error); | 195 void GetChromeDriverAutomationVersion(int* version, Error** error); |
| 196 | 196 |
| 197 // Waits for all views to stop loading. | 197 // Waits for all views to stop loading. |
| 198 void WaitForAllViewsToStopLoading(Error** error); | 198 void WaitForAllViewsToStopLoading(Error** error); |
| 199 | 199 |
| 200 // Install packed extension. | |
| 201 void InstallExtensionDeprecated(const FilePath& path, Error** error); | |
| 202 | |
| 203 // Install a packed or unpacked extension. If the path ends with '.crx', | 200 // Install a packed or unpacked extension. If the path ends with '.crx', |
| 204 // the extension is assumed to be packed. | 201 // the extension is assumed to be packed. |
| 205 void InstallExtension(const FilePath& path, std::string* extension_id, | 202 void InstallExtension(const FilePath& path, std::string* extension_id, |
| 206 Error** error); | 203 Error** error); |
| 207 | 204 |
| 208 // Gets a list of dictionary information about all installed extensions. | 205 // Gets a list of dictionary information about all installed extensions. |
| 209 void GetExtensionsInfo(base::ListValue* extensions_list, Error** error); | 206 void GetExtensionsInfo(base::ListValue* extensions_list, Error** error); |
| 210 | 207 |
| 211 // Gets a list of dictionary information about all installed extensions. | 208 // Gets a list of dictionary information about all installed extensions. |
| 212 void IsPageActionVisible(const WebViewId& tab_id, | 209 void IsPageActionVisible(const WebViewId& tab_id, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 const Logger& logger_; | 252 const Logger& logger_; |
| 256 scoped_ptr<ProxyLauncher> launcher_; | 253 scoped_ptr<ProxyLauncher> launcher_; |
| 257 int build_no_; | 254 int build_no_; |
| 258 | 255 |
| 259 DISALLOW_COPY_AND_ASSIGN(Automation); | 256 DISALLOW_COPY_AND_ASSIGN(Automation); |
| 260 }; | 257 }; |
| 261 | 258 |
| 262 } // namespace webdriver | 259 } // namespace webdriver |
| 263 | 260 |
| 264 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ | 261 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ |
| OLD | NEW |