summaryrefslogtreecommitdiffstats
path: root/ppapi/c/dev/ppp_printing_dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/c/dev/ppp_printing_dev.h')
-rw-r--r--ppapi/c/dev/ppp_printing_dev.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/ppapi/c/dev/ppp_printing_dev.h b/ppapi/c/dev/ppp_printing_dev.h
index 2af075e..b600358 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 Tue Apr 17 20:28:30 2012. */
#ifndef PPAPI_C_DEV_PPP_PRINTING_DEV_H_
#define PPAPI_C_DEV_PPP_PRINTING_DEV_H_
@@ -59,6 +59,7 @@ struct PP_PrintSettings_Dev {
int32_t dpi;
PP_PrintOrientation_Dev orientation;
PP_Bool grayscale;
+ /** Note that Chrome currently only supports PDF printing. */
PP_PrintOutputFormat_Dev format;
};
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintSettings_Dev, 32);
@@ -83,13 +84,13 @@ PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8);
struct PPP_Printing_Dev_0_5 {
/**
* Returns a bit field representing the supported print output formats. For
- * example, if only Raster and PostScript are supported,
+ * example, if only PDF and PostScript are supported,
* QuerySupportedFormats returns a value equivalent to:
- * (PP_PRINTOUTPUTFORMAT_RASTER | PP_PRINTOUTPUTFORMAT_POSTSCRIPT)
+ * (PP_PRINTOUTPUTFORMAT_PDF | PP_PRINTOUTPUTFORMAT_POSTSCRIPT)
*/
uint32_t (*QuerySupportedFormats)(PP_Instance instance);
/**
- * Begins a print session with the given print settings. Calls to PrintPage
+ * Begins a print session with the given print settings. Calls to PrintPages
* 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
* a failure).
@@ -98,16 +99,14 @@ struct PPP_Printing_Dev_0_5 {
const struct PP_PrintSettings_Dev* print_settings);
/**
* Prints the specified pages using the format specified in Begin.
- * Returns a resource that represents the printed output.
- * This is a PPB_ImageData resource if the output format is
- * PP_PrintOutputFormat_Raster and a PPB_Buffer otherwise. Returns 0 on
- * failure.
+ * Returns a PPB_Buffer resource that represents the printed output. Returns
+ * 0 on failure.
*/
PP_Resource (*PrintPages)(
PP_Instance instance,
const struct PP_PrintPageNumberRange_Dev* page_ranges,
uint32_t page_range_count);
- /** Ends the print session. Further calls to PrintPage will fail. */
+ /** Ends the print session. Further calls to PrintPages will fail. */
void (*End)(PP_Instance instance);
/**
* Returns true if the current content should be printed into the full page