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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
15 #include "cc/layers/texture_layer.h" | 15 #include "cc/layers/texture_layer.h" |
16 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 16 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
17 | 17 |
18 class GURL; | 18 class GURL; |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 class WebDeviceMotionData; | |
22 class WebDeviceOrientationData; | |
23 class WebInputEvent; | 21 class WebInputEvent; |
24 class WebLocalFrame; | 22 class WebLocalFrame; |
25 struct WebSize; | 23 struct WebSize; |
26 class WebURLRequest; | 24 class WebURLRequest; |
27 class WebView; | 25 class WebView; |
28 class WebWidget; | 26 class WebWidget; |
29 class WebURLResponse; | 27 class WebURLResponse; |
30 } | 28 } |
31 | 29 |
| 30 namespace device { |
| 31 class MotionData; |
| 32 class OrientationData; |
| 33 } |
| 34 |
32 namespace gfx { | 35 namespace gfx { |
33 class ICCProfile; | 36 class ICCProfile; |
34 } | 37 } |
35 | 38 |
36 namespace test_runner { | 39 namespace test_runner { |
37 class WebFrameTestProxyBase; | 40 class WebFrameTestProxyBase; |
38 class WebViewTestProxyBase; | 41 class WebViewTestProxyBase; |
39 class WebWidgetTestProxyBase; | 42 class WebWidgetTestProxyBase; |
40 } | 43 } |
41 | 44 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 void FetchManifest(blink::WebView* view, const GURL& url, | 100 void FetchManifest(blink::WebView* view, const GURL& url, |
98 const FetchManifestCallback&); | 101 const FetchManifestCallback&); |
99 | 102 |
100 // Sets gamepad provider to be used for layout tests. | 103 // Sets gamepad provider to be used for layout tests. |
101 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider); | 104 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider); |
102 | 105 |
103 // Sets a double that should be used when registering | 106 // Sets a double that should be used when registering |
104 // a listener through BlinkPlatformImpl::setDeviceLightListener(). | 107 // a listener through BlinkPlatformImpl::setDeviceLightListener(). |
105 void SetMockDeviceLightData(const double data); | 108 void SetMockDeviceLightData(const double data); |
106 | 109 |
107 // Sets WebDeviceMotionData that should be used when registering | 110 // Sets MotionData that should be used when registering |
108 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). | 111 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). |
109 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); | 112 void SetMockDeviceMotionData(const device::MotionData& data); |
110 | 113 |
111 // Sets WebDeviceOrientationData that should be used when registering | 114 // Sets OrientationData that should be used when registering |
112 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). | 115 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). |
113 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); | 116 void SetMockDeviceOrientationData(const device::OrientationData& data); |
114 | 117 |
115 // Returns the length of the local session history of a render view. | 118 // Returns the length of the local session history of a render view. |
116 int GetLocalSessionHistoryLength(RenderView* render_view); | 119 int GetLocalSessionHistoryLength(RenderView* render_view); |
117 | 120 |
118 // Sync the current session history to the browser process. | 121 // Sync the current session history to the browser process. |
119 void SyncNavigationState(RenderView* render_view); | 122 void SyncNavigationState(RenderView* render_view); |
120 | 123 |
121 // Sets the focus of the render view depending on |enable|. This only overrides | 124 // Sets the focus of the render view depending on |enable|. This only overrides |
122 // the state of the renderer, and does not sync the focus to the browser | 125 // the state of the renderer, and does not sync the focus to the browser |
123 // process. | 126 // process. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* render_frame); | 181 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* render_frame); |
179 | 182 |
180 // PlzNavigate | 183 // PlzNavigate |
181 // Returns true if the navigation identified by the |request| was initiated by | 184 // Returns true if the navigation identified by the |request| was initiated by |
182 // the browser or renderer. | 185 // the browser or renderer. |
183 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request); | 186 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request); |
184 | 187 |
185 } // namespace content | 188 } // namespace content |
186 | 189 |
187 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 190 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
OLD | NEW |