Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: content/shell/renderer/test_runner/test_runner.h

Issue 907893002: Retry to add MockPresentationClient to use in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/mock_presentation_service.cc ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698