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

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

Issue 339913002: Move MockScreenOrientationController to content/shell/renderer/test_runner/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix layer violation Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/content_shell.gypi ('k') | 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void SetMockGamepadProvider(RendererGamepadProvider* provider); 49 void SetMockGamepadProvider(RendererGamepadProvider* provider);
50 50
51 // Sets WebDeviceMotionData that should be used when registering 51 // Sets WebDeviceMotionData that should be used when registering
52 // a listener through WebKitPlatformSupport::setDeviceMotionListener(). 52 // a listener through WebKitPlatformSupport::setDeviceMotionListener().
53 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); 53 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data);
54 54
55 // Sets WebDeviceOrientationData that should be used when registering 55 // Sets WebDeviceOrientationData that should be used when registering
56 // a listener through WebKitPlatformSupport::setDeviceOrientationListener(). 56 // a listener through WebKitPlatformSupport::setDeviceOrientationListener().
57 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); 57 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data);
58 58
59 // Sets WebScreenOrientationType that should be used as a mock orientation.
60 void SetMockScreenOrientation(
61 RenderView* render_view,
62 const blink::WebScreenOrientationType& orientation);
63
64 // Resets the mock screen orientation data.
65 void ResetMockScreenOrientation();
66
67 // Notifies blink that battery status has changed. 59 // Notifies blink that battery status has changed.
68 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status); 60 void MockBatteryStatusChanged(const blink::WebBatteryStatus& status);
69 61
70 // Returns the length of the local session history of a render view. 62 // Returns the length of the local session history of a render view.
71 int GetLocalSessionHistoryLength(RenderView* render_view); 63 int GetLocalSessionHistoryLength(RenderView* render_view);
72 64
73 // Sync the current session history to the browser process. 65 // Sync the current session history to the browser process.
74 void SyncNavigationState(RenderView* render_view); 66 void SyncNavigationState(RenderView* render_view);
75 67
76 // Sets the focus of the render view depending on |enable|. This only overrides 68 // Sets the focus of the render view depending on |enable|. This only overrides
(...skipping 28 matching lines...) Expand all
105 // Provides a text dump of the contents of the given page state. 97 // Provides a text dump of the contents of the given page state.
106 std::string DumpBackForwardList(std::vector<PageState>& page_state, 98 std::string DumpBackForwardList(std::vector<PageState>& page_state,
107 size_t current_index); 99 size_t current_index);
108 100
109 // Instantiates WebLayerImpl for TestPlugin. 101 // Instantiates WebLayerImpl for TestPlugin.
110 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer); 102 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer);
111 103
112 } // namespace content 104 } // namespace content
113 105
114 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 106 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/content_shell.gypi ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698