From e916edeebbac7a403adf06fe543dacb52962c230 Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Tue, 30 Jun 2009 22:17:38 +0000 Subject: 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 --- webkit/api/public/WebFrame.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'webkit/api/public/WebFrame.h') 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 -- cgit v1.1