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

Unified Diff: src/chrome/renderer/print_web_view_helper.h

Issue 196021: Implement PrintPageAsJPEG feature for Print Preview (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/
Patch Set: '' Created 11 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 | « src/chrome/renderer/mock_render_thread.h ('k') | src/chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/chrome/renderer/print_web_view_helper.h
===================================================================
--- src/chrome/renderer/print_web_view_helper.h (revision 25428)
+++ src/chrome/renderer/print_web_view_helper.h (working copy)
@@ -75,6 +75,14 @@
// Notification when printing is done - signal teardown
void DidFinishPrinting(bool success);
+ // Prints the page listed in |params| as a JPEG image. The width and height of
+ // the image will scale propotionally given the |zoom_factor| multiplier. The
+ // encoded JPEG data will be written into the supplied vector |image_data|.
+ void PrintPageAsJPEG(const ViewMsg_PrintPage_Params& params,
+ WebKit::WebFrame* frame,
+ float zoom_factor,
+ std::vector<unsigned char>* image_data);
+
protected:
bool CopyAndPrint(const ViewMsg_PrintPages_Params& params,
WebKit::WebFrame* web_frame);
« no previous file with comments | « src/chrome/renderer/mock_render_thread.h ('k') | src/chrome/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698