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/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 std::vector<Shell*> Shell::windows_; | 26 std::vector<Shell*> Shell::windows_; |
27 | 27 |
28 bool Shell::quit_message_loop_ = true; | 28 bool Shell::quit_message_loop_ = true; |
29 | 29 |
30 Shell::Shell(WebContents* web_contents) | 30 Shell::Shell(WebContents* web_contents) |
31 : WebContentsObserver(web_contents), | 31 : WebContentsObserver(web_contents), |
32 wait_until_done_(false), | 32 wait_until_done_(false), |
33 window_(NULL), | 33 window_(NULL), |
34 url_edit_view_(NULL) | 34 url_edit_view_(NULL) |
35 #if defined(OS_WIN) | 35 #if defined(OS_WIN) && !defined(USE_AURA) |
36 , default_edit_wnd_proc_(0) | 36 , default_edit_wnd_proc_(0) |
37 #endif | 37 #endif |
38 { | 38 { |
39 windows_.push_back(this); | 39 windows_.push_back(this); |
40 } | 40 } |
41 | 41 |
42 Shell::~Shell() { | 42 Shell::~Shell() { |
43 PlatformCleanUp(); | 43 PlatformCleanUp(); |
44 | 44 |
45 for (size_t i = 0; i < windows_.size(); ++i) { | 45 for (size_t i = 0; i < windows_.size(); ++i) { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 return; | 172 return; |
173 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) | 173 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) |
174 return; | 174 return; |
175 RenderViewHost* render_view_host = web_contents_->GetRenderViewHost(); | 175 RenderViewHost* render_view_host = web_contents_->GetRenderViewHost(); |
176 render_view_host->Send( | 176 render_view_host->Send( |
177 new ShellViewMsg_CaptureTextDump(render_view_host->GetRoutingID(), | 177 new ShellViewMsg_CaptureTextDump(render_view_host->GetRoutingID(), |
178 false)); | 178 false)); |
179 } | 179 } |
180 | 180 |
181 } // namespace content | 181 } // namespace content |
OLD | NEW |