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); |
+}; |
/** |
* @} |
*/ |