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

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: Review feedback (oop proxy, out-param) Created 6 years, 3 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 {
raymes 2014/09/24 04:54:39 I'd prefer to move this struct into PPP_Pdf (and n
raymes 2014/10/01 17:26:23 This part hasn't been addressed, it would be bette
Nikhil 2014/10/07 09:53:37 Done.
+ PP_Bool is_scaling_disabled;
raymes 2014/09/24 04:54:39 Since we already have a PPP function to get whethe
Nikhil 2014/09/29 11:15:30 Pdf print preset requires four properties to be su
raymes 2014/10/01 17:26:23 Ok I think you're right that it's clearer that eve
Nikhil 2014/10/07 09:53:37 Done.
+ int32_t copies;
+ PP_PrintDuplexMode_Dev duplex;
+ struct PP_PrintRange_Dev page_range;
+ int32_t page_range_count;
raymes 2014/09/24 04:54:39 Are the last 3 members of the struct used at all?
Nikhil 2014/09/29 11:15:30 They are not used right now. But I intend to suppo
raymes 2014/10/01 17:26:23 It's ok to keep them if they will be used, I didn'
Nikhil 2014/10/07 09:53:37 Acknowledged.
+};
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPresetOptions_Dev, 24);
/**
* @}
*/

Powered by Google App Engine
This is Rietveld 408576698