OLD | NEW |
---|---|
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 class WebURL; | 78 class WebURL; |
79 class WebURLLoader; | 79 class WebURLLoader; |
80 class WebURLRequest; | 80 class WebURLRequest; |
81 class WebView; | 81 class WebView; |
82 struct WebConsoleMessage; | 82 struct WebConsoleMessage; |
83 struct WebFindOptions; | 83 struct WebFindOptions; |
84 struct WebFloatPoint; | 84 struct WebFloatPoint; |
85 struct WebFloatRect; | 85 struct WebFloatRect; |
86 struct WebPoint; | 86 struct WebPoint; |
87 struct WebPrintParams; | 87 struct WebPrintParams; |
88 struct WebPrintPresetOptions; | |
88 struct WebRect; | 89 struct WebRect; |
89 struct WebScriptSource; | 90 struct WebScriptSource; |
90 struct WebSize; | 91 struct WebSize; |
91 struct WebURLLoaderOptions; | 92 struct WebURLLoaderOptions; |
92 | 93 |
93 template <typename T> class WebVector; | 94 template <typename T> class WebVector; |
94 | 95 |
95 // Frames may be rendered in process ('local') or out of process ('remote'). | 96 // Frames may be rendered in process ('local') or out of process ('remote'). |
96 // A remote frame is always cross-site; a local frame may be either same-site or | 97 // A remote frame is always cross-site; a local frame may be either same-site or |
97 // cross-site. | 98 // cross-site. |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
487 virtual float printPage(int pageToPrint, WebCanvas*) = 0; | 488 virtual float printPage(int pageToPrint, WebCanvas*) = 0; |
488 | 489 |
489 // Reformats the WebFrame for screen display. | 490 // Reformats the WebFrame for screen display. |
490 virtual void printEnd() = 0; | 491 virtual void printEnd() = 0; |
491 | 492 |
492 // If the frame contains a full-frame plugin or the given node refers to a | 493 // If the frame contains a full-frame plugin or the given node refers to a |
493 // plugin whose content indicates that printed output should not be scaled, | 494 // plugin whose content indicates that printed output should not be scaled, |
494 // return true, otherwise return false. | 495 // return true, otherwise return false. |
495 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0 ; | 496 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0 ; |
496 | 497 |
497 // Returns the number of copies to be printed. | 498 // Returns true on success and sets the out parameter to the print preset op tions for the document. |
498 virtual int getPrintCopiesForPlugin(const WebNode& = WebNode()) = 0; | 499 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOp tions*) = 0; |
dcheng
2014/10/09 20:45:03
Actually it looks like this isn't even used yet. P
Nikhil
2014/10/20 10:04:23
Done! Yes, this method isn't yet used. It will be
| |
499 | 500 |
500 // CSS3 Paged Media ---------------------------------------------------- | 501 // CSS3 Paged Media ---------------------------------------------------- |
501 | 502 |
502 // Returns true if page box (margin boxes and page borders) is visible. | 503 // Returns true if page box (margin boxes and page borders) is visible. |
503 virtual bool isPageBoxVisible(int pageIndex) = 0; | 504 virtual bool isPageBoxVisible(int pageIndex) = 0; |
504 | 505 |
505 // Returns true if the page style has custom size information. | 506 // Returns true if the page style has custom size information. |
506 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; | 507 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; |
507 | 508 |
508 // Returns the preferred page size and margins in pixels, assuming 96 | 509 // Returns the preferred page size and margins in pixels, assuming 96 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
687 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 688 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
688 }; | 689 }; |
689 | 690 |
690 #if BLINK_IMPLEMENTATION | 691 #if BLINK_IMPLEMENTATION |
691 Frame* toCoreFrame(const WebFrame*); | 692 Frame* toCoreFrame(const WebFrame*); |
692 #endif | 693 #endif |
693 | 694 |
694 } // namespace blink | 695 } // namespace blink |
695 | 696 |
696 #endif | 697 #endif |
OLD | NEW |