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

Unified Diff: pdf/out_of_process_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, 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
« no previous file with comments | « pdf/instance.cc ('k') | pdf/pdf_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/out_of_process_instance.cc
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
index ee4cd9fa1a6e1843ce457d711a4c37f21891ffe7..55426afae3c7f18b313ebc8d2bf31016ab78a149 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -606,6 +606,10 @@ void OutOfProcessInstance::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);
raymes 2015/03/09 00:12:31 is this a cast? Can you just do: options->uniform_
Lei Zhang 2015/03/09 22:03:26 Done. I wasn't sure whether this was doable: PP_Si
}
pp::Var OutOfProcessInstance::GetLinkAtPosition(
« no previous file with comments | « pdf/instance.cc ('k') | pdf/pdf_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698