| 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 *proceed_to_fire_unload = false; | 685 *proceed_to_fire_unload = false; |
| 686 } | 686 } |
| 687 } | 687 } |
| 688 | 688 |
| 689 void ExternalTabContainer::ShowRepostFormWarningDialog( | 689 void ExternalTabContainer::ShowRepostFormWarningDialog( |
| 690 TabContents* tab_contents) { | 690 TabContents* tab_contents) { |
| 691 browser::ShowRepostFormWarningDialog(GetNativeView(), tab_contents); | 691 browser::ShowRepostFormWarningDialog(GetNativeView(), tab_contents); |
| 692 } | 692 } |
| 693 | 693 |
| 694 void ExternalTabContainer::RunFileChooser( | 694 void ExternalTabContainer::RunFileChooser( |
| 695 TabContents* tab, const ViewHostMsg_RunFileChooser_Params& params) { | 695 TabContents* tab, const content::FileChooserParams& params) { |
| 696 Browser::RunFileChooserHelper(tab, params); | 696 Browser::RunFileChooserHelper(tab, params); |
| 697 } | 697 } |
| 698 | 698 |
| 699 void ExternalTabContainer::EnumerateDirectory(TabContents* tab, int request_id, | 699 void ExternalTabContainer::EnumerateDirectory(TabContents* tab, int request_id, |
| 700 const FilePath& path) { | 700 const FilePath& path) { |
| 701 Browser::EnumerateDirectoryHelper(tab, request_id, path); | 701 Browser::EnumerateDirectoryHelper(tab, request_id, path); |
| 702 } | 702 } |
| 703 | 703 |
| 704 void ExternalTabContainer::JSOutOfMemory(TabContents* tab) { | 704 void ExternalTabContainer::JSOutOfMemory(TabContents* tab) { |
| 705 Browser::JSOutOfMemoryHelper(tab); | 705 Browser::JSOutOfMemoryHelper(tab); |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1175 if (params.disposition == CURRENT_TAB) { | 1175 if (params.disposition == CURRENT_TAB) { |
| 1176 DCHECK(route_all_top_level_navigations_); | 1176 DCHECK(route_all_top_level_navigations_); |
| 1177 forward_params.disposition = NEW_FOREGROUND_TAB; | 1177 forward_params.disposition = NEW_FOREGROUND_TAB; |
| 1178 } | 1178 } |
| 1179 TabContents* new_contents = | 1179 TabContents* new_contents = |
| 1180 ExternalTabContainer::OpenURLFromTab(source, forward_params); | 1180 ExternalTabContainer::OpenURLFromTab(source, forward_params); |
| 1181 // support only one navigation for a dummy tab before it is killed. | 1181 // support only one navigation for a dummy tab before it is killed. |
| 1182 ::DestroyWindow(GetNativeView()); | 1182 ::DestroyWindow(GetNativeView()); |
| 1183 return new_contents; | 1183 return new_contents; |
| 1184 } | 1184 } |
| OLD | NEW |