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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index 241ae173090fb3f1303fe03230dfb536491e835c..016f510a5951ed8c6ffa2dbeb4461dcb7cbcfb62 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -350,7 +350,7 @@ void PrintPreviewHandler::HandleGetPreview(const ListValue* args) {
VLOG(1) << "Print preview request start";
RenderViewHost* rvh = initiator_tab->web_contents()->GetRenderViewHost();
- rvh->Send(new PrintMsg_PrintPreview(rvh->routing_id(), *settings));
+ rvh->Send(new PrintMsg_PrintPreview(rvh->GetRoutingID(), *settings));
}
void PrintPreviewHandler::HandlePrint(const ListValue* args) {
@@ -364,7 +364,7 @@ void PrintPreviewHandler::HandlePrint(const ListValue* args) {
TabContentsWrapper* initiator_tab = GetInitiatorTab();
if (initiator_tab) {
RenderViewHost* rvh = initiator_tab->web_contents()->GetRenderViewHost();
- rvh->Send(new PrintMsg_ResetScriptedPrintCount(rvh->routing_id()));
+ rvh->Send(new PrintMsg_ResetScriptedPrintCount(rvh->GetRoutingID()));
}
scoped_ptr<DictionaryValue> settings(GetSettingsDictionary(args));
@@ -420,7 +420,8 @@ void PrintPreviewHandler::HandlePrint(const ListValue* args) {
// so ignore the page range and print all pages.
settings->Remove(printing::kSettingPageRange, NULL);
RenderViewHost* rvh = web_ui()->GetWebContents()->GetRenderViewHost();
- rvh->Send(new PrintMsg_PrintForPrintPreview(rvh->routing_id(), *settings));
+ rvh->Send(
+ new PrintMsg_PrintForPrintPreview(rvh->GetRoutingID(), *settings));
// For all other cases above, the tab will stay open until the printing has
// finished. Then the tab closes and PrintPreviewDone() gets called. Here,
@@ -670,7 +671,8 @@ void PrintPreviewHandler::SendInitialSettings(
void PrintPreviewHandler::ActivateInitiatorTabAndClosePreviewTab() {
TabContentsWrapper* initiator_tab = GetInitiatorTab();
if (initiator_tab)
- initiator_tab->web_contents()->GetRenderViewHost()->delegate()->Activate();
+ initiator_tab->web_contents()->GetRenderViewHost()->
+ GetDelegate()->Activate();
PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(
web_ui()->GetController());
print_preview_ui->OnClosePrintPreviewTab();
« no previous file with comments | « chrome/browser/ui/webui/options2/advanced_options_utils2_x11.cc ('k') | chrome/browser/ui/webui/signin/login_ui_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698