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/browser/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/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "content/public/browser/devtools_manager.h" | 15 #include "content/public/browser/devtools_manager.h" |
16 #include "content/public/browser/navigation_controller.h" | 16 #include "content/public/browser/navigation_controller.h" |
17 #include "content/public/browser/navigation_entry.h" | 17 #include "content/public/browser/navigation_entry.h" |
18 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
19 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
20 #include "content/public/browser/notification_types.h" | 20 #include "content/public/browser/notification_types.h" |
21 #include "content/public/browser/render_view_host.h" | 21 #include "content/public/browser/render_view_host.h" |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "content/public/browser/web_contents_observer.h" | 23 #include "content/public/browser/web_contents_observer.h" |
24 #include "content/public/browser/web_contents_view.h" | 24 #include "content/public/browser/web_contents_view.h" |
25 #include "content/public/common/renderer_preferences.h" | 25 #include "content/public/common/renderer_preferences.h" |
| 26 #include "content/shell/browser/notify_done_forwarder.h" |
| 27 #include "content/shell/browser/shell_browser_main_parts.h" |
| 28 #include "content/shell/browser/shell_content_browser_client.h" |
| 29 #include "content/shell/browser/shell_devtools_frontend.h" |
| 30 #include "content/shell/browser/shell_javascript_dialog_manager.h" |
| 31 #include "content/shell/browser/webkit_test_controller.h" |
26 #include "content/shell/common/shell_messages.h" | 32 #include "content/shell/common/shell_messages.h" |
27 #include "content/shell/common/shell_switches.h" | 33 #include "content/shell/common/shell_switches.h" |
28 #include "content/shell/notify_done_forwarder.h" | |
29 #include "content/shell/shell_browser_main_parts.h" | |
30 #include "content/shell/shell_content_browser_client.h" | |
31 #include "content/shell/shell_devtools_frontend.h" | |
32 #include "content/shell/shell_javascript_dialog_manager.h" | |
33 #include "content/shell/webkit_test_controller.h" | |
34 | 34 |
35 namespace content { | 35 namespace content { |
36 | 36 |
37 const int Shell::kDefaultTestWindowWidthDip = 800; | 37 const int Shell::kDefaultTestWindowWidthDip = 800; |
38 const int Shell::kDefaultTestWindowHeightDip = 600; | 38 const int Shell::kDefaultTestWindowHeightDip = 600; |
39 | 39 |
40 std::vector<Shell*> Shell::windows_; | 40 std::vector<Shell*> Shell::windows_; |
41 base::Callback<void(Shell*)> Shell::shell_created_callback_; | 41 base::Callback<void(Shell*)> Shell::shell_created_callback_; |
42 | 42 |
43 bool Shell::quit_message_loop_ = true; | 43 bool Shell::quit_message_loop_ = true; |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 NOTREACHED(); | 358 NOTREACHED(); |
359 } | 359 } |
360 } | 360 } |
361 | 361 |
362 void Shell::OnDevToolsWebContentsDestroyed() { | 362 void Shell::OnDevToolsWebContentsDestroyed() { |
363 devtools_observer_.reset(); | 363 devtools_observer_.reset(); |
364 devtools_frontend_ = NULL; | 364 devtools_frontend_ = NULL; |
365 } | 365 } |
366 | 366 |
367 } // namespace content | 367 } // namespace content |
OLD | NEW |