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

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

Issue 379793002: [Blink] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ;
502 502
503 // Returns the number of copies to be printed.
504 virtual int getNumCopiesForPlugin(const WebNode& = WebNode()) = 0;
Inactive 2014/07/15 15:55:00 ditto about abbreviations.
Vitaly Buka (NO REVIEWS) 2014/07/15 21:49:29 maybe also to include "print"? getPrintCopiesForPl
Nikhil 2014/07/16 13:58:49 Done.
Nikhil 2014/07/16 13:58:49 Done.
505
503 // CSS3 Paged Media ---------------------------------------------------- 506 // CSS3 Paged Media ----------------------------------------------------
504 507
505 // Returns true if page box (margin boxes and page borders) is visible. 508 // Returns true if page box (margin boxes and page borders) is visible.
506 virtual bool isPageBoxVisible(int pageIndex) = 0; 509 virtual bool isPageBoxVisible(int pageIndex) = 0;
507 510
508 // Returns true if the page style has custom size information. 511 // Returns true if the page style has custom size information.
509 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; 512 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0;
510 513
511 // Returns the preferred page size and margins in pixels, assuming 96 514 // Returns the preferred page size and margins in pixels, assuming 96
512 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 515 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 697 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
695 }; 698 };
696 699
697 #if BLINK_IMPLEMENTATION 700 #if BLINK_IMPLEMENTATION
698 WebCore::Frame* toWebCoreFrame(const WebFrame*); 701 WebCore::Frame* toWebCoreFrame(const WebFrame*);
699 #endif 702 #endif
700 703
701 } // namespace blink 704 } // namespace blink
702 705
703 #endif 706 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698