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

Unified Diff: third_party/npapi/bindings/npapi_extensions.h

Issue 2863019: Added support for vector printing for Pepper v1 plugins for Windows. Mac and ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Typo fixed Created 10 years, 6 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 | « chrome/renderer/webplugin_delegate_pepper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/npapi/bindings/npapi_extensions.h
===================================================================
--- third_party/npapi/bindings/npapi_extensions.h (revision 50674)
+++ third_party/npapi/bindings/npapi_extensions.h (working copy)
@@ -982,7 +982,14 @@
NPDeviceContext2D* printSurface);
/* Ends the print operation */
typedef NPError (*NPPPrintEndPtr) (NPP instance);
+/* Prints the specified page as PDF. The plugin allocates the output buffer
+ * pointed to by pdf_output using the browser-supplied NPN_MemAlloc function.
+ * The caller is expected to free the output buffer upon success.*/
+typedef NPError (*NPPrintPageAsPDFPtr)(NPP instance, int32_t page_number,
+ unsigned char** pdf_output,
+ int32_t* output_size);
+
/* TODO(sanjeevr) : Provide a vector interface for printing. We need to decide
* on a vector format that can support embedded fonts. A vector format will
* greatly reduce the size of the required output buffer. */
@@ -992,6 +999,7 @@
NPPGetRasterDimensionsPtr getRasterDimensions;
NPPPrintPageRasterPtr printPageRaster;
NPPPrintEndPtr printEnd;
+ NPPrintPageAsPDFPtr printPageAsPDF;
} NPPPrintExtensions;
/* Returns NULL if the plugin does not support print extensions */
« no previous file with comments | « chrome/renderer/webplugin_delegate_pepper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698