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