| 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 #include "content/public/test/layouttest_support.h" | 5 #include "content/public/test/layouttest_support.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "content/common/gpu/image_transport_surface.h" | 9 #include "content/common/gpu/image_transport_surface.h" |
| 10 #include "content/renderer/render_thread_impl.h" | 10 #include "content/renderer/render_thread_impl.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 const WebSize& max_size) { | 104 const WebSize& max_size) { |
| 105 static_cast<RenderViewImpl*>(render_view) | 105 static_cast<RenderViewImpl*>(render_view) |
| 106 ->EnableAutoResizeForTesting(min_size, max_size); | 106 ->EnableAutoResizeForTesting(min_size, max_size); |
| 107 } | 107 } |
| 108 | 108 |
| 109 void DisableAutoResizeMode(RenderView* render_view, const WebSize& new_size) { | 109 void DisableAutoResizeMode(RenderView* render_view, const WebSize& new_size) { |
| 110 static_cast<RenderViewImpl*>(render_view) | 110 static_cast<RenderViewImpl*>(render_view) |
| 111 ->DisableAutoResizeForTesting(new_size); | 111 ->DisableAutoResizeForTesting(new_size); |
| 112 } | 112 } |
| 113 | 113 |
| 114 scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy() { |
| 115 return RenderThreadImpl::current()->GetMediaThreadMessageLoopProxy(); |
| 116 } |
| 117 |
| 114 } // namespace content | 118 } // namespace content |
| OLD | NEW |