| 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" |
| 11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
| 12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/win_util.h" | 14 #include "base/win_util.h" |
| 15 #include "chrome/app/chrome_dll_resource.h" | 15 #include "chrome/app/chrome_command_ids.h" |
| 16 #include "chrome/browser/automation/automation_provider.h" | 16 #include "chrome/browser/automation/automation_provider.h" |
| 17 #include "chrome/browser/automation/automation_extension_function.h" | 17 #include "chrome/browser/automation/automation_extension_function.h" |
| 18 #include "chrome/browser/browser_window.h" | 18 #include "chrome/browser/browser_window.h" |
| 19 #include "chrome/browser/debugger/devtools_manager.h" | 19 #include "chrome/browser/debugger/devtools_manager.h" |
| 20 #include "chrome/browser/debugger/devtools_toggle_action.h" | 20 #include "chrome/browser/debugger/devtools_toggle_action.h" |
| 21 #include "chrome/browser/history/history_types.h" | 21 #include "chrome/browser/history/history_types.h" |
| 22 #include "chrome/browser/load_notification_details.h" | 22 #include "chrome/browser/load_notification_details.h" |
| 23 #include "chrome/browser/page_info_window.h" | 23 #include "chrome/browser/page_info_window.h" |
| 24 #include "chrome/browser/profile.h" | 24 #include "chrome/browser/profile.h" |
| 25 #include "chrome/browser/renderer_host/render_process_host.h" | 25 #include "chrome/browser/renderer_host/render_process_host.h" |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 | 1104 |
| 1105 if (disposition == CURRENT_TAB) { | 1105 if (disposition == CURRENT_TAB) { |
| 1106 DCHECK(route_all_top_level_navigations_); | 1106 DCHECK(route_all_top_level_navigations_); |
| 1107 disposition = NEW_FOREGROUND_TAB; | 1107 disposition = NEW_FOREGROUND_TAB; |
| 1108 } | 1108 } |
| 1109 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, | 1109 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, |
| 1110 transition); | 1110 transition); |
| 1111 // support only one navigation for a dummy tab before it is killed. | 1111 // support only one navigation for a dummy tab before it is killed. |
| 1112 ::DestroyWindow(GetNativeView()); | 1112 ::DestroyWindow(GetNativeView()); |
| 1113 } | 1113 } |
| OLD | NEW |