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

Side by Side Diff: content/public/test/layouttest_support.h

Issue 242703002: Improve the handling of mock screen orientation for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 9 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); 50 void MockGamepadDisconnected(int index, const blink::WebGamepad& pad);
51 51
52 // Sets WebDeviceMotionData that should be used when registering 52 // Sets WebDeviceMotionData that should be used when registering
53 // a listener through WebKitPlatformSupport::setDeviceMotionListener(). 53 // a listener through WebKitPlatformSupport::setDeviceMotionListener().
54 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); 54 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data);
55 55
56 // Sets WebDeviceOrientationData that should be used when registering 56 // Sets WebDeviceOrientationData that should be used when registering
57 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). 57 // a listener through WebKitPlatformSupport::setDeviceOrientationListener().
58 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); 58 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data);
59 59
60 // Sets WebScreenOrientation that should be used when registering a listener 60 // Sets WebScreenOrientationType that should be used as a mock orientation.
61 // through WebKitPlatformSupport::setScreenOrientationListener().
62 void SetMockScreenOrientation( 61 void SetMockScreenOrientation(
63 const blink::WebScreenOrientationType& orientation); 62 const blink::WebScreenOrientationType& orientation);
64 63
65 // Returns the length of the local session history of a render view. 64 // Returns the length of the local session history of a render view.
66 int GetLocalSessionHistoryLength(RenderView* render_view); 65 int GetLocalSessionHistoryLength(RenderView* render_view);
67 66
68 // Sync the current session history to the browser process. 67 // Sync the current session history to the browser process.
69 void SyncNavigationState(RenderView* render_view); 68 void SyncNavigationState(RenderView* render_view);
70 69
71 // Sets the focus of the render view depending on |enable|. This only overrides 70 // Sets the focus of the render view depending on |enable|. This only overrides
(...skipping 21 matching lines...) Expand all
93 const blink::WebSize& max_size); 92 const blink::WebSize& max_size);
94 void DisableAutoResizeMode(RenderView* render_view, 93 void DisableAutoResizeMode(RenderView* render_view,
95 const blink::WebSize& new_size); 94 const blink::WebSize& new_size);
96 95
97 // Forces the |render_view| to use mock media streams. 96 // Forces the |render_view| to use mock media streams.
98 void UseMockMediaStreams(RenderView* render_view); 97 void UseMockMediaStreams(RenderView* render_view);
99 98
100 } // namespace content 99 } // namespace content
101 100
102 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 101 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698