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/browser/renderer_host/render_widget_host_impl.h" | 9 #include "content/browser/renderer_host/render_widget_host_impl.h" |
10 #include "content/common/gpu/image_transport_surface.h" | 10 #include "content/common/gpu/image_transport_surface.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 void SetFocusAndActivate(RenderView* render_view, bool enable) { | 132 void SetFocusAndActivate(RenderView* render_view, bool enable) { |
133 static_cast<RenderViewImpl*>(render_view)-> | 133 static_cast<RenderViewImpl*>(render_view)-> |
134 SetFocusAndActivateForTesting(enable); | 134 SetFocusAndActivateForTesting(enable); |
135 } | 135 } |
136 | 136 |
137 void ForceResizeRenderView(RenderView* render_view, | 137 void ForceResizeRenderView(RenderView* render_view, |
138 const WebSize& new_size) { | 138 const WebSize& new_size) { |
139 RenderViewImpl* render_view_impl = static_cast<RenderViewImpl*>(render_view); | 139 RenderViewImpl* render_view_impl = static_cast<RenderViewImpl*>(render_view); |
140 render_view_impl->ForceResizeForTesting(new_size); | 140 render_view_impl->ForceResizeForTesting(new_size); |
141 GetWebTestProxyBase(render_view_impl)->DidForceResize(); | |
142 } | 141 } |
143 | 142 |
144 void SetDeviceScaleFactor(RenderView* render_view, float factor) { | 143 void SetDeviceScaleFactor(RenderView* render_view, float factor) { |
145 static_cast<RenderViewImpl*>(render_view)-> | 144 static_cast<RenderViewImpl*>(render_view)-> |
146 SetDeviceScaleFactorForTesting(factor); | 145 SetDeviceScaleFactorForTesting(factor); |
147 } | 146 } |
148 | 147 |
149 void SetDeviceColorProfile(RenderView* render_view, const std::string& name) { | 148 void SetDeviceColorProfile(RenderView* render_view, const std::string& name) { |
150 std::vector<char> color_profile; | 149 std::vector<char> color_profile; |
151 | 150 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 result.append( | 294 result.append( |
296 DumpHistoryItem(entry->root_history_node(), | 295 DumpHistoryItem(entry->root_history_node(), |
297 8, | 296 8, |
298 index == current_index)); | 297 index == current_index)); |
299 } | 298 } |
300 result.append("===============================================\n"); | 299 result.append("===============================================\n"); |
301 return result; | 300 return result; |
302 } | 301 } |
303 | 302 |
304 } // namespace content | 303 } // namespace content |
OLD | NEW |