OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 bool has_rotation_rate_gamma, | 293 bool has_rotation_rate_gamma, |
294 double rotation_rate_gamma, | 294 double rotation_rate_gamma, |
295 double interval); | 295 double interval); |
296 void SetMockDeviceOrientation(bool has_alpha, double alpha, | 296 void SetMockDeviceOrientation(bool has_alpha, double alpha, |
297 bool has_beta, double beta, | 297 bool has_beta, double beta, |
298 bool has_gamma, double gamma, | 298 bool has_gamma, double gamma, |
299 bool has_absolute, bool absolute); | 299 bool has_absolute, bool absolute); |
300 | 300 |
301 void SetMockScreenOrientation(const std::string& orientation); | 301 void SetMockScreenOrientation(const std::string& orientation); |
302 | 302 |
| 303 void DidChangeBatteryStatus(bool charging, |
| 304 double chargingTime, |
| 305 double dischargingTime, |
| 306 double level); |
| 307 void ResetBatteryStatus(); |
| 308 |
303 void DidAcquirePointerLock(); | 309 void DidAcquirePointerLock(); |
304 void DidNotAcquirePointerLock(); | 310 void DidNotAcquirePointerLock(); |
305 void DidLosePointerLock(); | 311 void DidLosePointerLock(); |
306 void SetPointerLockWillFailSynchronously(); | 312 void SetPointerLockWillFailSynchronously(); |
307 void SetPointerLockWillRespondAsynchronously(); | 313 void SetPointerLockWillRespondAsynchronously(); |
308 | 314 |
309 /////////////////////////////////////////////////////////////////////////// | 315 /////////////////////////////////////////////////////////////////////////// |
310 // Methods modifying WebPreferences. | 316 // Methods modifying WebPreferences. |
311 | 317 |
312 // Set the WebPreference that controls webkit's popup blocking. | 318 // Set the WebPreference that controls webkit's popup blocking. |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 bool use_mock_theme_; | 718 bool use_mock_theme_; |
713 | 719 |
714 base::WeakPtrFactory<TestRunner> weak_factory_; | 720 base::WeakPtrFactory<TestRunner> weak_factory_; |
715 | 721 |
716 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 722 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
717 }; | 723 }; |
718 | 724 |
719 } // namespace content | 725 } // namespace content |
720 | 726 |
721 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 727 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |