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

Unified Diff: ppapi/thunk/ppb_printing_dev_thunk.cc

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PPB_Printing_Dev changes Created 6 years, 4 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
« ppapi/proxy/printing_resource.cc ('K') | « ppapi/thunk/ppb_printing_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_printing_dev_thunk.cc
diff --git a/ppapi/thunk/ppb_printing_dev_thunk.cc b/ppapi/thunk/ppb_printing_dev_thunk.cc
index 96f52f5832cd9c7608725593a1bbc36ccbac74d0..084b75b26f201eead510dde48956fb6d08f2b76e 100644
--- a/ppapi/thunk/ppb_printing_dev_thunk.cc
+++ b/ppapi/thunk/ppb_printing_dev_thunk.cc
@@ -37,11 +37,27 @@ int32_t GetDefaultPrintSettings(PP_Resource resource,
enter.callback()));
}
+void SetPrintPresetOptionsFromDocument(
+ PP_Resource resource,
+ PP_PrintPresetOptions_Dev* print_options) {
+ VLOG(4) << "PPB_Printing_Dev::SetPrintPresetOptionsFromDocument()";
+ EnterResource<PPB_Printing_API> enter(resource, true);
+ if (enter.failed())
+ return;
+ enter.object()->SetPrintPresetOptionsFromDocument(print_options);
+}
+
const PPB_Printing_Dev_0_7 g_ppb_printing_dev_thunk_0_7 = {
&Create,
&GetDefaultPrintSettings
};
+const PPB_Printing_Dev_0_8 g_ppb_printing_dev_thunk_0_8 = {
+ &Create,
+ &GetDefaultPrintSettings,
+ &SetPrintPresetOptionsFromDocument
+};
+
} // namespace
PPAPI_THUNK_EXPORT const PPB_Printing_Dev_0_7*
@@ -49,5 +65,10 @@ PPAPI_THUNK_EXPORT const PPB_Printing_Dev_0_7*
return &g_ppb_printing_dev_thunk_0_7;
}
+PPAPI_THUNK_EXPORT const PPB_Printing_Dev_0_8*
+ GetPPB_Printing_Dev_0_8_Thunk() {
+ return &g_ppb_printing_dev_thunk_0_8;
+}
+
} // namespace thunk
} // namespace ppapi
« ppapi/proxy/printing_resource.cc ('K') | « ppapi/thunk/ppb_printing_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698