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

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

Issue 8041052: Add IsScalingDisabled and PP_PRINTOUTPUTFORMAT_EMF to pepper printing interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « no previous file | ppapi/cpp/dev/printing_dev.h » ('j') | ppapi/cpp/dev/printing_dev.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 336c588c3382553ec2569302e6981c7e859d05f8..910555b111daa63393a08ea32a62fb71e86d6abe 100644
--- a/ppapi/c/dev/ppp_printing_dev.h
+++ b/ppapi/c/dev/ppp_printing_dev.h
@@ -23,7 +23,8 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintOrientation_Dev, 4);
typedef enum {
PP_PRINTOUTPUTFORMAT_RASTER = 1u << 0,
PP_PRINTOUTPUTFORMAT_PDF = 1u << 1,
- PP_PRINTOUTPUTFORMAT_POSTSCRIPT = 1u << 2
+ PP_PRINTOUTPUTFORMAT_POSTSCRIPT = 1u << 2,
+ PP_PRINTOUTPUTFORMAT_EMF = 1u << 3
} PP_PrintOutputFormat_Dev;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintOutputFormat_Dev, 4);
@@ -48,8 +49,8 @@ struct PP_PrintPageNumberRange_Dev {
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8);
/* Interface for the plugin to implement printing. */
-#define PPP_PRINTING_DEV_INTERFACE_0_4 "PPP_Printing(Dev);0.4"
-#define PPP_PRINTING_DEV_INTERFACE PPP_PRINTING_DEV_INTERFACE_0_4
+#define PPP_PRINTING_DEV_INTERFACE_0_5 "PPP_Printing(Dev);0.5"
+#define PPP_PRINTING_DEV_INTERFACE PPP_PRINTING_DEV_INTERFACE_0_5
struct PPP_Printing_Dev {
/**
@@ -61,6 +62,12 @@ struct PPP_Printing_Dev {
uint32_t (*QuerySupportedFormats)(PP_Instance instance);
/**
+ * Returns true if the current content should be printed into the full page
+ * and not scaled down to fit within the printer's printable area.
+ */
+ bool (*IsScalingDisabled)(PP_Instance instance);
dmichael (off chromium) 2011/09/27 15:28:38 We avoid using bool in C for various reasons (part
vandebo (ex-Chrome) 2011/09/27 20:02:24 Done.
+
+ /**
* Begins a print session with the given print settings. Calls to PrintPage
* can only be made after a successful call to Begin. Returns the number of
* pages required for the print output at the given page size (0 indicates
« no previous file with comments | « no previous file | ppapi/cpp/dev/printing_dev.h » ('j') | ppapi/cpp/dev/printing_dev.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698