| 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 WebGamepad; | 21 class WebGamepad; |
| 24 class WebGamepads; | 22 class WebGamepads; |
| 25 class WebInputEvent; | 23 class WebInputEvent; |
| 26 class WebLayer; | 24 class WebLayer; |
| 27 class WebLocalFrame; | 25 class WebLocalFrame; |
| 28 struct WebSize; | 26 struct WebSize; |
| 29 class WebView; | 27 class WebView; |
| 30 class WebWidget; | 28 class WebWidget; |
| 31 class WebURLResponse; | 29 class WebURLResponse; |
| 32 } | 30 } |
| 33 | 31 |
| 34 namespace device { | 32 namespace device { |
| 35 class BluetoothAdapter; | 33 class BluetoothAdapter; |
| 34 class MotionData; |
| 35 class OrientationData; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace gfx { | 38 namespace gfx { |
| 39 class ICCProfile; | 39 class ICCProfile; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace test_runner { | 42 namespace test_runner { |
| 43 class WebFrameTestProxyBase; | 43 class WebFrameTestProxyBase; |
| 44 class WebViewTestProxyBase; | 44 class WebViewTestProxyBase; |
| 45 class WebWidgetTestProxyBase; | 45 class WebWidgetTestProxyBase; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void FetchManifest(blink::WebView* view, const GURL& url, | 103 void FetchManifest(blink::WebView* view, const GURL& url, |
| 104 const FetchManifestCallback&); | 104 const FetchManifestCallback&); |
| 105 | 105 |
| 106 // Sets gamepad provider to be used for layout tests. | 106 // Sets gamepad provider to be used for layout tests. |
| 107 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider); | 107 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider); |
| 108 | 108 |
| 109 // Sets a double that should be used when registering | 109 // Sets a double that should be used when registering |
| 110 // a listener through BlinkPlatformImpl::setDeviceLightListener(). | 110 // a listener through BlinkPlatformImpl::setDeviceLightListener(). |
| 111 void SetMockDeviceLightData(const double data); | 111 void SetMockDeviceLightData(const double data); |
| 112 | 112 |
| 113 // Sets WebDeviceMotionData that should be used when registering | 113 // Sets MotionData that should be used when registering |
| 114 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). | 114 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). |
| 115 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); | 115 void SetMockDeviceMotionData(const device::MotionData& data); |
| 116 | 116 |
| 117 // Sets WebDeviceOrientationData that should be used when registering | 117 // Sets OrientationData that should be used when registering |
| 118 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). | 118 // a listener through BlinkPlatformImpl::setDeviceOrientationListener(). |
| 119 void SetMockDeviceOrientationData(const blink::WebDeviceOrientationData& data); | 119 void SetMockDeviceOrientationData(const device::OrientationData& data); |
| 120 | 120 |
| 121 // Returns the length of the local session history of a render view. | 121 // Returns the length of the local session history of a render view. |
| 122 int GetLocalSessionHistoryLength(RenderView* render_view); | 122 int GetLocalSessionHistoryLength(RenderView* render_view); |
| 123 | 123 |
| 124 // Sync the current session history to the browser process. | 124 // Sync the current session history to the browser process. |
| 125 void SyncNavigationState(RenderView* render_view); | 125 void SyncNavigationState(RenderView* render_view); |
| 126 | 126 |
| 127 // Sets the focus of the render view depending on |enable|. This only overrides | 127 // Sets the focus of the render view depending on |enable|. This only overrides |
| 128 // the state of the renderer, and does not sync the focus to the browser | 128 // the state of the renderer, and does not sync the focus to the browser |
| 129 // process. | 129 // process. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // Provides a text dump of the contents of the given page state. | 175 // Provides a text dump of the contents of the given page state. |
| 176 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 176 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
| 177 size_t current_index); | 177 size_t current_index); |
| 178 | 178 |
| 179 // Run all pending idle tasks immediately, and then invoke callback. | 179 // Run all pending idle tasks immediately, and then invoke callback. |
| 180 void SchedulerRunIdleTasks(const base::Closure& callback); | 180 void SchedulerRunIdleTasks(const base::Closure& callback); |
| 181 | 181 |
| 182 } // namespace content | 182 } // namespace content |
| 183 | 183 |
| 184 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 184 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |