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

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

Issue 689163002: Clean up the page state saving mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixeds Created 6 years, 1 month 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
« no previous file with comments | « content/shell/renderer/layout_test/webkit_test_runner.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 "cc/blink/web_layer_impl.h" 9 #include "cc/blink/web_layer_impl.h"
10 #include "content/browser/renderer_host/render_widget_host_impl.h" 10 #include "content/browser/renderer_host/render_widget_host_impl.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 PopupMenuHelper::DontShowPopupMenuForTesting(); 144 PopupMenuHelper::DontShowPopupMenuForTesting();
145 #endif 145 #endif
146 RenderWidgetHostImpl::DisableResizeAckCheckForTesting(); 146 RenderWidgetHostImpl::DisableResizeAckCheckForTesting();
147 } 147 }
148 148
149 int GetLocalSessionHistoryLength(RenderView* render_view) { 149 int GetLocalSessionHistoryLength(RenderView* render_view) {
150 return static_cast<RenderViewImpl*>(render_view)-> 150 return static_cast<RenderViewImpl*>(render_view)->
151 GetLocalSessionHistoryLengthForTesting(); 151 GetLocalSessionHistoryLengthForTesting();
152 } 152 }
153 153
154 void SyncNavigationState(RenderView* render_view) { 154 void ForcePageStateFlush(RenderView* render_view) {
155 static_cast<RenderViewImpl*>(render_view)->SyncNavigationState(); 155 static_cast<RenderViewImpl*>(render_view)->ForcePageStateFlushForTesting();
156 } 156 }
157 157
158 void SetFocusAndActivate(RenderView* render_view, bool enable) { 158 void SetFocusAndActivate(RenderView* render_view, bool enable) {
159 static_cast<RenderViewImpl*>(render_view)-> 159 static_cast<RenderViewImpl*>(render_view)->
160 SetFocusAndActivateForTesting(enable); 160 SetFocusAndActivateForTesting(enable);
161 } 161 }
162 162
163 void ForceResizeRenderView(RenderView* render_view, 163 void ForceResizeRenderView(RenderView* render_view,
164 const WebSize& new_size) { 164 const WebSize& new_size) {
165 RenderViewImpl* render_view_impl = static_cast<RenderViewImpl*>(render_view); 165 RenderViewImpl* render_view_impl = static_cast<RenderViewImpl*>(render_view);
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 } 387 }
388 result.append("===============================================\n"); 388 result.append("===============================================\n");
389 return result; 389 return result;
390 } 390 }
391 391
392 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer) { 392 blink::WebLayer* InstantiateWebLayer(scoped_refptr<cc::TextureLayer> layer) {
393 return new cc_blink::WebLayerImpl(layer); 393 return new cc_blink::WebLayerImpl(layer);
394 } 394 }
395 395
396 } // namespace content 396 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/webkit_test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698