| 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/render_messages.h" | |
| 36 #include "chrome/common/render_messages_params.h" | |
| 37 #include "chrome/common/url_constants.h" | 35 #include "chrome/common/url_constants.h" |
| 38 #include "content/browser/renderer_host/render_process_host.h" | 36 #include "content/browser/renderer_host/render_process_host.h" |
| 39 #include "content/browser/renderer_host/render_view_host.h" | 37 #include "content/browser/renderer_host/render_view_host.h" |
| 40 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 38 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
| 41 #include "content/browser/tab_contents/provisional_load_details.h" | 39 #include "content/browser/tab_contents/provisional_load_details.h" |
| 42 #include "content/common/native_web_keyboard_event.h" | 40 #include "content/common/native_web_keyboard_event.h" |
| 43 #include "content/common/notification_service.h" | 41 #include "content/common/notification_service.h" |
| 44 #include "content/common/page_transition_types.h" | 42 #include "content/common/page_transition_types.h" |
| 43 #include "content/common/view_messages.h" |
| 45 #include "grit/generated_resources.h" | 44 #include "grit/generated_resources.h" |
| 46 #include "grit/locale_settings.h" | 45 #include "grit/locale_settings.h" |
| 47 #include "ui/base/l10n/l10n_util.h" | 46 #include "ui/base/l10n/l10n_util.h" |
| 48 #include "ui/base/view_prop.h" | 47 #include "ui/base/view_prop.h" |
| 49 #include "views/layout/grid_layout.h" | 48 #include "views/layout/grid_layout.h" |
| 50 #include "views/widget/root_view.h" | 49 #include "views/widget/root_view.h" |
| 51 #include "views/window/window.h" | 50 #include "views/window/window.h" |
| 52 | 51 |
| 53 using ui::ViewProp; | 52 using ui::ViewProp; |
| 54 | 53 |
| (...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 | 1127 |
| 1129 if (disposition == CURRENT_TAB) { | 1128 if (disposition == CURRENT_TAB) { |
| 1130 DCHECK(route_all_top_level_navigations_); | 1129 DCHECK(route_all_top_level_navigations_); |
| 1131 disposition = NEW_FOREGROUND_TAB; | 1130 disposition = NEW_FOREGROUND_TAB; |
| 1132 } | 1131 } |
| 1133 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, | 1132 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, |
| 1134 transition); | 1133 transition); |
| 1135 // support only one navigation for a dummy tab before it is killed. | 1134 // support only one navigation for a dummy tab before it is killed. |
| 1136 ::DestroyWindow(GetNativeView()); | 1135 ::DestroyWindow(GetNativeView()); |
| 1137 } | 1136 } |
| OLD | NEW |