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

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

Issue 10083059: [Print Preview] Modified PP_PrintSettings_Dev interface to support auto fit to page functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 8 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/ppp_printing_dev.h
diff --git a/ppapi/c/dev/ppp_printing_dev.h b/ppapi/c/dev/ppp_printing_dev.h
index 2af075e31cd44ad7b9054b6f6baa30be6de7ede7..160e44a1c7c331e72b494cd2658ba7f6148f74be 100644
--- a/ppapi/c/dev/ppp_printing_dev.h
+++ b/ppapi/c/dev/ppp_printing_dev.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From dev/ppp_printing_dev.idl modified Wed Feb 22 12:44:39 2012. */
+/* From dev/ppp_printing_dev.idl modified Wed Apr 18 13:35:22 2012. */
#ifndef PPAPI_C_DEV_PPP_PRINTING_DEV_H_
#define PPAPI_C_DEV_PPP_PRINTING_DEV_H_
@@ -56,12 +56,15 @@ 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) */
struct PP_Rect printable_area;
+ struct PP_Rect content_area;
+ struct PP_Size paper_size;
int32_t dpi;
PP_PrintOrientation_Dev orientation;
PP_Bool grayscale;
+ PP_Bool fit_to_paper_size;
PP_PrintOutputFormat_Dev format;
};
-PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintSettings_Dev, 32);
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintSettings_Dev, 60);
/**
* Specifies a contiguous range of page numbers to be printed.

Powered by Google App Engine
This is Rietveld 408576698