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

Unified Diff: ppapi/api/dev/pp_print_settings_dev.idl

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

Powered by Google App Engine
This is Rietveld 408576698