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_SESSION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ |
6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ | 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 Error* ClearStorage(StorageType type); | 370 Error* ClearStorage(StorageType type); |
371 | 371 |
372 // Gets the keys of all items of the HTML5 localStorage object. If there are | 372 // Gets the keys of all items of the HTML5 localStorage object. If there are |
373 // no errors, the function sets |keys| and the caller takes ownership. | 373 // no errors, the function sets |keys| and the caller takes ownership. |
374 Error* GetStorageKeys(StorageType type, base::ListValue** keys); | 374 Error* GetStorageKeys(StorageType type, base::ListValue** keys); |
375 | 375 |
376 // Gets the current geolocation. | 376 // Gets the current geolocation. |
377 Error* GetGeolocation(scoped_ptr<base::DictionaryValue>* geolocation); | 377 Error* GetGeolocation(scoped_ptr<base::DictionaryValue>* geolocation); |
378 | 378 |
379 // Overrides the current geolocation. | 379 // Overrides the current geolocation. |
380 Error* OverrideGeolocation(base::DictionaryValue* geolocation); | 380 Error* OverrideGeolocation(const base::DictionaryValue* geolocation); |
381 | 381 |
382 const std::string& id() const; | 382 const std::string& id() const; |
383 | 383 |
384 const FrameId& current_target() const; | 384 const FrameId& current_target() const; |
385 | 385 |
386 void set_async_script_timeout(int timeout_ms); | 386 void set_async_script_timeout(int timeout_ms); |
387 int async_script_timeout() const; | 387 int async_script_timeout() const; |
388 | 388 |
389 void set_implicit_wait(int timeout_ms); | 389 void set_implicit_wait(int timeout_ms); |
390 int implicit_wait() const; | 390 int implicit_wait() const; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 // (e.g., 18.0.995.0 -> 995). Only valid after Chrome has started. | 494 // (e.g., 18.0.995.0 -> 995). Only valid after Chrome has started. |
495 // See http://dev.chromium.org/releases/version-numbers. | 495 // See http://dev.chromium.org/releases/version-numbers. |
496 int build_no_; | 496 int build_no_; |
497 | 497 |
498 DISALLOW_COPY_AND_ASSIGN(Session); | 498 DISALLOW_COPY_AND_ASSIGN(Session); |
499 }; | 499 }; |
500 | 500 |
501 } // namespace webdriver | 501 } // namespace webdriver |
502 | 502 |
503 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ | 503 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ |
OLD | NEW |