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

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

Issue 284583003: Use WebScreenInfo members to provide screen orientation information for layout test support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased patch. Created 6 years, 7 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/render_view_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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Sets WebDeviceMotionData that should be used when registering 54 // Sets WebDeviceMotionData that should be used when registering
55 // a listener through WebKitPlatformSupport::setDeviceMotionListener(). 55 // a listener through WebKitPlatformSupport::setDeviceMotionListener().
56 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); 56 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data);
57 57
58 // Sets WebDeviceOrientationData that should be used when registering 58 // Sets WebDeviceOrientationData that should be used when registering
59 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). 59 // a listener through WebKitPlatformSupport::setDeviceOrientationListener().
60 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); 60 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data);
61 61
62 // Sets WebScreenOrientationType that should be used as a mock orientation. 62 // Sets WebScreenOrientationType that should be used as a mock orientation.
63 void SetMockScreenOrientation( 63 void SetMockScreenOrientation(
64 RenderView* render_view,
64 const blink::WebScreenOrientationType& orientation); 65 const blink::WebScreenOrientationType& orientation);
65 66
66 // Resets the mock screen orientation data. 67 // Resets the mock screen orientation data.
67 void ResetMockScreenOrientation(); 68 void ResetMockScreenOrientation();
68 69
69 // Returns the length of the local session history of a render view. 70 // Returns the length of the local session history of a render view.
70 int GetLocalSessionHistoryLength(RenderView* render_view); 71 int GetLocalSessionHistoryLength(RenderView* render_view);
71 72
72 // Sync the current session history to the browser process. 73 // Sync the current session history to the browser process.
73 void SyncNavigationState(RenderView* render_view); 74 void SyncNavigationState(RenderView* render_view);
(...skipping 30 matching lines...) Expand all
104 // Forces the |render_frame| to use mock media streams. 105 // Forces the |render_frame| to use mock media streams.
105 void UseMockMediaStreams(RenderFrame* render_frame); 106 void UseMockMediaStreams(RenderFrame* render_frame);
106 107
107 // Provides a text dump of the contents of the given page state. 108 // Provides a text dump of the contents of the given page state.
108 std::string DumpBackForwardList(std::vector<PageState>& page_state, 109 std::string DumpBackForwardList(std::vector<PageState>& page_state,
109 size_t current_index); 110 size_t current_index);
110 111
111 } // namespace content 112 } // namespace content
112 113
113 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 114 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698