Index: ppapi/c/dev/ppp_printing_dev.h |
diff --git a/ppapi/c/dev/ppp_printing_dev.h b/ppapi/c/dev/ppp_printing_dev.h |
index 336c588c3382553ec2569302e6981c7e859d05f8..910555b111daa63393a08ea32a62fb71e86d6abe 100644 |
--- a/ppapi/c/dev/ppp_printing_dev.h |
+++ b/ppapi/c/dev/ppp_printing_dev.h |
@@ -23,7 +23,8 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintOrientation_Dev, 4); |
typedef enum { |
PP_PRINTOUTPUTFORMAT_RASTER = 1u << 0, |
PP_PRINTOUTPUTFORMAT_PDF = 1u << 1, |
- PP_PRINTOUTPUTFORMAT_POSTSCRIPT = 1u << 2 |
+ PP_PRINTOUTPUTFORMAT_POSTSCRIPT = 1u << 2, |
+ PP_PRINTOUTPUTFORMAT_EMF = 1u << 3 |
} PP_PrintOutputFormat_Dev; |
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintOutputFormat_Dev, 4); |
@@ -48,8 +49,8 @@ struct PP_PrintPageNumberRange_Dev { |
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8); |
/* Interface for the plugin to implement printing. */ |
-#define PPP_PRINTING_DEV_INTERFACE_0_4 "PPP_Printing(Dev);0.4" |
-#define PPP_PRINTING_DEV_INTERFACE PPP_PRINTING_DEV_INTERFACE_0_4 |
+#define PPP_PRINTING_DEV_INTERFACE_0_5 "PPP_Printing(Dev);0.5" |
+#define PPP_PRINTING_DEV_INTERFACE PPP_PRINTING_DEV_INTERFACE_0_5 |
struct PPP_Printing_Dev { |
/** |
@@ -61,6 +62,12 @@ struct PPP_Printing_Dev { |
uint32_t (*QuerySupportedFormats)(PP_Instance instance); |
/** |
+ * Returns true if the current content should be printed into the full page |
+ * and not scaled down to fit within the printer's printable area. |
+ */ |
+ bool (*IsScalingDisabled)(PP_Instance instance); |
dmichael (off chromium)
2011/09/27 15:28:38
We avoid using bool in C for various reasons (part
vandebo (ex-Chrome)
2011/09/27 20:02:24
Done.
|
+ |
+ /** |
* Begins a print session with the given print settings. Calls to PrintPage |
* can only be made after a successful call to Begin. Returns the number of |
* pages required for the print output at the given page size (0 indicates |