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

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

Issue 2896583005: Reland: Refactor DeviceMotionEventPump to use //device/generic_sensor instead of //device/sensors (Closed)
Patch Set: updated test code 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;
21 class WebInputEvent; 22 class WebInputEvent;
22 class WebLocalFrame; 23 class WebLocalFrame;
23 struct WebSize; 24 struct WebSize;
24 class WebURLRequest; 25 class WebURLRequest;
25 class WebView; 26 class WebView;
26 class WebWidget; 27 class WebWidget;
27 class WebURLResponse; 28 class WebURLResponse;
28 } 29 }
29 30
30 namespace device { 31 namespace device {
31 class MotionData;
32 class OrientationData; 32 class OrientationData;
33 } 33 }
34 34
35 namespace gfx { 35 namespace gfx {
36 class ICCProfile; 36 class ICCProfile;
37 } 37 }
38 38
39 namespace test_runner { 39 namespace test_runner {
40 class WebFrameTestProxyBase; 40 class WebFrameTestProxyBase;
41 class WebViewTestProxyBase; 41 class WebViewTestProxyBase;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void FetchManifest(blink::WebView* view, const GURL& url, 100 void FetchManifest(blink::WebView* view, const GURL& url,
101 const FetchManifestCallback&); 101 const FetchManifestCallback&);
102 102
103 // Sets gamepad provider to be used for layout tests. 103 // Sets gamepad provider to be used for layout tests.
104 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider); 104 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider);
105 105
106 // Sets a double that should be used when registering 106 // Sets a double that should be used when registering
107 // a listener through BlinkPlatformImpl::setDeviceLightListener(). 107 // a listener through BlinkPlatformImpl::setDeviceLightListener().
108 void SetMockDeviceLightData(const double data); 108 void SetMockDeviceLightData(const double data);
109 109
110 // Sets MotionData that should be used when registering 110 // Sets WebDeviceMotionData that should be used when registering
111 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). 111 // a listener through BlinkPlatformImpl::setDeviceMotionListener().
112 void SetMockDeviceMotionData(const device::MotionData& data); 112 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data);
113 113
114 // Sets OrientationData that should be used when registering 114 // Sets OrientationData that should be used when registering
115 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). 115 // a listener through BlinkPlatformImpl::setDeviceOrientationListener().
116 void SetMockDeviceOrientationData(const device::OrientationData& data); 116 void SetMockDeviceOrientationData(const device::OrientationData& data);
117 117
118 // 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.
119 int GetLocalSessionHistoryLength(RenderView* render_view); 119 int GetLocalSessionHistoryLength(RenderView* render_view);
120 120
121 // Sync the current session history to the browser process. 121 // Sync the current session history to the browser process.
122 void SyncNavigationState(RenderView* render_view); 122 void SyncNavigationState(RenderView* render_view);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* render_frame); 181 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* render_frame);
182 182
183 // PlzNavigate 183 // PlzNavigate
184 // 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
185 // the browser or renderer. 185 // the browser or renderer.
186 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request); 186 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request);
187 187
188 } // namespace content 188 } // namespace content
189 189
190 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 190 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698