| 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/devtools/devtools_client.h" | 10 #include "content/renderer/devtools/devtools_client.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 void EnableShortCircuitSizeUpdates() { | 85 void EnableShortCircuitSizeUpdates() { |
| 86 RenderThreadImpl::current()->set_short_circuit_size_updates(true); | 86 RenderThreadImpl::current()->set_short_circuit_size_updates(true); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void ForceResizeRenderView(RenderView* render_view, | 89 void ForceResizeRenderView(RenderView* render_view, |
| 90 const WebKit::WebSize& new_size) { | 90 const WebKit::WebSize& new_size) { |
| 91 static_cast<RenderViewImpl*>(render_view)->didAutoResize(new_size); | 91 static_cast<RenderViewImpl*>(render_view)->didAutoResize(new_size); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void DisableNavigationErrorPages() { |
| 95 RenderThreadImpl::current()->set_skip_error_pages(true); |
| 96 } |
| 97 |
| 94 } // namespace content | 98 } // namespace content |
| OLD | NEW |