| Index: chrome/browser/printing/print_preview_message_handler.cc
|
| ===================================================================
|
| --- chrome/browser/printing/print_preview_message_handler.cc (revision 115435)
|
| +++ chrome/browser/printing/print_preview_message_handler.cc (working copy)
|
| @@ -91,11 +91,11 @@
|
| // Inform the print preview tab of the failure.
|
| TabContentsWrapper* print_preview_tab = GetPrintPreviewTab();
|
| // User might have closed it already.
|
| - if (!print_preview_tab || !print_preview_tab->tab_contents()->web_ui())
|
| + if (!print_preview_tab || !print_preview_tab->tab_contents()->GetWebUI())
|
| return NULL;
|
|
|
| return static_cast<PrintPreviewUI*>(
|
| - print_preview_tab->tab_contents()->web_ui());
|
| + print_preview_tab->tab_contents()->GetWebUI());
|
| }
|
|
|
| void PrintPreviewMessageHandler::OnRequestPrintPreview(
|
| @@ -113,11 +113,11 @@
|
| }
|
|
|
| TabContentsWrapper* print_preview_tab = GetPrintPreviewTab();
|
| - if (!print_preview_tab || !print_preview_tab->tab_contents()->web_ui())
|
| + if (!print_preview_tab || !print_preview_tab->tab_contents()->GetWebUI())
|
| return;
|
|
|
| - PrintPreviewUI* print_preview_ui =
|
| - static_cast<PrintPreviewUI*>(print_preview_tab->tab_contents()->web_ui());
|
| + PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(
|
| + print_preview_tab->tab_contents()->GetWebUI());
|
|
|
| if (!params.is_modifiable || params.clear_preview_data)
|
| print_preview_ui->ClearAllPreviewData();
|
| @@ -128,11 +128,11 @@
|
| void PrintPreviewMessageHandler::OnDidPreviewPage(
|
| const PrintHostMsg_DidPreviewPage_Params& params) {
|
| TabContentsWrapper* print_preview_tab = GetPrintPreviewTab();
|
| - if (!print_preview_tab || !print_preview_tab->tab_contents()->web_ui())
|
| + if (!print_preview_tab || !print_preview_tab->tab_contents()->GetWebUI())
|
| return;
|
|
|
| - PrintPreviewUI* print_preview_ui =
|
| - static_cast<PrintPreviewUI*>(print_preview_tab->tab_contents()->web_ui());
|
| + PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(
|
| + print_preview_tab->tab_contents()->GetWebUI());
|
| int page_number = params.page_number;
|
| if (page_number >= FIRST_PAGE_INDEX && params.data_size) {
|
| RefCountedBytes* data_bytes =
|
| @@ -157,11 +157,11 @@
|
| // Get the print preview tab.
|
| TabContentsWrapper* print_preview_tab = GetPrintPreviewTab();
|
| // User might have closed it already.
|
| - if (!print_preview_tab || !print_preview_tab->tab_contents()->web_ui())
|
| + if (!print_preview_tab || !print_preview_tab->tab_contents()->GetWebUI())
|
| return;
|
|
|
| - PrintPreviewUI* print_preview_ui =
|
| - static_cast<PrintPreviewUI*>(print_preview_tab->tab_contents()->web_ui());
|
| + PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(
|
| + print_preview_tab->tab_contents()->GetWebUI());
|
|
|
| if (params.reuse_existing_data) {
|
| // Need to match normal rendering where we are expected to send this.
|
| @@ -199,11 +199,11 @@
|
| void PrintPreviewMessageHandler::OnDidGetDefaultPageLayout(
|
| const PageSizeMargins& page_layout_in_points) {
|
| TabContentsWrapper* print_preview_tab = GetPrintPreviewTab();
|
| - if (!print_preview_tab || !print_preview_tab->tab_contents()->web_ui())
|
| + if (!print_preview_tab || !print_preview_tab->tab_contents()->GetWebUI())
|
| return;
|
|
|
| - PrintPreviewUI* print_preview_ui =
|
| - static_cast<PrintPreviewUI*>(print_preview_tab->tab_contents()->web_ui());
|
| + PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(
|
| + print_preview_tab->tab_contents()->GetWebUI());
|
| print_preview_ui->OnDidGetDefaultPageLayout(page_layout_in_points);
|
| }
|
|
|
|
|