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

Unified Diff: ppapi/c/dev/pp_print_settings_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/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);
/**
* @}
*/

Powered by Google App Engine
This is Rietveld 408576698