| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" | 35 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" |
| 36 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" | 36 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" |
| 37 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" | 37 #include "chrome/browser/ui/views/tab_contents/tab_contents_container.h" |
| 38 #include "chrome/common/automation_messages.h" | 38 #include "chrome/common/automation_messages.h" |
| 39 #include "chrome/common/chrome_constants.h" | 39 #include "chrome/common/chrome_constants.h" |
| 40 #include "chrome/common/chrome_notification_types.h" | 40 #include "chrome/common/chrome_notification_types.h" |
| 41 #include "chrome/common/render_messages.h" | 41 #include "chrome/common/render_messages.h" |
| 42 #include "chrome/common/url_constants.h" | 42 #include "chrome/common/url_constants.h" |
| 43 #include "content/browser/load_notification_details.h" | 43 #include "content/browser/load_notification_details.h" |
| 44 #include "content/browser/renderer_host/render_view_host.h" | 44 #include "content/browser/renderer_host/render_view_host.h" |
| 45 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | |
| 46 #include "content/browser/tab_contents/provisional_load_details.h" | 45 #include "content/browser/tab_contents/provisional_load_details.h" |
| 47 #include "content/public/browser/navigation_details.h" | 46 #include "content/public/browser/navigation_details.h" |
| 48 #include "content/public/browser/navigation_entry.h" | 47 #include "content/public/browser/navigation_entry.h" |
| 49 #include "content/public/browser/native_web_keyboard_event.h" | 48 #include "content/public/browser/native_web_keyboard_event.h" |
| 50 #include "content/public/browser/notification_service.h" | 49 #include "content/public/browser/notification_service.h" |
| 51 #include "content/public/browser/render_process_host.h" | 50 #include "content/public/browser/render_process_host.h" |
| 52 #include "content/public/browser/web_contents.h" | 51 #include "content/public/browser/web_contents.h" |
| 53 #include "content/public/browser/web_intents_dispatcher.h" | 52 #include "content/public/browser/web_intents_dispatcher.h" |
| 54 #include "content/public/common/bindings_policy.h" | 53 #include "content/public/common/bindings_policy.h" |
| 55 #include "content/public/common/frame_navigate_params.h" | 54 #include "content/public/common/frame_navigate_params.h" |
| (...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 if (params.disposition == CURRENT_TAB) { | 1206 if (params.disposition == CURRENT_TAB) { |
| 1208 DCHECK(route_all_top_level_navigations_); | 1207 DCHECK(route_all_top_level_navigations_); |
| 1209 forward_params.disposition = NEW_FOREGROUND_TAB; | 1208 forward_params.disposition = NEW_FOREGROUND_TAB; |
| 1210 } | 1209 } |
| 1211 WebContents* new_contents = | 1210 WebContents* new_contents = |
| 1212 ExternalTabContainer::OpenURLFromTab(source, forward_params); | 1211 ExternalTabContainer::OpenURLFromTab(source, forward_params); |
| 1213 // support only one navigation for a dummy tab before it is killed. | 1212 // support only one navigation for a dummy tab before it is killed. |
| 1214 ::DestroyWindow(GetNativeView()); | 1213 ::DestroyWindow(GetNativeView()); |
| 1215 return new_contents; | 1214 return new_contents; |
| 1216 } | 1215 } |
| OLD | NEW |