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

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

Issue 7327013: Print Preview: Notify the print preview of the page count when reusing existing preview data. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_preview_message_handler.cc
===================================================================
--- chrome/browser/printing/print_preview_message_handler.cc (revision 91779)
+++ chrome/browser/printing/print_preview_message_handler.cc (working copy)
@@ -113,6 +113,9 @@
TabContentsWrapper::GetCurrentWrapperForContents(print_preview_tab);
if (params.reuse_existing_data) {
+ // Need to match normal rendering where we are expected to send this.
+ print_preview_ui->OnDidGetPreviewPageCount(params.expected_pages_count);
+
print_preview_ui->OnPreviewDataIsAvailable(
params.expected_pages_count,
wrapper->print_view_manager()->RenderSourceName(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698