diff options
| author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-27 01:20:24 +0000 |
|---|---|---|
| committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-27 01:20:24 +0000 |
| commit | 69f21bface7145ec9db86cc3e1a109134dc37202 (patch) | |
| tree | 77c9dcec5d6d603d9d920edf33a649e25a6a1287 /chrome/test/webdriver/webdriver_automation.h | |
| parent | 14a8fc989a361f72bf0ab97dc678351e225371bc (diff) | |
| download | chromium_src-69f21bface7145ec9db86cc3e1a109134dc37202.zip chromium_src-69f21bface7145ec9db86cc3e1a109134dc37202.tar.gz chromium_src-69f21bface7145ec9db86cc3e1a109134dc37202.tar.bz2 | |
Geolocation support for chromedriver, client side.
BUG=chromedriver:14
TEST=none
Review URL: http://codereview.chromium.org/10167014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134200 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/webdriver/webdriver_automation.h')
| -rw-r--r-- | chrome/test/webdriver/webdriver_automation.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/test/webdriver/webdriver_automation.h b/chrome/test/webdriver/webdriver_automation.h index 44332f2..312ef14 100644 --- a/chrome/test/webdriver/webdriver_automation.h +++ b/chrome/test/webdriver/webdriver_automation.h @@ -237,6 +237,14 @@ class Automation { base::Value* value, Error** error); + // Gets the current geolocation. + void GetGeolocation(scoped_ptr<base::DictionaryValue>* geolocation, + Error** error); + + // Overrides the current geolocation. + void OverrideGeolocation(base::DictionaryValue* geolocation, + Error** error); + private: AutomationProxy* automation() const; Error* ConvertViewIdToLocator(const WebViewId& view_id, @@ -247,11 +255,13 @@ class Automation { Error* CheckAlertsSupported(); Error* CheckAdvancedInteractionsSupported(); Error* CheckNewExtensionInterfaceSupported(); + Error* CheckGeolocationSupported(); Error* IsNewMouseApiSupported(bool* supports_new_api); const Logger& logger_; scoped_ptr<ProxyLauncher> launcher_; int build_no_; + scoped_ptr<base::DictionaryValue> geolocation_; DISALLOW_COPY_AND_ASSIGN(Automation); }; |
