OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/view_prop.h" | 10 #include "app/view_prop.h" |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/win_util.h" | 14 #include "base/win_util.h" |
15 #include "chrome/app/chrome_command_ids.h" | 15 #include "chrome/app/chrome_command_ids.h" |
16 #include "chrome/app/chrome_dll_resource.h" | 16 #include "chrome/app/chrome_dll_resource.h" |
17 #include "chrome/browser/automation/automation_provider.h" | 17 #include "chrome/browser/automation/automation_provider.h" |
18 #include "chrome/browser/automation/automation_extension_function.h" | 18 #include "chrome/browser/automation/automation_extension_function.h" |
19 #include "chrome/browser/browser_window.h" | 19 #include "chrome/browser/browser_window.h" |
20 #include "chrome/browser/debugger/devtools_manager.h" | 20 #include "chrome/browser/debugger/devtools_manager.h" |
21 #include "chrome/browser/debugger/devtools_toggle_action.h" | 21 #include "chrome/browser/debugger/devtools_toggle_action.h" |
22 #include "chrome/browser/google/google_util.h" | 22 #include "chrome/browser/google/google_util.h" |
23 #include "chrome/browser/history/history_types.h" | 23 #include "chrome/browser/history/history_types.h" |
24 #include "chrome/browser/load_notification_details.h" | 24 #include "chrome/browser/load_notification_details.h" |
25 #include "chrome/browser/page_info_window.h" | 25 #include "chrome/browser/page_info_window.h" |
26 #include "chrome/browser/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
27 #include "chrome/browser/renderer_host/render_process_host.h" | 27 #include "chrome/browser/renderer_host/render_process_host.h" |
28 #include "chrome/browser/renderer_host/render_view_host.h" | 28 #include "chrome/browser/renderer_host/render_view_host.h" |
29 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" | 29 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" |
30 #include "chrome/browser/tab_contents/provisional_load_details.h" | 30 #include "chrome/browser/tab_contents/provisional_load_details.h" |
31 #include "chrome/browser/tab_contents/tab_contents.h" | 31 #include "chrome/browser/tab_contents/tab_contents.h" |
32 #include "chrome/browser/views/page_info_bubble_view.h" | 32 #include "chrome/browser/views/page_info_bubble_view.h" |
33 #include "chrome/browser/views/tab_contents/render_view_context_menu_views.h" | 33 #include "chrome/browser/views/tab_contents/render_view_context_menu_views.h" |
34 #include "chrome/browser/views/tab_contents/tab_contents_container.h" | 34 #include "chrome/browser/views/tab_contents/tab_contents_container.h" |
35 #include "chrome/common/automation_messages.h" | 35 #include "chrome/common/automation_messages.h" |
36 #include "chrome/common/bindings_policy.h" | 36 #include "chrome/common/bindings_policy.h" |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 | 1106 |
1107 if (disposition == CURRENT_TAB) { | 1107 if (disposition == CURRENT_TAB) { |
1108 DCHECK(route_all_top_level_navigations_); | 1108 DCHECK(route_all_top_level_navigations_); |
1109 disposition = NEW_FOREGROUND_TAB; | 1109 disposition = NEW_FOREGROUND_TAB; |
1110 } | 1110 } |
1111 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, | 1111 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, |
1112 transition); | 1112 transition); |
1113 // support only one navigation for a dummy tab before it is killed. | 1113 // support only one navigation for a dummy tab before it is killed. |
1114 ::DestroyWindow(GetNativeView()); | 1114 ::DestroyWindow(GetNativeView()); |
1115 } | 1115 } |
OLD | NEW |