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

Unified Diff: ppapi/proxy/printing_resource.cc

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 | « ppapi/proxy/printing_resource.h ('k') | ppapi/thunk/interfaces_ppb_public_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/printing_resource.cc
diff --git a/ppapi/proxy/printing_resource.cc b/ppapi/proxy/printing_resource.cc
index d9be3b7430194e8866d401f3e5f093ce1b23b67d..61e0b6ff31ad92ea92a7e017f4fa25fcabd06abf 100644
--- a/ppapi/proxy/printing_resource.cc
+++ b/ppapi/proxy/printing_resource.cc
@@ -41,6 +41,16 @@ int32_t PrintingResource::GetDefaultPrintSettings(
return PP_OK_COMPLETIONPENDING;
}
+void PrintingResource::SetPrintPresetOptionsFromDocument(
+ const PP_PrintPresetOptions_Dev* print_options) {
+ if (!sent_create_to_browser())
+ SendCreate(RENDERER, PpapiHostMsg_PrintHost_Create());
+
+ Post(
+ RENDERER,
+ PpapiHostMsg_PrintHost_SetPrintPresetOptionsFromDocument(*print_options));
+}
+
void PrintingResource::OnPluginMsgGetDefaultPrintSettingsReply(
PP_PrintSettings_Dev* settings_out,
scoped_refptr<TrackedCallback> callback,
« no previous file with comments | « ppapi/proxy/printing_resource.h ('k') | ppapi/thunk/interfaces_ppb_public_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698