Index: ppapi/c/dev/pp_print_settings_dev.h |
diff --git a/ppapi/c/dev/pp_print_settings_dev.h b/ppapi/c/dev/pp_print_settings_dev.h |
index 93e21d4300fff25066ae300f6fbfa23d3e939e0d..58865bff74035c3d11a5d8b421a48f3bf90048c1 100644 |
--- a/ppapi/c/dev/pp_print_settings_dev.h |
+++ b/ppapi/c/dev/pp_print_settings_dev.h |
@@ -47,6 +47,14 @@ typedef enum { |
PP_PRINTSCALINGOPTION_SOURCE_SIZE = 2 |
} PP_PrintScalingOption_Dev; |
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintScalingOption_Dev, 4); |
+ |
+typedef enum { |
+ PP_PRINTDUPLEXMODE_NONE = 0, |
+ PP_PRINTDUPLEXMODE_SIMPLEX = 1, |
+ PP_PRINTDUPLEXMODE_LONG_EDGE = 2, |
+ PP_PRINTDUPLEXMODE_SHORT_EDGE = 3 |
+} PP_PrintDuplexMode_Dev; |
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintDuplexMode_Dev, 4); |
/** |
* @} |
*/ |
@@ -68,6 +76,21 @@ struct PP_PrintSettings_Dev { |
PP_PrintOutputFormat_Dev format; |
}; |
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintSettings_Dev, 60); |
+ |
+struct PP_PrintRange_Dev { |
+ int32_t from; |
+ int32_t to; |
+}; |
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintRange_Dev, 8); |
+ |
+struct PP_PrintPresetOptions_Dev { |
+ PP_Bool is_scaling_disabled; |
+ int32_t copies; |
+ PP_PrintDuplexMode_Dev duplex; |
+ struct PP_PrintRange_Dev page_range; |
+ int32_t page_range_count; |
+}; |
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPresetOptions_Dev, 24); |
/** |
* @} |
*/ |