OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // Returns true if the printed content should not be scaled to | 124 // Returns true if the printed content should not be scaled to |
125 // the printer's printable area. | 125 // the printer's printable area. |
126 virtual bool isPrintScalingDisabled() { return false; } | 126 virtual bool isPrintScalingDisabled() { return false; } |
127 // Returns true on success and sets the out parameter to the print preset op
tions for the document. | 127 // Returns true on success and sets the out parameter to the print preset op
tions for the document. |
128 virtual bool getPrintPresetOptionsFromDocument(WebPrintPresetOptions*) { ret
urn false; } | 128 virtual bool getPrintPresetOptionsFromDocument(WebPrintPresetOptions*) { ret
urn false; } |
129 | 129 |
130 // Sets up printing with the specified printParams. Returns the number of | 130 // Sets up printing with the specified printParams. Returns the number of |
131 // pages to be printed at these settings. | 131 // pages to be printed at these settings. |
132 virtual int printBegin(const WebPrintParams& printParams) { return 0; } | 132 virtual int printBegin(const WebPrintParams& printParams) { return 0; } |
133 | 133 |
134 // TODO: Remove third parameter when both blink and chromium changes land fo
r bug496765 | |
135 virtual void printPage(int pageNumber, WebCanvas* canvas, bool unused) { } | |
136 virtual void printPage(int pageNumber, WebCanvas* canvas) { } | 134 virtual void printPage(int pageNumber, WebCanvas* canvas) { } |
137 | 135 |
138 // Ends the print operation. | 136 // Ends the print operation. |
139 virtual void printEnd() { } | 137 virtual void printEnd() { } |
140 | 138 |
141 virtual bool hasSelection() const { return false; } | 139 virtual bool hasSelection() const { return false; } |
142 virtual WebString selectionAsText() const { return WebString(); } | 140 virtual WebString selectionAsText() const { return WebString(); } |
143 virtual WebString selectionAsMarkup() const { return WebString(); } | 141 virtual WebString selectionAsMarkup() const { return WebString(); } |
144 | 142 |
145 virtual bool executeEditCommand(const WebString& name) { return false; } | 143 virtual bool executeEditCommand(const WebString& name) { return false; } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 virtual bool isPlaceholder() { return true; } | 183 virtual bool isPlaceholder() { return true; } |
186 virtual bool shouldPersist() const { return false; } | 184 virtual bool shouldPersist() const { return false; } |
187 | 185 |
188 protected: | 186 protected: |
189 ~WebPlugin() { } | 187 ~WebPlugin() { } |
190 }; | 188 }; |
191 | 189 |
192 } // namespace blink | 190 } // namespace blink |
193 | 191 |
194 #endif | 192 #endif |
OLD | NEW |