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

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

Issue 379793002: [Blink] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 4 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 | « public/web/WebFrame.h ('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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual void didFailLoadingFrameRequest( 107 virtual void didFailLoadingFrameRequest(
108 const WebURL&, void* notifyData, const WebURLError&) = 0; 108 const WebURL&, void* notifyData, const WebURLError&) = 0;
109 109
110 // Printing interface. 110 // Printing interface.
111 // Whether the plugin supports its own paginated print. The other print 111 // Whether the plugin supports its own paginated print. The other print
112 // interface methods are called only if this method returns true. 112 // interface methods are called only if this method returns true.
113 virtual bool supportsPaginatedPrint() { return false; } 113 virtual bool supportsPaginatedPrint() { return false; }
114 // Returns true if the printed content should not be scaled to 114 // Returns true if the printed content should not be scaled to
115 // the printer's printable area. 115 // the printer's printable area.
116 virtual bool isPrintScalingDisabled() { return false; } 116 virtual bool isPrintScalingDisabled() { return false; }
117 // Returns number of copies to be printed.
118 virtual int getCopiesToPrint() { return 1; }
117 119
118 // Sets up printing with the specified printParams. Returns the number of 120 // Sets up printing with the specified printParams. Returns the number of
119 // pages to be printed at these settings. 121 // pages to be printed at these settings.
120 virtual int printBegin(const WebPrintParams& printParams) { return 0; } 122 virtual int printBegin(const WebPrintParams& printParams) { return 0; }
121 123
122 // Prints the page specified by pageNumber (0-based index) into the supplied canvas. 124 // Prints the page specified by pageNumber (0-based index) into the supplied canvas.
123 virtual bool printPage(int pageNumber, WebCanvas* canvas) { return false; } 125 virtual bool printPage(int pageNumber, WebCanvas* canvas) { return false; }
124 // Ends the print operation. 126 // Ends the print operation.
125 virtual void printEnd() { } 127 virtual void printEnd() { }
126 128
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 virtual bool isPlaceholder() { return true; } 173 virtual bool isPlaceholder() { return true; }
172 virtual bool shouldPersist() const { return false; } 174 virtual bool shouldPersist() const { return false; }
173 175
174 protected: 176 protected:
175 ~WebPlugin() { } 177 ~WebPlugin() { }
176 }; 178 };
177 179
178 } // namespace blink 180 } // namespace blink
179 181
180 #endif 182 #endif
OLDNEW
« no previous file with comments | « public/web/WebFrame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698