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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // Ownership of |value| is taken by this fucntion. | 247 // Ownership of |value| is taken by this fucntion. |
248 void SetPreference(const std::string& pref, | 248 void SetPreference(const std::string& pref, |
249 base::Value* value, | 249 base::Value* value, |
250 Error** error); | 250 Error** error); |
251 | 251 |
252 // Gets the current geolocation. | 252 // Gets the current geolocation. |
253 void GetGeolocation(scoped_ptr<base::DictionaryValue>* geolocation, | 253 void GetGeolocation(scoped_ptr<base::DictionaryValue>* geolocation, |
254 Error** error); | 254 Error** error); |
255 | 255 |
256 // Overrides the current geolocation. | 256 // Overrides the current geolocation. |
257 void OverrideGeolocation(base::DictionaryValue* geolocation, | 257 void OverrideGeolocation(const base::DictionaryValue* geolocation, |
258 Error** error); | 258 Error** error); |
259 | 259 |
260 private: | 260 private: |
261 AutomationProxy* automation() const; | 261 AutomationProxy* automation() const; |
262 Error* ConvertViewIdToLocator(const WebViewId& view_id, | 262 Error* ConvertViewIdToLocator(const WebViewId& view_id, |
263 WebViewLocator* view_locator); | 263 WebViewLocator* view_locator); |
264 Error* DetermineBuildNumber(); | 264 Error* DetermineBuildNumber(); |
265 Error* CheckVersion(int min_required_build_no, | 265 Error* CheckVersion(int min_required_build_no, |
266 const std::string& error_msg); | 266 const std::string& error_msg); |
267 Error* CheckAlertsSupported(); | 267 Error* CheckAlertsSupported(); |
268 Error* CheckAdvancedInteractionsSupported(); | 268 Error* CheckAdvancedInteractionsSupported(); |
269 Error* CheckNewExtensionInterfaceSupported(); | 269 Error* CheckNewExtensionInterfaceSupported(); |
270 Error* CheckGeolocationSupported(); | 270 Error* CheckGeolocationSupported(); |
271 Error* CheckMaximizeSupported(); | 271 Error* CheckMaximizeSupported(); |
272 Error* IsNewMouseApiSupported(bool* supports_new_api); | 272 Error* IsNewMouseApiSupported(bool* supports_new_api); |
273 | 273 |
274 const Logger& logger_; | 274 const Logger& logger_; |
275 scoped_ptr<ProxyLauncher> launcher_; | 275 scoped_ptr<ProxyLauncher> launcher_; |
276 int build_no_; | 276 int build_no_; |
277 scoped_ptr<base::DictionaryValue> geolocation_; | 277 scoped_ptr<base::DictionaryValue> geolocation_; |
278 | 278 |
279 DISALLOW_COPY_AND_ASSIGN(Automation); | 279 DISALLOW_COPY_AND_ASSIGN(Automation); |
280 }; | 280 }; |
281 | 281 |
282 } // namespace webdriver | 282 } // namespace webdriver |
283 | 283 |
284 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ | 284 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ |
OLD | NEW |