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 14 matching lines...) Expand all Loading... |
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/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/bindings_policy.h" | 36 #include "chrome/common/bindings_policy.h" |
36 #include "chrome/common/chrome_constants.h" | 37 #include "chrome/common/chrome_constants.h" |
37 #include "chrome/common/render_messages.h" | 38 #include "chrome/common/render_messages.h" |
38 #include "chrome/common/render_messages_params.h" | 39 #include "chrome/common/render_messages_params.h" |
39 #include "chrome/common/native_web_keyboard_event.h" | 40 #include "chrome/common/native_web_keyboard_event.h" |
40 #include "chrome/common/notification_service.h" | 41 #include "chrome/common/notification_service.h" |
41 #include "chrome/common/page_transition_types.h" | 42 #include "chrome/common/page_transition_types.h" |
42 #include "chrome/common/url_constants.h" | 43 #include "chrome/common/url_constants.h" |
43 #include "chrome/test/automation/automation_messages.h" | |
44 #include "grit/generated_resources.h" | 44 #include "grit/generated_resources.h" |
45 #include "grit/locale_settings.h" | 45 #include "grit/locale_settings.h" |
46 #include "views/grid_layout.h" | 46 #include "views/grid_layout.h" |
47 #include "views/widget/root_view.h" | 47 #include "views/widget/root_view.h" |
48 #include "views/window/window.h" | 48 #include "views/window/window.h" |
49 | 49 |
50 static const wchar_t kWindowObjectKey[] = L"ChromeWindowObject"; | 50 static const wchar_t kWindowObjectKey[] = L"ChromeWindowObject"; |
51 | 51 |
52 // This class overrides the LinkActivated function in the PageInfoBubbleView | 52 // This class overrides the LinkActivated function in the PageInfoBubbleView |
53 // class and routes the help center link navigation to the host browser. | 53 // class and routes the help center link navigation to the host browser. |
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 | 1108 |
1109 if (disposition == CURRENT_TAB) { | 1109 if (disposition == CURRENT_TAB) { |
1110 DCHECK(route_all_top_level_navigations_); | 1110 DCHECK(route_all_top_level_navigations_); |
1111 disposition = NEW_FOREGROUND_TAB; | 1111 disposition = NEW_FOREGROUND_TAB; |
1112 } | 1112 } |
1113 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, | 1113 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, |
1114 transition); | 1114 transition); |
1115 // support only one navigation for a dummy tab before it is killed. | 1115 // support only one navigation for a dummy tab before it is killed. |
1116 ::DestroyWindow(GetNativeView()); | 1116 ::DestroyWindow(GetNativeView()); |
1117 } | 1117 } |
OLD | NEW |