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

Unified Diff: pdf/instance.cc

Issue 981843003: Printing: PDFs should only be fit to page if there is a size mismatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf169120
Patch Set: rebase Created 5 years, 9 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 | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/instance.cc
diff --git a/pdf/instance.cc b/pdf/instance.cc
index 724f7d664c2f1a26c82912bbfaa65279d5026c68..f32129163c8a78695f878a3c2826c0714b96ec1b 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -677,6 +677,10 @@ void Instance::GetPrintPresetOptionsFromDocument(
options->duplex =
static_cast<PP_PrivateDuplexMode_Dev>(engine_->GetDuplexType());
options->copies = engine_->GetCopiesToPrint();
+ pp::Size uniform_page_size;
+ options->is_page_size_uniform =
+ PP_FromBool(engine_->GetPageSizeAndUniformity(&uniform_page_size));
+ options->uniform_page_size = PP_Size(uniform_page_size);
}
pp::Var Instance::GetLinkAtPosition(const pp::Point& point) {
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698