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

Side by Side Diff: webkit/api/public/WebFrame.h

Issue 164482: Restore WebFrame::GetPrintPageShrink() method originally added in rev 14639 (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/glue/webframe_impl.h » ('j') | webkit/glue/webframe_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 virtual WebString selectionAsMarkup() const = 0; 325 virtual WebString selectionAsMarkup() const = 0;
326 326
327 327
328 // Printing ------------------------------------------------------------ 328 // Printing ------------------------------------------------------------
329 329
330 // Reformats the WebFrame for printing. pageSize is the page size in 330 // Reformats the WebFrame for printing. pageSize is the page size in
331 // pixels. Returns the number of pages that can be printed at the 331 // pixels. Returns the number of pages that can be printed at the
332 // given page size. 332 // given page size.
333 virtual int printBegin(const WebSize& pageSize) = 0; 333 virtual int printBegin(const WebSize& pageSize) = 0;
334 334
335 // Returns the page shrinking factor calculated by webkit (usually
336 // between 1/1.25 and 1/2). Returns 0 if the page number is invalid or
337 // not in printing mode.
338 virtual float getPrintPageShrink(int page) = 0;
339
335 // Prints one page, and returns the calculated page shrinking factor 340 // Prints one page, and returns the calculated page shrinking factor
336 // (usually between 1/1.25 and 1/2). Returns 0 if the page number is 341 // (usually between 1/1.25 and 1/2). Returns 0 if the page number is
337 // invalid or not in printing mode. 342 // invalid or not in printing mode.
338 virtual float printPage(int pageToPrint, WebCanvas*) = 0; 343 virtual float printPage(int pageToPrint, WebCanvas*) = 0;
339 344
340 // Reformats the WebFrame for screen display. 345 // Reformats the WebFrame for screen display.
341 virtual void printEnd() = 0; 346 virtual void printEnd() = 0;
342 347
343 348
344 // Find-in-page -------------------------------------------------------- 349 // Find-in-page --------------------------------------------------------
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // from the DOM. 426 // from the DOM.
422 virtual WebString contentAsMarkup() const = 0; 427 virtual WebString contentAsMarkup() const = 0;
423 428
424 protected: 429 protected:
425 ~WebFrame() { } 430 ~WebFrame() { }
426 }; 431 };
427 432
428 } // namespace WebKit 433 } // namespace WebKit
429 434
430 #endif 435 #endif
OLDNEW
« 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