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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "cc/layers/texture_layer.h" |
12 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" | 13 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 class WebBatteryStatus; | 16 class WebBatteryStatus; |
16 class WebDeviceMotionData; | 17 class WebDeviceMotionData; |
17 class WebDeviceOrientationData; | 18 class WebDeviceOrientationData; |
18 class WebGamepad; | 19 class WebGamepad; |
19 class WebGamepads; | 20 class WebGamepads; |
| 21 class WebLayer; |
20 struct WebSize; | 22 struct WebSize; |
21 } | 23 } |
22 | 24 |
23 namespace content { | 25 namespace content { |
24 | 26 |
25 class PageState; | 27 class PageState; |
26 class RenderFrame; | 28 class RenderFrame; |
27 class RenderView; | 29 class RenderView; |
28 class WebTestProxyBase; | 30 class WebTestProxyBase; |
29 | 31 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 void EnableAutoResizeMode(RenderView* render_view, | 105 void EnableAutoResizeMode(RenderView* render_view, |
104 const blink::WebSize& min_size, | 106 const blink::WebSize& min_size, |
105 const blink::WebSize& max_size); | 107 const blink::WebSize& max_size); |
106 void DisableAutoResizeMode(RenderView* render_view, | 108 void DisableAutoResizeMode(RenderView* render_view, |
107 const blink::WebSize& new_size); | 109 const blink::WebSize& new_size); |
108 | 110 |
109 // Provides a text dump of the contents of the given page state. | 111 // Provides a text dump of the contents of the given page state. |
110 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 112 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
111 size_t current_index); | 113 size_t current_index); |
112 | 114 |
| 115 // Instantiates WebLayerImpl for TestPlugin. |
| 116 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer); |
| 117 |
113 } // namespace content | 118 } // namespace content |
114 | 119 |
115 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 120 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
OLD | NEW |