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" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/ui/browser.h" | 26 #include "chrome/browser/ui/browser.h" |
27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
28 #include "chrome/browser/ui/views/browser_dialogs.h" | 28 #include "chrome/browser/ui/views/browser_dialogs.h" |
29 #include "chrome/browser/ui/views/page_info_bubble_view.h" | 29 #include "chrome/browser/ui/views/page_info_bubble_view.h" |
30 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" | 30 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" |
31 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" | 31 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
32 #include "chrome/common/automation_messages.h" | 32 #include "chrome/common/automation_messages.h" |
33 #include "chrome/common/bindings_policy.h" | 33 #include "chrome/common/bindings_policy.h" |
34 #include "chrome/common/chrome_constants.h" | 34 #include "chrome/common/chrome_constants.h" |
35 #include "chrome/common/native_web_keyboard_event.h" | |
36 #include "chrome/common/page_transition_types.h" | |
37 #include "chrome/common/render_messages.h" | 35 #include "chrome/common/render_messages.h" |
38 #include "chrome/common/render_messages_params.h" | 36 #include "chrome/common/render_messages_params.h" |
39 #include "chrome/common/url_constants.h" | 37 #include "chrome/common/url_constants.h" |
40 #include "content/browser/renderer_host/render_process_host.h" | 38 #include "content/browser/renderer_host/render_process_host.h" |
41 #include "content/browser/renderer_host/render_view_host.h" | 39 #include "content/browser/renderer_host/render_view_host.h" |
42 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 40 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
43 #include "content/browser/tab_contents/provisional_load_details.h" | 41 #include "content/browser/tab_contents/provisional_load_details.h" |
| 42 #include "content/common/native_web_keyboard_event.h" |
44 #include "content/common/notification_service.h" | 43 #include "content/common/notification_service.h" |
| 44 #include "content/common/page_transition_types.h" |
45 #include "grit/generated_resources.h" | 45 #include "grit/generated_resources.h" |
46 #include "grit/locale_settings.h" | 46 #include "grit/locale_settings.h" |
47 #include "ui/base/l10n/l10n_util.h" | 47 #include "ui/base/l10n/l10n_util.h" |
48 #include "ui/base/view_prop.h" | 48 #include "ui/base/view_prop.h" |
49 #include "views/layout/grid_layout.h" | 49 #include "views/layout/grid_layout.h" |
50 #include "views/widget/root_view.h" | 50 #include "views/widget/root_view.h" |
51 #include "views/window/window.h" | 51 #include "views/window/window.h" |
52 | 52 |
53 using ui::ViewProp; | 53 using ui::ViewProp; |
54 | 54 |
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 | 1121 |
1122 if (disposition == CURRENT_TAB) { | 1122 if (disposition == CURRENT_TAB) { |
1123 DCHECK(route_all_top_level_navigations_); | 1123 DCHECK(route_all_top_level_navigations_); |
1124 disposition = NEW_FOREGROUND_TAB; | 1124 disposition = NEW_FOREGROUND_TAB; |
1125 } | 1125 } |
1126 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, | 1126 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, |
1127 transition); | 1127 transition); |
1128 // support only one navigation for a dummy tab before it is killed. | 1128 // support only one navigation for a dummy tab before it is killed. |
1129 ::DestroyWindow(GetNativeView()); | 1129 ::DestroyWindow(GetNativeView()); |
1130 } | 1130 } |
OLD | NEW |