Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1097)

Side by Side Diff: chrome/browser/external_tab/external_tab_container_win.cc

Issue 10535120: TabContentsWrapper -> TabContents, part 43. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/external_tab_container_win.h" 5 #include "chrome/browser/external_tab/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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 automation_->Send(unload_reply_message_); 710 automation_->Send(unload_reply_message_);
711 unload_reply_message_ = NULL; 711 unload_reply_message_ = NULL;
712 *proceed_to_fire_unload = false; 712 *proceed_to_fire_unload = false;
713 } 713 }
714 } 714 }
715 715
716 void ExternalTabContainer::ShowRepostFormWarningDialog( 716 void ExternalTabContainer::ShowRepostFormWarningDialog(
717 WebContents* source) { 717 WebContents* source) {
718 browser::ShowTabModalConfirmDialog( 718 browser::ShowTabModalConfirmDialog(
719 new RepostFormWarningController(source), 719 new RepostFormWarningController(source),
720 TabContents::GetOwningTabContentsForWebContents(source)); 720 TabContents::FromWebContents(source));
721 } 721 }
722 722
723 void ExternalTabContainer::RunFileChooser( 723 void ExternalTabContainer::RunFileChooser(
724 WebContents* tab, const content::FileChooserParams& params) { 724 WebContents* tab, const content::FileChooserParams& params) {
725 FileSelectHelper::RunFileChooser(tab, params); 725 FileSelectHelper::RunFileChooser(tab, params);
726 } 726 }
727 727
728 void ExternalTabContainer::EnumerateDirectory(WebContents* tab, int request_id, 728 void ExternalTabContainer::EnumerateDirectory(WebContents* tab, int request_id,
729 const FilePath& path) { 729 const FilePath& path) {
730 FileSelectHelper::EnumerateDirectory(tab, request_id, path); 730 FileSelectHelper::EnumerateDirectory(tab, request_id, path);
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 if (params.disposition == CURRENT_TAB) { 1202 if (params.disposition == CURRENT_TAB) {
1203 DCHECK(route_all_top_level_navigations_); 1203 DCHECK(route_all_top_level_navigations_);
1204 forward_params.disposition = NEW_FOREGROUND_TAB; 1204 forward_params.disposition = NEW_FOREGROUND_TAB;
1205 } 1205 }
1206 WebContents* new_contents = 1206 WebContents* new_contents =
1207 ExternalTabContainer::OpenURLFromTab(source, forward_params); 1207 ExternalTabContainer::OpenURLFromTab(source, forward_params);
1208 // support only one navigation for a dummy tab before it is killed. 1208 // support only one navigation for a dummy tab before it is killed.
1209 ::DestroyWindow(GetNativeView()); 1209 ::DestroyWindow(GetNativeView());
1210 return new_contents; 1210 return new_contents;
1211 } 1211 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_request_limiter_unittest.cc ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698