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

Side by Side Diff: third_party/WebKit/public/web/WebFrame.h

Issue 1848443003: Revert of Print with the correct physical dimensions when specified (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@262769
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/page/PrintContext.cpp ('k') | no next file » | no next file with comments »
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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 476
477 // Reformats the WebFrame for printing. WebPrintParams specifies the printab le 477 // Reformats the WebFrame for printing. WebPrintParams specifies the printab le
478 // content size, paper size, printable area size, printer DPI and print 478 // content size, paper size, printable area size, printer DPI and print
479 // scaling option. If constrainToNode node is specified, then only the given node 479 // scaling option. If constrainToNode node is specified, then only the given node
480 // is printed (for now only plugins are supported), instead of the entire fr ame. 480 // is printed (for now only plugins are supported), instead of the entire fr ame.
481 // Returns the number of pages that can be printed at the given 481 // Returns the number of pages that can be printed at the given
482 // page size. 482 // page size.
483 virtual int printBegin(const WebPrintParams&, const WebNode& constrainToNode = WebNode()) = 0; 483 virtual int printBegin(const WebPrintParams&, const WebNode& constrainToNode = WebNode()) = 0;
484 484
485 // Returns the page shrinking factor calculated by webkit (usually 485 // Returns the page shrinking factor calculated by webkit (usually
486 // between 1/1.33 and 1/2). Returns 0 if the page number is invalid or 486 // between 1/1.25 and 1/2). Returns 0 if the page number is invalid or
487 // not in printing mode. 487 // not in printing mode.
488 virtual float getPrintPageShrink(int page) = 0; 488 virtual float getPrintPageShrink(int page) = 0;
489 489
490 // Prints one page, and returns the calculated page shrinking factor 490 // Prints one page, and returns the calculated page shrinking factor
491 // (usually between 1/1.33 and 1/2). Returns 0 if the page number is 491 // (usually between 1/1.25 and 1/2). Returns 0 if the page number is
492 // invalid or not in printing mode. 492 // invalid or not in printing mode.
493 virtual float printPage(int pageToPrint, WebCanvas*) = 0; 493 virtual float printPage(int pageToPrint, WebCanvas*) = 0;
494 494
495 // Reformats the WebFrame for screen display. 495 // Reformats the WebFrame for screen display.
496 virtual void printEnd() = 0; 496 virtual void printEnd() = 0;
497 497
498 // If the frame contains a full-frame plugin or the given node refers to a 498 // If the frame contains a full-frame plugin or the given node refers to a
499 // plugin whose content indicates that printed output should not be scaled, 499 // plugin whose content indicates that printed output should not be scaled,
500 // return true, otherwise return false. 500 // return true, otherwise return false.
501 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0 ; 501 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0 ;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 WebFrame* m_firstChild; 612 WebFrame* m_firstChild;
613 WebFrame* m_lastChild; 613 WebFrame* m_lastChild;
614 614
615 WebFrame* m_opener; 615 WebFrame* m_opener;
616 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 616 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
617 }; 617 };
618 618
619 } // namespace blink 619 } // namespace blink
620 620
621 #endif 621 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/PrintContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698