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

Side by Side Diff: content/shell/shell.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 9 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
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/shell/shell.h" 5 #include "content/shell/shell.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 PlatformSizeTo(pref_size.width(), pref_size.height()); 146 PlatformSizeTo(pref_size.width(), pref_size.height());
147 } 147 }
148 148
149 void Shell::DidFinishLoad(int64 frame_id, 149 void Shell::DidFinishLoad(int64 frame_id,
150 const GURL& validated_url, 150 const GURL& validated_url,
151 bool is_main_frame) { 151 bool is_main_frame) {
152 if (!is_main_frame || wait_until_done_) 152 if (!is_main_frame || wait_until_done_)
153 return; 153 return;
154 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) 154 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
155 return; 155 return;
156 RenderViewHost* render_view_host = tab_contents_->GetRenderViewHost(); 156 RenderViewHostImpl* render_view_host =
157 static_cast<RenderViewHostImpl*>(tab_contents_->GetRenderViewHost());
157 render_view_host->Send( 158 render_view_host->Send(
158 new ShellViewMsg_CaptureTextDump(render_view_host->routing_id(), false)); 159 new ShellViewMsg_CaptureTextDump(render_view_host->GetRoutingID(),
160 false));
159 } 161 }
160 162
161 } // namespace content 163 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/layout_test_controller_bindings.cc ('k') | content/shell/shell_render_view_host_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698