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 COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 bool has_rotation_rate_gamma, | 305 bool has_rotation_rate_gamma, |
306 double rotation_rate_gamma, | 306 double rotation_rate_gamma, |
307 double interval); | 307 double interval); |
308 void SetMockDeviceOrientation(bool has_alpha, double alpha, | 308 void SetMockDeviceOrientation(bool has_alpha, double alpha, |
309 bool has_beta, double beta, | 309 bool has_beta, double beta, |
310 bool has_gamma, double gamma, | 310 bool has_gamma, double gamma, |
311 bool has_absolute, bool absolute); | 311 bool has_absolute, bool absolute); |
312 | 312 |
313 void SetMockScreenOrientation(const std::string& orientation); | 313 void SetMockScreenOrientation(const std::string& orientation); |
314 | 314 |
| 315 void DidChangeBatteryStatus(bool charging, |
| 316 double chargingTime, |
| 317 double dischargingTime, |
| 318 double level); |
| 319 void ResetBatteryStatus(); |
| 320 |
315 void DidAcquirePointerLock(); | 321 void DidAcquirePointerLock(); |
316 void DidNotAcquirePointerLock(); | 322 void DidNotAcquirePointerLock(); |
317 void DidLosePointerLock(); | 323 void DidLosePointerLock(); |
318 void SetPointerLockWillFailSynchronously(); | 324 void SetPointerLockWillFailSynchronously(); |
319 void SetPointerLockWillRespondAsynchronously(); | 325 void SetPointerLockWillRespondAsynchronously(); |
320 | 326 |
321 /////////////////////////////////////////////////////////////////////////// | 327 /////////////////////////////////////////////////////////////////////////// |
322 // Methods modifying WebPreferences. | 328 // Methods modifying WebPreferences. |
323 | 329 |
324 // Set the WebPreference that controls webkit's popup blocking. | 330 // Set the WebPreference that controls webkit's popup blocking. |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 bool use_mock_theme_; | 849 bool use_mock_theme_; |
844 | 850 |
845 base::WeakPtrFactory<TestRunner> weak_factory_; | 851 base::WeakPtrFactory<TestRunner> weak_factory_; |
846 | 852 |
847 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 853 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
848 }; | 854 }; |
849 | 855 |
850 } // namespace test_runner | 856 } // namespace test_runner |
851 | 857 |
852 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ | 858 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |