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

Unified Diff: ppapi/c/dev/ppb_printing_dev.h

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
Index: ppapi/c/dev/ppb_printing_dev.h
diff --git a/ppapi/c/dev/ppb_printing_dev.h b/ppapi/c/dev/ppb_printing_dev.h
index 8b04c124f1178151f33659e1c092b18cefe920a5..ba94419cc568845bc572d8a3bcae603fb3b8ef20 100644
--- a/ppapi/c/dev/ppb_printing_dev.h
+++ b/ppapi/c/dev/ppb_printing_dev.h
@@ -20,7 +20,8 @@
#include "ppapi/c/pp_stdint.h"
#define PPB_PRINTING_DEV_INTERFACE_0_7 "PPB_Printing(Dev);0.7"
-#define PPB_PRINTING_DEV_INTERFACE PPB_PRINTING_DEV_INTERFACE_0_7
+#define PPB_PRINTING_DEV_INTERFACE_0_8 "PPB_Printing(Dev);0.8"
+#define PPB_PRINTING_DEV_INTERFACE PPB_PRINTING_DEV_INTERFACE_0_8
/**
* @file
@@ -32,7 +33,7 @@
* @addtogroup Interfaces
* @{
*/
-struct PPB_Printing_Dev_0_7 {
+struct PPB_Printing_Dev_0_8 {
/** Create a resource for accessing printing functionality.
*
* @param[in] instance A <code>PP_Instance</code> identifying one instance
@@ -59,9 +60,29 @@ struct PPB_Printing_Dev_0_7 {
PP_Resource resource,
struct PP_PrintSettings_Dev* print_settings,
struct PP_CompletionCallback callback);
+ /**
+ * Sets the print preset options in print preview dialog based on properties
+ * set in the source pdf document.
+ *
+ * @param[in] resource The printing resource.
+ *
+ * @param[in] print_options The print preset options set in
+ * <code>PP_PrintPresetOptions_Dev</code>.
+ */
+ void (*SetPrintPresetOptionsFromDocument)(
+ PP_Resource resource,
+ const struct PP_PrintPresetOptions_Dev* print_options);
};
-typedef struct PPB_Printing_Dev_0_7 PPB_Printing_Dev;
+typedef struct PPB_Printing_Dev_0_8 PPB_Printing_Dev;
+
+struct PPB_Printing_Dev_0_7 {
+ PP_Resource (*Create)(PP_Instance instance);
+ int32_t (*GetDefaultPrintSettings)(
+ PP_Resource resource,
+ struct PP_PrintSettings_Dev* print_settings,
+ struct PP_CompletionCallback callback);
+};
/**
* @}
*/

Powered by Google App Engine
This is Rietveld 408576698