| 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 "third_party/WebKit/public/platform/WebScreenOrientationType.h" | 12 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 class WebDeviceMotionData; | 15 class WebDeviceMotionData; |
| 16 class WebDeviceOrientationData; | 16 class WebDeviceOrientationData; |
| 17 class WebGamepad; | 17 class WebGamepad; |
| 18 class WebGamepads; | 18 class WebGamepads; |
| 19 struct WebSize; | 19 struct WebSize; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 | 23 |
| 24 class PageState; | 24 class PageState; |
| 25 class RenderFrame; |
| 25 class RenderView; | 26 class RenderView; |
| 26 class WebTestProxyBase; | 27 class WebTestProxyBase; |
| 27 | 28 |
| 28 // Turn the browser process into layout test mode. | 29 // Turn the browser process into layout test mode. |
| 29 void EnableBrowserLayoutTestMode(); | 30 void EnableBrowserLayoutTestMode(); |
| 30 | 31 |
| 31 /////////////////////////////////////////////////////////////////////////////// | 32 /////////////////////////////////////////////////////////////////////////////// |
| 32 // The following methods are meant to be used from a renderer. | 33 // The following methods are meant to be used from a renderer. |
| 33 | 34 |
| 34 // Turn a renderer into layout test mode. | 35 // Turn a renderer into layout test mode. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // See http://crbug.com/309760 for details. | 88 // See http://crbug.com/309760 for details. |
| 88 void UseSynchronousResizeMode(RenderView* render_view, bool enable); | 89 void UseSynchronousResizeMode(RenderView* render_view, bool enable); |
| 89 | 90 |
| 90 // Control auto resize mode. | 91 // Control auto resize mode. |
| 91 void EnableAutoResizeMode(RenderView* render_view, | 92 void EnableAutoResizeMode(RenderView* render_view, |
| 92 const blink::WebSize& min_size, | 93 const blink::WebSize& min_size, |
| 93 const blink::WebSize& max_size); | 94 const blink::WebSize& max_size); |
| 94 void DisableAutoResizeMode(RenderView* render_view, | 95 void DisableAutoResizeMode(RenderView* render_view, |
| 95 const blink::WebSize& new_size); | 96 const blink::WebSize& new_size); |
| 96 | 97 |
| 97 // Forces the |render_view| to use mock media streams. | 98 // Forces the |render_frame| to use mock media streams. |
| 98 void UseMockMediaStreams(RenderView* render_view); | 99 void UseMockMediaStreams(RenderFrame* render_frame); |
| 99 | 100 |
| 100 // Provides a text dump of the contents of the given page state. | 101 // Provides a text dump of the contents of the given page state. |
| 101 std::string DumpBackForwardList(std::vector<PageState>& page_state, | 102 std::string DumpBackForwardList(std::vector<PageState>& page_state, |
| 102 size_t current_index); | 103 size_t current_index); |
| 103 | 104 |
| 104 } // namespace content | 105 } // namespace content |
| 105 | 106 |
| 106 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 107 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |