| Index: pdf/out_of_process_instance.cc
|
| diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
|
| index ef83cd99ba2d002695b0ef110025abe0742489a8..d00bec4527d2077b930243a6ae5d2d1d8daccff5 100644
|
| --- a/pdf/out_of_process_instance.cc
|
| +++ b/pdf/out_of_process_instance.cc
|
| @@ -603,6 +603,8 @@ void OutOfProcessInstance::DidChangeView(const pp::View& view) {
|
| void OutOfProcessInstance::GetPrintPresetOptionsFromDocument(
|
| PP_PdfPrintPresetOptions_Dev* options) {
|
| options->is_scaling_disabled = PP_FromBool(IsPrintScalingDisabled());
|
| + options->duplex =
|
| + static_cast<PP_PrintDuplexMode_Dev>(engine_->GetDuplexType());
|
| options->copies = engine_->GetCopiesToPrint();
|
| }
|
|
|
| @@ -1183,7 +1185,7 @@ void OutOfProcessInstance::DocumentLoadFailed() {
|
| // Send a progress value of -1 to indicate a failure.
|
| pp::VarDictionary message;
|
| message.Set(pp::Var(kType), pp::Var(kJSLoadProgressType));
|
| - message.Set(pp::Var(kJSProgressPercentage), pp::Var(-1)) ;
|
| + message.Set(pp::Var(kJSProgressPercentage), pp::Var(-1));
|
| PostMessage(message);
|
| }
|
|
|
| @@ -1250,7 +1252,7 @@ void OutOfProcessInstance::DocumentLoadProgress(uint32 available,
|
| last_progress_sent_ = progress;
|
| pp::VarDictionary message;
|
| message.Set(pp::Var(kType), pp::Var(kJSLoadProgressType));
|
| - message.Set(pp::Var(kJSProgressPercentage), pp::Var(progress)) ;
|
| + message.Set(pp::Var(kJSProgressPercentage), pp::Var(progress));
|
| PostMessage(message);
|
| }
|
| }
|
|
|