| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SESSION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_SESSION_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_SESSION_H_ | 6 #define CHROME_TEST_WEBDRIVER_SESSION_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 int implicit_wait() const; | 297 int implicit_wait() const; |
| 298 | 298 |
| 299 void set_screenshot_on_error(bool error); | 299 void set_screenshot_on_error(bool error); |
| 300 bool screenshot_on_error() const; | 300 bool screenshot_on_error() const; |
| 301 | 301 |
| 302 void set_use_native_events(bool use_native_events); | 302 void set_use_native_events(bool use_native_events); |
| 303 bool use_native_events() const; | 303 bool use_native_events() const; |
| 304 | 304 |
| 305 const gfx::Point& get_mouse_position() const; | 305 const gfx::Point& get_mouse_position() const; |
| 306 | 306 |
| 307 // Gets the browser connection state. |
| 308 Error* GetBrowserConnectionState(bool* online); |
| 309 |
| 310 // Gets the status of the application cache. |
| 311 Error* GetAppCacheStatus(int* status); |
| 312 |
| 307 private: | 313 private: |
| 308 void RunSessionTask(Task* task); | 314 void RunSessionTask(Task* task); |
| 309 void RunSessionTaskOnSessionThread( | 315 void RunSessionTaskOnSessionThread( |
| 310 Task* task, | 316 Task* task, |
| 311 base::WaitableEvent* done_event); | 317 base::WaitableEvent* done_event); |
| 312 void InitOnSessionThread(const FilePath& browser_exe, | 318 void InitOnSessionThread(const FilePath& browser_exe, |
| 313 const FilePath& user_data_dir, | 319 const FilePath& user_data_dir, |
| 314 const CommandLine& options, | 320 const CommandLine& options, |
| 315 Error** error); | 321 Error** error); |
| 316 void TerminateOnSessionThread(); | 322 void TerminateOnSessionThread(); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 bool has_alert_prompt_text_; | 389 bool has_alert_prompt_text_; |
| 384 | 390 |
| 385 DISALLOW_COPY_AND_ASSIGN(Session); | 391 DISALLOW_COPY_AND_ASSIGN(Session); |
| 386 }; | 392 }; |
| 387 | 393 |
| 388 } // namespace webdriver | 394 } // namespace webdriver |
| 389 | 395 |
| 390 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Session); | 396 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Session); |
| 391 | 397 |
| 392 #endif // CHROME_TEST_WEBDRIVER_SESSION_H_ | 398 #endif // CHROME_TEST_WEBDRIVER_SESSION_H_ |
| OLD | NEW |