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

Unified Diff: ppapi/c/dev/ppp_printing_dev.h

Issue 5340003: Make a new test to enforce the sizes of all structs and enums in the C API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « ppapi/c/dev/ppb_url_util_dev.h ('k') | ppapi/c/pp_bool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/dev/ppp_printing_dev.h
===================================================================
--- ppapi/c/dev/ppp_printing_dev.h (revision 68374)
+++ ppapi/c/dev/ppp_printing_dev.h (working copy)
@@ -17,12 +17,14 @@
PP_PRINTORIENTATION_ROTATED_180 = 2,
PP_PRINTORIENTATION_ROTATED_90_CCW = 3
} PP_PrintOrientation_Dev;
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintOrientation_Dev, 4);
typedef enum {
PP_PRINTOUTPUTFORMAT_RASTER = 0,
PP_PRINTOUTPUTFORMAT_PDF = 1,
PP_PRINTOUTPUTFORMAT_POSTSCRIPT = 2
} PP_PrintOutputFormat_Dev;
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintOutputFormat_Dev, 4);
struct PP_PrintSettings_Dev {
// This is the size of the printable area in points (1/72 of an inch)
@@ -32,6 +34,7 @@
PP_Bool grayscale;
PP_PrintOutputFormat_Dev format;
};
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintSettings_Dev, 32);
// Specifies a contiguous range of page numbers to be printed.
// The page numbers use a zero-based index.
@@ -39,6 +42,7 @@
uint32_t first_page_number;
uint32_t last_page_number;
};
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8);
// Interface for the plugin to implement printing.
#define PPP_PRINTING_DEV_INTERFACE "PPP_Printing(Dev);0.2"
« no previous file with comments | « ppapi/c/dev/ppb_url_util_dev.h ('k') | ppapi/c/pp_bool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698