| 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 "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/ref_counted.h" |
| 9 | 10 |
| 10 namespace WebKit { | 11 namespace WebKit { |
| 11 class WebGamepads; | 12 class WebGamepads; |
| 12 struct WebSize; | 13 struct WebSize; |
| 13 } | 14 } |
| 14 | 15 |
| 15 namespace WebTestRunner { | 16 namespace WebTestRunner { |
| 16 class WebTestProxyBase; | 17 class WebTestProxyBase; |
| 17 } | 18 } |
| 18 | 19 |
| 20 namespace base { |
| 21 class MessageLoopProxy; |
| 22 } |
| 23 |
| 19 namespace content { | 24 namespace content { |
| 20 | 25 |
| 21 class RenderView; | 26 class RenderView; |
| 22 | 27 |
| 23 // Turn the browser process into layout test mode. | 28 // Turn the browser process into layout test mode. |
| 24 void EnableBrowserLayoutTestMode(); | 29 void EnableBrowserLayoutTestMode(); |
| 25 | 30 |
| 26 /////////////////////////////////////////////////////////////////////////////// | 31 /////////////////////////////////////////////////////////////////////////////// |
| 27 // The following methods are meant to be used from a renderer. | 32 // The following methods are meant to be used from a renderer. |
| 28 | 33 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 57 // Set the device scale factor and force the compositor to resize. | 62 // Set the device scale factor and force the compositor to resize. |
| 58 void SetDeviceScaleFactor(RenderView* render_view, float factor); | 63 void SetDeviceScaleFactor(RenderView* render_view, float factor); |
| 59 | 64 |
| 60 // Control auto resize mode. | 65 // Control auto resize mode. |
| 61 void EnableAutoResizeMode(RenderView* render_view, | 66 void EnableAutoResizeMode(RenderView* render_view, |
| 62 const WebKit::WebSize& min_size, | 67 const WebKit::WebSize& min_size, |
| 63 const WebKit::WebSize& max_size); | 68 const WebKit::WebSize& max_size); |
| 64 void DisableAutoResizeMode(RenderView* render_view, | 69 void DisableAutoResizeMode(RenderView* render_view, |
| 65 const WebKit::WebSize& new_size); | 70 const WebKit::WebSize& new_size); |
| 66 | 71 |
| 72 // Return the thread on which media operations should run. |
| 73 // |
| 74 // TODO(scherkus): We should be using RenderViewImpl::createMediaPlayer(), see |
| 75 // http://crbug.com/239826 |
| 76 scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy(); |
| 77 |
| 67 } // namespace content | 78 } // namespace content |
| 68 | 79 |
| 69 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ | 80 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ |
| OLD | NEW |