OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/external_tab_container_win.h" | 5 #include "chrome/browser/external_tab_container_win.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "base/win/win_util.h" | 13 #include "base/win/win_util.h" |
14 #include "chrome/app/chrome_command_ids.h" | 14 #include "chrome/app/chrome_command_ids.h" |
15 #include "chrome/app/chrome_dll_resource.h" | 15 #include "chrome/app/chrome_dll_resource.h" |
16 #include "chrome/browser/automation/automation_provider.h" | 16 #include "chrome/browser/automation/automation_provider.h" |
17 #include "chrome/browser/debugger/devtools_manager.h" | 17 #include "chrome/browser/debugger/devtools_manager.h" |
18 #include "chrome/browser/debugger/devtools_toggle_action.h" | 18 #include "chrome/browser/debugger/devtools_toggle_action.h" |
19 #include "chrome/browser/google/google_util.h" | 19 #include "chrome/browser/google/google_util.h" |
20 #include "chrome/browser/history/history_types.h" | 20 #include "chrome/browser/history/history_types.h" |
21 #include "chrome/browser/history/history_tab_helper.h" | 21 #include "chrome/browser/history/history_tab_helper.h" |
22 #include "chrome/browser/load_notification_details.h" | |
23 #include "chrome/browser/page_info_window.h" | 22 #include "chrome/browser/page_info_window.h" |
24 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/browser/ui/browser.h" | 24 #include "chrome/browser/ui/browser.h" |
26 #include "chrome/browser/ui/browser_window.h" | 25 #include "chrome/browser/ui/browser_window.h" |
27 #include "chrome/browser/ui/download/download_tab_helper.h" | 26 #include "chrome/browser/ui/download/download_tab_helper.h" |
28 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
29 #include "chrome/browser/ui/views/browser_dialogs.h" | 28 #include "chrome/browser/ui/views/browser_dialogs.h" |
30 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" | 29 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" |
31 #include "chrome/browser/ui/views/page_info_bubble_view.h" | 30 #include "chrome/browser/ui/views/page_info_bubble_view.h" |
32 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" | 31 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" |
33 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" | 32 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
34 #include "chrome/common/automation_messages.h" | 33 #include "chrome/common/automation_messages.h" |
35 #include "chrome/common/chrome_constants.h" | 34 #include "chrome/common/chrome_constants.h" |
36 #include "chrome/common/render_messages.h" | 35 #include "chrome/common/render_messages.h" |
37 #include "chrome/common/url_constants.h" | 36 #include "chrome/common/url_constants.h" |
| 37 #include "content/browser/load_notification_details.h" |
38 #include "content/browser/renderer_host/render_process_host.h" | 38 #include "content/browser/renderer_host/render_process_host.h" |
39 #include "content/browser/renderer_host/render_view_host.h" | 39 #include "content/browser/renderer_host/render_view_host.h" |
40 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 40 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
41 #include "content/browser/tab_contents/provisional_load_details.h" | 41 #include "content/browser/tab_contents/provisional_load_details.h" |
42 #include "content/common/bindings_policy.h" | 42 #include "content/common/bindings_policy.h" |
43 #include "content/common/native_web_keyboard_event.h" | 43 #include "content/common/native_web_keyboard_event.h" |
44 #include "content/common/notification_service.h" | 44 #include "content/common/notification_service.h" |
45 #include "content/common/page_transition_types.h" | 45 #include "content/common/page_transition_types.h" |
46 #include "content/common/page_zoom.h" | 46 #include "content/common/page_zoom.h" |
47 #include "content/common/view_messages.h" | 47 #include "content/common/view_messages.h" |
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 | 1131 |
1132 if (disposition == CURRENT_TAB) { | 1132 if (disposition == CURRENT_TAB) { |
1133 DCHECK(route_all_top_level_navigations_); | 1133 DCHECK(route_all_top_level_navigations_); |
1134 disposition = NEW_FOREGROUND_TAB; | 1134 disposition = NEW_FOREGROUND_TAB; |
1135 } | 1135 } |
1136 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, | 1136 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, |
1137 transition); | 1137 transition); |
1138 // support only one navigation for a dummy tab before it is killed. | 1138 // support only one navigation for a dummy tab before it is killed. |
1139 ::DestroyWindow(GetNativeView()); | 1139 ::DestroyWindow(GetNativeView()); |
1140 } | 1140 } |
OLD | NEW |