diff options
Diffstat (limited to 'chrome/test/webdriver/webdriver_session.cc')
| -rw-r--r-- | chrome/test/webdriver/webdriver_session.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/test/webdriver/webdriver_session.cc b/chrome/test/webdriver/webdriver_session.cc index 171e47f..cfa3281 100644 --- a/chrome/test/webdriver/webdriver_session.cc +++ b/chrome/test/webdriver/webdriver_session.cc @@ -1363,6 +1363,26 @@ Error* Session::RemoveStorageItem(StorageType type, CreateDirectValueParser(value)); } +Error* Session::GetGeolocation(scoped_ptr<base::DictionaryValue>* geolocation) { + Error* error = NULL; + RunSessionTask(base::Bind( + &Automation::GetGeolocation, + base::Unretained(automation_.get()), + geolocation, + &error)); + return error; +} + +Error* Session::OverrideGeolocation(base::DictionaryValue* geolocation) { + Error* error = NULL; + RunSessionTask(base::Bind( + &Automation::OverrideGeolocation, + base::Unretained(automation_.get()), + geolocation, + &error)); + return error; +} + const std::string& Session::id() const { return id_; } |
