| 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/ui/views/external_tab_container_win.h" | 5 #include "chrome/browser/ui/views/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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 AutomationMsg_RunUnloadHandlers::WriteReplyParams(unload_reply_message_, | 758 AutomationMsg_RunUnloadHandlers::WriteReplyParams(unload_reply_message_, |
| 759 false); | 759 false); |
| 760 automation_->Send(unload_reply_message_); | 760 automation_->Send(unload_reply_message_); |
| 761 unload_reply_message_ = NULL; | 761 unload_reply_message_ = NULL; |
| 762 *proceed_to_fire_unload = false; | 762 *proceed_to_fire_unload = false; |
| 763 } | 763 } |
| 764 } | 764 } |
| 765 | 765 |
| 766 void ExternalTabContainerWin::ShowRepostFormWarningDialog(WebContents* source) { | 766 void ExternalTabContainerWin::ShowRepostFormWarningDialog(WebContents* source) { |
| 767 TabModalConfirmDialog::Create(new RepostFormWarningController(source), | 767 TabModalConfirmDialog::Create(new RepostFormWarningController(source), |
| 768 TabContents::FromWebContents(source)); | 768 source); |
| 769 } | 769 } |
| 770 | 770 |
| 771 void ExternalTabContainerWin::RunFileChooser( | 771 void ExternalTabContainerWin::RunFileChooser( |
| 772 WebContents* tab, | 772 WebContents* tab, |
| 773 const content::FileChooserParams& params) { | 773 const content::FileChooserParams& params) { |
| 774 FileSelectHelper::RunFileChooser(tab, params); | 774 FileSelectHelper::RunFileChooser(tab, params); |
| 775 } | 775 } |
| 776 | 776 |
| 777 void ExternalTabContainerWin::EnumerateDirectory(WebContents* tab, | 777 void ExternalTabContainerWin::EnumerateDirectory(WebContents* tab, |
| 778 int request_id, | 778 int request_id, |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 if (params.disposition == CURRENT_TAB) { | 1273 if (params.disposition == CURRENT_TAB) { |
| 1274 DCHECK(route_all_top_level_navigations_); | 1274 DCHECK(route_all_top_level_navigations_); |
| 1275 forward_params.disposition = NEW_FOREGROUND_TAB; | 1275 forward_params.disposition = NEW_FOREGROUND_TAB; |
| 1276 } | 1276 } |
| 1277 WebContents* new_contents = | 1277 WebContents* new_contents = |
| 1278 ExternalTabContainerWin::OpenURLFromTab(source, forward_params); | 1278 ExternalTabContainerWin::OpenURLFromTab(source, forward_params); |
| 1279 // support only one navigation for a dummy tab before it is killed. | 1279 // support only one navigation for a dummy tab before it is killed. |
| 1280 ::DestroyWindow(GetNativeView()); | 1280 ::DestroyWindow(GetNativeView()); |
| 1281 return new_contents; | 1281 return new_contents; |
| 1282 } | 1282 } |
| OLD | NEW |