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/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 Loading... |
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 |
OLD | NEW |