diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 22:17:38 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-30 22:17:38 +0000 |
commit | e916edeebbac7a403adf06fe543dacb52962c230 (patch) | |
tree | 073e8fac5b86967ba41dda972cdc678bc73f8313 /webkit/api/public/WebFrame.h | |
parent | 96613eb98e8c56e3046d391e40d4fdadf696614e (diff) | |
download | chromium_src-e916edeebbac7a403adf06fe543dacb52962c230.zip chromium_src-e916edeebbac7a403adf06fe543dacb52962c230.tar.gz chromium_src-e916edeebbac7a403adf06fe543dacb52962c230.tar.bz2 |
Modify printing methods on WebFrame to be more inline with the version
specified in webkit/api/public/WebFrame.h.
Removes an unused method on WebFrame related to printing.
BUG=10034
TEST=none
R=brettw
Review URL: http://codereview.chromium.org/150027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/api/public/WebFrame.h')
-rw-r--r-- | webkit/api/public/WebFrame.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/webkit/api/public/WebFrame.h b/webkit/api/public/WebFrame.h index bf740da..be58d6c 100644 --- a/webkit/api/public/WebFrame.h +++ b/webkit/api/public/WebFrame.h @@ -229,6 +229,22 @@ namespace WebKit { virtual WebString selectionAsHTML() = 0; + // Printing ------------------------------------------------------------ + + // Reformats the WebFrame for printing. pageSize is the page size in + // pixels. Returns the number of pages that can be printed at the + // given page size. + virtual int printBegin(const WebSize& pageSize); + + // Prints one page, and returns the calculated page shrinking factor + // (usually between 1/1.25 and 1/2). Returns 0 if the page number is + // invalid or not in printing mode. + virtual float printPage(int pageToPrint, const WebCanvas&); + + // Reformats the WebFrame for screen display. + virtual void printEnd(); + + // Find-in-page -------------------------------------------------------- // FIXME |