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

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

Issue 2885203004: Refactor content/renderer/device_sensors to use device/generic_sensor instead of device/sensors (Closed)
Patch Set: updated content/renderer/BUILD.gn Created 3 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
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 <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;
21 class WebInputEvent; 23 class WebInputEvent;
22 class WebLocalFrame; 24 class WebLocalFrame;
23 struct WebSize; 25 struct WebSize;
24 class WebURLRequest; 26 class WebURLRequest;
25 class WebView; 27 class WebView;
26 class WebWidget; 28 class WebWidget;
27 class WebURLResponse; 29 class WebURLResponse;
28 } 30 }
29 31
30 namespace device {
31 class MotionData;
32 class OrientationData;
33 }
34
35 namespace gfx { 32 namespace gfx {
36 class ICCProfile; 33 class ICCProfile;
37 } 34 }
38 35
39 namespace test_runner { 36 namespace test_runner {
40 class WebFrameTestProxyBase; 37 class WebFrameTestProxyBase;
41 class WebViewTestProxyBase; 38 class WebViewTestProxyBase;
42 class WebWidgetTestProxyBase; 39 class WebWidgetTestProxyBase;
43 } 40 }
44 41
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void FetchManifest(blink::WebView* view, const GURL& url, 97 void FetchManifest(blink::WebView* view, const GURL& url,
101 const FetchManifestCallback&); 98 const FetchManifestCallback&);
102 99
103 // Sets gamepad provider to be used for layout tests. 100 // Sets gamepad provider to be used for layout tests.
104 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider); 101 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider);
105 102
106 // Sets a double that should be used when registering 103 // Sets a double that should be used when registering
107 // a listener through BlinkPlatformImpl::setDeviceLightListener(). 104 // a listener through BlinkPlatformImpl::setDeviceLightListener().
108 void SetMockDeviceLightData(const double data); 105 void SetMockDeviceLightData(const double data);
109 106
110 // Sets MotionData that should be used when registering 107 // Sets WebDeviceMotionData that should be used when registering
111 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). 108 // a listener through BlinkPlatformImpl::setDeviceMotionListener().
112 void SetMockDeviceMotionData(const device::MotionData& data); 109 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data);
113 110
114 // Sets OrientationData that should be used when registering 111 // Sets WebDeviceOrientationData that should be used when registering
115 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). 112 // a listener through BlinkPlatformImpl::setDeviceOrientationListener().
116 void SetMockDeviceOrientationData(const device::OrientationData& data); 113 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data);
117 114
118 // Returns the length of the local session history of a render view. 115 // Returns the length of the local session history of a render view.
119 int GetLocalSessionHistoryLength(RenderView* render_view); 116 int GetLocalSessionHistoryLength(RenderView* render_view);
120 117
121 // Sync the current session history to the browser process. 118 // Sync the current session history to the browser process.
122 void SyncNavigationState(RenderView* render_view); 119 void SyncNavigationState(RenderView* render_view);
123 120
124 // Sets the focus of the render view depending on |enable|. This only overrides 121 // Sets the focus of the render view depending on |enable|. This only overrides
125 // the state of the renderer, and does not sync the focus to the browser 122 // the state of the renderer, and does not sync the focus to the browser
126 // process. 123 // process.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* render_frame); 178 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* render_frame);
182 179
183 // PlzNavigate 180 // PlzNavigate
184 // Returns true if the navigation identified by the |request| was initiated by 181 // Returns true if the navigation identified by the |request| was initiated by
185 // the browser or renderer. 182 // the browser or renderer.
186 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request); 183 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request);
187 184
188 } // namespace content 185 } // namespace content
189 186
190 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 187 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698