| 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 <string> | 11 #include <string> |
| 11 #include <vector> | 12 #include <vector> |
| 12 | 13 |
| 13 #include "base/callback_forward.h" | 14 #include "base/callback_forward.h" |
| 14 #include "base/memory/scoped_ptr.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 WebDeviceMotionData; |
| 22 class WebDeviceOrientationData; | 22 class WebDeviceOrientationData; |
| 23 class WebGamepad; | 23 class WebGamepad; |
| 24 class WebGamepads; | 24 class WebGamepads; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void EnableWebTestProxyCreation( | 68 void EnableWebTestProxyCreation( |
| 69 const ViewProxyCreationCallback& view_proxy_creation_callback, | 69 const ViewProxyCreationCallback& view_proxy_creation_callback, |
| 70 const FrameProxyCreationCallback& frame_proxy_creation_callback); | 70 const FrameProxyCreationCallback& frame_proxy_creation_callback); |
| 71 | 71 |
| 72 typedef base::Callback<void(const blink::WebURLResponse& response, | 72 typedef base::Callback<void(const blink::WebURLResponse& response, |
| 73 const std::string& data)> FetchManifestCallback; | 73 const std::string& data)> FetchManifestCallback; |
| 74 void FetchManifest(blink::WebView* view, const GURL& url, | 74 void FetchManifest(blink::WebView* view, const GURL& url, |
| 75 const FetchManifestCallback&); | 75 const FetchManifestCallback&); |
| 76 | 76 |
| 77 // Sets gamepad provider to be used for layout tests. | 77 // Sets gamepad provider to be used for layout tests. |
| 78 void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider); | 78 void SetMockGamepadProvider(std::unique_ptr<RendererGamepadProvider> provider); |
| 79 | 79 |
| 80 // Sets a double that should be used when registering | 80 // Sets a double that should be used when registering |
| 81 // a listener through BlinkPlatformImpl::setDeviceLightListener(). | 81 // a listener through BlinkPlatformImpl::setDeviceLightListener(). |
| 82 void SetMockDeviceLightData(const double data); | 82 void SetMockDeviceLightData(const double data); |
| 83 | 83 |
| 84 // Sets WebDeviceMotionData that should be used when registering | 84 // Sets WebDeviceMotionData that should be used when registering |
| 85 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). | 85 // a listener through BlinkPlatformImpl::setDeviceMotionListener(). |
| 86 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); | 86 void SetMockDeviceMotionData(const blink::WebDeviceMotionData& data); |
| 87 | 87 |
| 88 // Sets WebDeviceOrientationData that should be used when registering | 88 // Sets WebDeviceOrientationData that should be used when registering |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void DisableAutoResizeMode(RenderView* render_view, | 139 void DisableAutoResizeMode(RenderView* render_view, |
| 140 const blink::WebSize& new_size); | 140 const blink::WebSize& new_size); |
| 141 | 141 |
| 142 // Provides a text dump of the contents of the given page state. | 142 // Provides a text dump of the contents of the given page state. |
| 143 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 143 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
| 144 size_t current_index); | 144 size_t current_index); |
| 145 | 145 |
| 146 } // namespace content | 146 } // namespace content |
| 147 | 147 |
| 148 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 148 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |