diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-29 22:11:16 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-29 22:11:16 +0000 |
commit | 37f31054c7415aa893179b32efb0eac1029819af (patch) | |
tree | 69d74fe8d0ead8328c866c5f091c502cc5ecf47d /chrome/renderer/webplugin_delegate_pepper.h | |
parent | 10fc3db93f082025c005f097ea45c381bdfb3cd0 (diff) | |
download | chromium_src-37f31054c7415aa893179b32efb0eac1029819af.zip chromium_src-37f31054c7415aa893179b32efb0eac1029819af.tar.gz chromium_src-37f31054c7415aa893179b32efb0eac1029819af.tar.bz2 |
Added support for vector printing for Pepper v1 plugins for Linux.
BUG=None
TEST=Test printing from Chrome PDF plugin on Linux.
Review URL: http://codereview.chromium.org/2807027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.h')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.h b/chrome/renderer/webplugin_delegate_pepper.h index 3524112..e812cd9 100644 --- a/chrome/renderer/webplugin_delegate_pepper.h +++ b/chrome/renderer/webplugin_delegate_pepper.h @@ -301,10 +301,22 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate, int current_printer_dpi_; #if defined(OS_MACOSX) // On the Mac, when we draw the bitmap to the PDFContext, it seems necessary - // to keep the pixels valis until CGContextEndPage is called. We use this + // to keep the pixels valid until CGContextEndPage is called. We use this // variable to hold on to the pixels. SkBitmap last_printed_page_; #endif // defined(OS_MACOSX) +#if defined (OS_LINUX) + // On Linux, we always send all pages from the renderer to the browser. + // So, if the plugin supports printPagesAsPDF we print the entire output + // in one shot in the first call to PrintPage. + // (This is a temporary hack until we change the WebFrame and WebPlugin print + // interfaces). + // Specifies the total number of pages to be printed. It it set in PrintBegin. + int32 num_pages_; + // Specifies whether we have already output all pages. This is used to ignore + // subsequent PrintPage requests. + bool pdf_output_done_; +#endif // defined(OS_LINUX) #if defined(ENABLE_GPU) // The command buffer used to issue commands to the nested GPU plugin. |