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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 bool has_absolute, bool absolute); | 303 bool has_absolute, bool absolute); |
304 | 304 |
305 void SetMockScreenOrientation(const std::string& orientation); | 305 void SetMockScreenOrientation(const std::string& orientation); |
306 | 306 |
307 void DidChangeBatteryStatus(bool charging, | 307 void DidChangeBatteryStatus(bool charging, |
308 double chargingTime, | 308 double chargingTime, |
309 double dischargingTime, | 309 double dischargingTime, |
310 double level); | 310 double level); |
311 void ResetBatteryStatus(); | 311 void ResetBatteryStatus(); |
312 | 312 |
| 313 // Presentation API related functions. |
| 314 void SetMockScreenAvailability(bool available); |
| 315 |
313 void DidAcquirePointerLock(); | 316 void DidAcquirePointerLock(); |
314 void DidNotAcquirePointerLock(); | 317 void DidNotAcquirePointerLock(); |
315 void DidLosePointerLock(); | 318 void DidLosePointerLock(); |
316 void SetPointerLockWillFailSynchronously(); | 319 void SetPointerLockWillFailSynchronously(); |
317 void SetPointerLockWillRespondAsynchronously(); | 320 void SetPointerLockWillRespondAsynchronously(); |
318 | 321 |
319 /////////////////////////////////////////////////////////////////////////// | 322 /////////////////////////////////////////////////////////////////////////// |
320 // Methods modifying WebPreferences. | 323 // Methods modifying WebPreferences. |
321 | 324 |
322 // Set the WebPreference that controls webkit's popup blocking. | 325 // Set the WebPreference that controls webkit's popup blocking. |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 bool use_mock_theme_; | 802 bool use_mock_theme_; |
800 | 803 |
801 base::WeakPtrFactory<TestRunner> weak_factory_; | 804 base::WeakPtrFactory<TestRunner> weak_factory_; |
802 | 805 |
803 DISALLOW_COPY_AND_ASSIGN(TestRunner); | 806 DISALLOW_COPY_AND_ASSIGN(TestRunner); |
804 }; | 807 }; |
805 | 808 |
806 } // namespace content | 809 } // namespace content |
807 | 810 |
808 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ | 811 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ |
OLD | NEW |