Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: content/test/layouttest_support.cc

Issue 282083003: Remove unused WebTestProxy paint/canvas code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove needless comment Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/test_runner/web_test_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/web_test_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698