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" |
11 #include "base/stringprintf.h" | |
12 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/stringprintf.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/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_entry.h" | 17 #include "content/public/browser/navigation_entry.h" |
17 #include "content/public/browser/navigation_controller.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_view.h" | 23 #include "content/public/browser/web_contents_view.h" |
24 #include "content/public/common/renderer_preferences.h" | 24 #include "content/public/common/renderer_preferences.h" |
| 25 #include "content/shell/common/shell_messages.h" |
| 26 #include "content/shell/common/shell_switches.h" |
25 #include "content/shell/notify_done_forwarder.h" | 27 #include "content/shell/notify_done_forwarder.h" |
26 #include "content/shell/shell_browser_main_parts.h" | 28 #include "content/shell/shell_browser_main_parts.h" |
27 #include "content/shell/shell_content_browser_client.h" | 29 #include "content/shell/shell_content_browser_client.h" |
28 #include "content/shell/shell_devtools_frontend.h" | 30 #include "content/shell/shell_devtools_frontend.h" |
29 #include "content/shell/shell_javascript_dialog_manager.h" | 31 #include "content/shell/shell_javascript_dialog_manager.h" |
30 #include "content/shell/shell_messages.h" | |
31 #include "content/shell/shell_switches.h" | |
32 #include "content/shell/webkit_test_controller.h" | 32 #include "content/shell/webkit_test_controller.h" |
33 | 33 |
34 // Content area size for newly created windows. | 34 // Content area size for newly created windows. |
35 static const int kTestWindowWidth = 800; | 35 static const int kTestWindowWidth = 800; |
36 static const int kTestWindowHeight = 600; | 36 static const int kTestWindowHeight = 600; |
37 | 37 |
38 namespace content { | 38 namespace content { |
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_; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 } | 322 } |
323 } else if (type == NOTIFICATION_WEB_CONTENTS_DESTROYED) { | 323 } else if (type == NOTIFICATION_WEB_CONTENTS_DESTROYED) { |
324 devtools_frontend_ = NULL; | 324 devtools_frontend_ = NULL; |
325 registrar_.Remove(this, NOTIFICATION_WEB_CONTENTS_DESTROYED, source); | 325 registrar_.Remove(this, NOTIFICATION_WEB_CONTENTS_DESTROYED, source); |
326 } else { | 326 } else { |
327 NOTREACHED(); | 327 NOTREACHED(); |
328 } | 328 } |
329 } | 329 } |
330 | 330 |
331 } // namespace content | 331 } // namespace content |
OLD | NEW |