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

Side by Side Diff: webkit/glue/webframe.h

Issue 160004: Restore WebFrame::GetPrintPageShrink() method originally added in rev 14639 Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 5 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') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBFRAME_H_ 5 #ifndef WEBKIT_GLUE_WEBFRAME_H_
6 #define WEBKIT_GLUE_WEBFRAME_H_ 6 #define WEBKIT_GLUE_WEBFRAME_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 virtual void ClosePage() = 0; 397 virtual void ClosePage() = 0;
398 398
399 // The current scroll offset from the top of frame in pixels. 399 // The current scroll offset from the top of frame in pixels.
400 virtual WebKit::WebSize ScrollOffset() const = 0; 400 virtual WebKit::WebSize ScrollOffset() const = 0;
401 401
402 // Reformats the WebFrame for printing. page_size is the page size in 402 // Reformats the WebFrame for printing. page_size is the page size in
403 // pixels. Returns the number of pages that can be printed at the given page 403 // pixels. Returns the number of pages that can be printed at the given page
404 // size. 404 // size.
405 virtual int PrintBegin(const WebKit::WebSize& page_size) = 0; 405 virtual int PrintBegin(const WebKit::WebSize& page_size) = 0;
406 406
407 // Returns the page shrinking factor calculated by webkit (usually between
408 // 1/1.25 and 1/2). Returns 0 if the page number is invalid or not in printing
409 // mode.
410 virtual float GetPrintPageShrink(int page) = 0;
411
407 // Prints one page, and returns the calculated page shrinking factor (usually 412 // Prints one page, and returns the calculated page shrinking factor (usually
408 // between 1/1.25 and 1/2). Returns 0 if the page number is invalid or not 413 // between 1/1.25 and 1/2). Returns 0 if the page number is invalid or not
409 // in printing mode. 414 // in printing mode.
410 virtual float PrintPage(int page_to_print, WebKit::WebCanvas* canvas) = 0; 415 virtual float PrintPage(int page_to_print, WebKit::WebCanvas* canvas) = 0;
411 416
412 // Reformats the WebFrame for screen display. 417 // Reformats the WebFrame for screen display.
413 virtual void PrintEnd() = 0; 418 virtual void PrintEnd() = 0;
414 419
415 // Only for test_shell 420 // Only for test_shell
416 virtual int PendingFrameUnloadEventCount() const = 0; 421 virtual int PendingFrameUnloadEventCount() const = 0;
417 422
418 protected: 423 protected:
419 virtual ~WebFrame() {} 424 virtual ~WebFrame() {}
420 425
421 private: 426 private:
422 DISALLOW_COPY_AND_ASSIGN(WebFrame); 427 DISALLOW_COPY_AND_ASSIGN(WebFrame);
423 }; 428 };
424 429
425 #endif // WEBKIT_GLUE_WEBFRAME_H_ 430 #endif // WEBKIT_GLUE_WEBFRAME_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/webframe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698