OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |