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

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

Issue 591053002: Support print preset options for pdf document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 1 month 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 | « Source/web/WebRemoteFrameImpl.cpp ('k') | public/web/WebLocalFrame.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 /* 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 virtual float printPage(int pageToPrint, WebCanvas*) = 0; 489 virtual float printPage(int pageToPrint, WebCanvas*) = 0;
490 490
491 // Reformats the WebFrame for screen display. 491 // Reformats the WebFrame for screen display.
492 virtual void printEnd() = 0; 492 virtual void printEnd() = 0;
493 493
494 // If the frame contains a full-frame plugin or the given node refers to a 494 // If the frame contains a full-frame plugin or the given node refers to a
495 // plugin whose content indicates that printed output should not be scaled, 495 // plugin whose content indicates that printed output should not be scaled,
496 // return true, otherwise return false. 496 // return true, otherwise return false.
497 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0 ; 497 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0 ;
498 498
499 // Returns the number of copies to be printed.
500 virtual int getPrintCopiesForPlugin(const WebNode& = WebNode()) = 0;
501
502 // CSS3 Paged Media ---------------------------------------------------- 499 // CSS3 Paged Media ----------------------------------------------------
503 500
504 // Returns true if page box (margin boxes and page borders) is visible. 501 // Returns true if page box (margin boxes and page borders) is visible.
505 virtual bool isPageBoxVisible(int pageIndex) = 0; 502 virtual bool isPageBoxVisible(int pageIndex) = 0;
506 503
507 // Returns true if the page style has custom size information. 504 // Returns true if the page style has custom size information.
508 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; 505 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0;
509 506
510 // Returns the preferred page size and margins in pixels, assuming 96 507 // Returns the preferred page size and margins in pixels, assuming 96
511 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, 508 // pixels per inch. pageSize, marginTop, marginRight, marginBottom,
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; 692 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker;
696 }; 693 };
697 694
698 #if BLINK_IMPLEMENTATION 695 #if BLINK_IMPLEMENTATION
699 Frame* toCoreFrame(const WebFrame*); 696 Frame* toCoreFrame(const WebFrame*);
700 #endif 697 #endif
701 698
702 } // namespace blink 699 } // namespace blink
703 700
704 #endif 701 #endif
OLDNEW
« no previous file with comments | « Source/web/WebRemoteFrameImpl.cpp ('k') | public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698