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 <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlapp.h> | 8 #include <atlapp.h> |
9 #include <atlconv.h> | 9 #include <atlconv.h> |
10 #include <atlmisc.h> | 10 #include <atlmisc.h> |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 if (automation_) { | 659 if (automation_) { |
660 automation_->Send(new AutomationMsg_TabbedOut(tab_handle_, | 660 automation_->Send(new AutomationMsg_TabbedOut(tab_handle_, |
661 base::win::IsShiftPressed())); | 661 base::win::IsShiftPressed())); |
662 } | 662 } |
663 | 663 |
664 return true; | 664 return true; |
665 } | 665 } |
666 | 666 |
667 bool ExternalTabContainerWin::CanDownload(RenderViewHost* render_view_host, | 667 bool ExternalTabContainerWin::CanDownload(RenderViewHost* render_view_host, |
668 int request_id, | 668 int request_id, |
| 669 bool has_auth, |
669 const std::string& request_method) { | 670 const std::string& request_method) { |
670 if (load_requests_via_automation_) { | 671 if (load_requests_via_automation_) { |
671 if (automation_) { | 672 if (automation_) { |
672 // In case the host needs to show UI that needs to take the focus. | 673 // In case the host needs to show UI that needs to take the focus. |
673 ::AllowSetForegroundWindow(ASFW_ANY); | 674 ::AllowSetForegroundWindow(ASFW_ANY); |
674 | 675 |
675 BrowserThread::PostTask( | 676 BrowserThread::PostTask( |
676 BrowserThread::IO, FROM_HERE, | 677 BrowserThread::IO, FROM_HERE, |
677 base::Bind( | 678 base::Bind( |
678 base::IgnoreResult( | 679 base::IgnoreResult( |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1297 if (params.disposition == CURRENT_TAB) { | 1298 if (params.disposition == CURRENT_TAB) { |
1298 DCHECK(route_all_top_level_navigations_); | 1299 DCHECK(route_all_top_level_navigations_); |
1299 forward_params.disposition = NEW_FOREGROUND_TAB; | 1300 forward_params.disposition = NEW_FOREGROUND_TAB; |
1300 } | 1301 } |
1301 WebContents* new_contents = | 1302 WebContents* new_contents = |
1302 ExternalTabContainerWin::OpenURLFromTab(source, forward_params); | 1303 ExternalTabContainerWin::OpenURLFromTab(source, forward_params); |
1303 // support only one navigation for a dummy tab before it is killed. | 1304 // support only one navigation for a dummy tab before it is killed. |
1304 widget_->CloseNow(); | 1305 widget_->CloseNow(); |
1305 return new_contents; | 1306 return new_contents; |
1306 } | 1307 } |
OLD | NEW |