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

Unified Diff: webkit/glue/webframe.h

Issue 99058: Expose webkit scaling factor before calling WebFrame::PrintPage() (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 8 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 | « no previous file | webkit/glue/webframe_impl.h » ('j') | webkit/glue/webframe_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe.h
===================================================================
--- webkit/glue/webframe.h (revision 14556)
+++ webkit/glue/webframe.h (working copy)
@@ -377,6 +377,11 @@
virtual bool BeginPrint(const WebKit::WebSize& page_size_px,
int* page_count) = 0;
+ // Returns the page shrinking factor calculated by webkit (usually between
+ // 1/1.25 and 1/2). Returns 0 if the page number is invalid or not in printing
+ // mode.
+ virtual float GetPrintPageShrink(int page) =0;
M-A Ruel 2009/04/27 18:41:13 spacing is "...) = 0;"
+
// Prints one page. |page| is 0-based.
// Returns the page shrinking factor calculated by webkit (usually between
// 1/1.25 and 1/2). Returns 0 if the page number is invalid or not in printing
« no previous file with comments | « no previous file | webkit/glue/webframe_impl.h » ('j') | webkit/glue/webframe_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698