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

Unified Diff: chrome/browser/printing/print_preview_tab_controller.cc

Issue 8949061: Move a bunch of methods from TabContents into the WebContents interface. This change either moves... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/printing/print_preview_tab_controller.cc
===================================================================
--- chrome/browser/printing/print_preview_tab_controller.cc (revision 115435)
+++ chrome/browser/printing/print_preview_tab_controller.cc (working copy)
@@ -255,7 +255,7 @@
RemovePreviewTab(closed_preview_tabs[i]);
PrintPreviewUI* print_preview_ui =
static_cast<PrintPreviewUI*>(
- closed_preview_tabs[i]->tab_contents()->web_ui());
+ closed_preview_tabs[i]->tab_contents()->GetWebUI());
if (print_preview_ui)
print_preview_ui->OnPrintPreviewTabClosed();
}
@@ -395,9 +395,9 @@
void PrintPreviewTabController::SetInitiatorTabURLAndTitle(
TabContentsWrapper* preview_tab) {
TabContentsWrapper* initiator_tab = GetInitiatorTab(preview_tab);
- if (initiator_tab && preview_tab->tab_contents()->web_ui()) {
+ if (initiator_tab && preview_tab->tab_contents()->GetWebUI()) {
PrintPreviewUI* print_preview_ui =
- static_cast<PrintPreviewUI*>(preview_tab->tab_contents()->web_ui());
+ static_cast<PrintPreviewUI*>(preview_tab->tab_contents()->GetWebUI());
print_preview_ui->SetInitiatorTabURLAndTitle(
initiator_tab->tab_contents()->GetURL().spec(),
initiator_tab->print_view_manager()->RenderSourceName());
@@ -461,7 +461,7 @@
// Initiator tab is closed. Close the print preview tab too.
PrintPreviewUI* print_preview_ui =
- static_cast<PrintPreviewUI*>(preview_tab->tab_contents()->web_ui());
+ static_cast<PrintPreviewUI*>(preview_tab->tab_contents()->GetWebUI());
if (print_preview_ui)
print_preview_ui->OnInitiatorTabClosed();
}
@@ -478,7 +478,7 @@
// Print preview TabContents is destroyed. Notify |PrintPreviewUI| to abort
// the initiator tab preview request.
PrintPreviewUI* print_preview_ui =
- static_cast<PrintPreviewUI*>(preview_tab->tab_contents()->web_ui());
+ static_cast<PrintPreviewUI*>(preview_tab->tab_contents()->GetWebUI());
if (print_preview_ui)
print_preview_ui->OnTabDestroyed();
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698