diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 05:03:45 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 05:03:45 +0000 |
commit | 0e6444691424c2d052a94e092c9c5f9b8ef71523 (patch) | |
tree | 6cb1232ded66a838c93872d993ef1434493af6b8 /ppapi/c/dev | |
parent | 180ec26634a3970219fd5a6599c2b87851f231c7 (diff) | |
download | chromium_src-0e6444691424c2d052a94e092c9c5f9b8ef71523.zip chromium_src-0e6444691424c2d052a94e092c9c5f9b8ef71523.tar.gz chromium_src-0e6444691424c2d052a94e092c9c5f9b8ef71523.tar.bz2 |
Remove support for bitmap printing in pepper
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10096001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132954 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/dev')
-rw-r--r-- | ppapi/c/dev/ppp_printing_dev.h | 17 |
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 |