| 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/win/scoped_prop.h" | 10 #include "app/win/scoped_prop.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/page_info_window.h" | 24 #include "chrome/browser/page_info_window.h" |
| 25 #include "chrome/browser/profile.h" | 25 #include "chrome/browser/profile.h" |
| 26 #include "chrome/browser/renderer_host/render_process_host.h" | 26 #include "chrome/browser/renderer_host/render_process_host.h" |
| 27 #include "chrome/browser/renderer_host/render_view_host.h" | 27 #include "chrome/browser/renderer_host/render_view_host.h" |
| 28 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" | 28 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" |
| 29 #include "chrome/browser/tab_contents/provisional_load_details.h" | 29 #include "chrome/browser/tab_contents/provisional_load_details.h" |
| 30 #include "chrome/browser/views/tab_contents/render_view_context_menu_views.h" | 30 #include "chrome/browser/views/tab_contents/render_view_context_menu_views.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/tab_contents_container.h" | 33 #include "chrome/browser/views/tab_contents/tab_contents_container.h" |
| 34 #include "chrome/common/automation_messages.h" |
| 34 #include "chrome/common/bindings_policy.h" | 35 #include "chrome/common/bindings_policy.h" |
| 35 #include "chrome/common/chrome_constants.h" | 36 #include "chrome/common/chrome_constants.h" |
| 36 #include "chrome/common/render_messages.h" | 37 #include "chrome/common/render_messages.h" |
| 37 #include "chrome/common/render_messages_params.h" | 38 #include "chrome/common/render_messages_params.h" |
| 38 #include "chrome/common/native_web_keyboard_event.h" | 39 #include "chrome/common/native_web_keyboard_event.h" |
| 39 #include "chrome/common/notification_service.h" | 40 #include "chrome/common/notification_service.h" |
| 40 #include "chrome/common/page_transition_types.h" | 41 #include "chrome/common/page_transition_types.h" |
| 41 #include "chrome/test/automation/automation_messages.h" | |
| 42 #include "grit/generated_resources.h" | 42 #include "grit/generated_resources.h" |
| 43 #include "grit/locale_settings.h" | 43 #include "grit/locale_settings.h" |
| 44 #include "views/grid_layout.h" | 44 #include "views/grid_layout.h" |
| 45 #include "views/widget/root_view.h" | 45 #include "views/widget/root_view.h" |
| 46 #include "views/window/window.h" | 46 #include "views/window/window.h" |
| 47 | 47 |
| 48 static const wchar_t kWindowObjectKey[] = L"ChromeWindowObject"; | 48 static const wchar_t kWindowObjectKey[] = L"ChromeWindowObject"; |
| 49 | 49 |
| 50 // This class overrides the LinkActivated function in the PageInfoBubbleView | 50 // This class overrides the LinkActivated function in the PageInfoBubbleView |
| 51 // class and routes the help center link navigation to the host browser. | 51 // class and routes the help center link navigation to the host browser. |
| (...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 | 1105 |
| 1106 if (disposition == CURRENT_TAB) { | 1106 if (disposition == CURRENT_TAB) { |
| 1107 DCHECK(route_all_top_level_navigations_); | 1107 DCHECK(route_all_top_level_navigations_); |
| 1108 disposition = NEW_FOREGROUND_TAB; | 1108 disposition = NEW_FOREGROUND_TAB; |
| 1109 } | 1109 } |
| 1110 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, | 1110 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, |
| 1111 transition); | 1111 transition); |
| 1112 // support only one navigation for a dummy tab before it is killed. | 1112 // support only one navigation for a dummy tab before it is killed. |
| 1113 ::DestroyWindow(GetNativeView()); | 1113 ::DestroyWindow(GetNativeView()); |
| 1114 } | 1114 } |
| OLD | NEW |