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