Index: ppapi/api/dev/pp_print_settings_dev.idl |
diff --git a/ppapi/api/dev/pp_print_settings_dev.idl b/ppapi/api/dev/pp_print_settings_dev.idl |
index fafcc08b28bc392e7d21c8d70b24461ab9ca6149..152be1486943d8009b8cdf49dadf1a30ec445796 100644 |
--- a/ppapi/api/dev/pp_print_settings_dev.idl |
+++ b/ppapi/api/dev/pp_print_settings_dev.idl |
@@ -30,6 +30,14 @@ enum PP_PrintScalingOption_Dev { |
PP_PRINTSCALINGOPTION_SOURCE_SIZE = 2 |
}; |
+[assert_size(4)] |
+enum PP_PrintDuplexMode_Dev { |
+ PP_PRINTDUPLEXMODE_NONE = 0, |
+ PP_PRINTDUPLEXMODE_SIMPLEX = 1, |
+ PP_PRINTDUPLEXMODE_LONG_EDGE = 2, |
+ PP_PRINTDUPLEXMODE_SHORT_EDGE = 3 |
+}; |
+ |
[assert_size(60)] |
struct PP_PrintSettings_Dev { |
/** This is the size of the printable area in points (1/72 of an inch). */ |
@@ -43,3 +51,18 @@ struct PP_PrintSettings_Dev { |
/** Note that Chrome currently only supports PDF printing. */ |
PP_PrintOutputFormat_Dev format; |
}; |
+ |
+[assert_size(8)] |
+struct PP_PrintRange_Dev { |
+ int32_t from; |
+ int32_t to; |
+}; |
+ |
+[assert_size(24)] |
+struct PP_PrintPresetOptions_Dev { |
+ PP_Bool is_scaling_disabled; |
+ int32_t copies; |
+ PP_PrintDuplexMode_Dev duplex; |
+ PP_PrintRange_Dev page_range; |
+ int32_t page_range_count; |
+}; |