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

Side by Side Diff: Source/web/WebPluginContainerImpl.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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual void setWebLayer(WebLayer*); 127 virtual void setWebLayer(WebLayer*);
128 128
129 // Printing interface. The plugin can support custom printing 129 // Printing interface. The plugin can support custom printing
130 // (which means it controls the layout, number of pages etc). 130 // (which means it controls the layout, number of pages etc).
131 // Whether the plugin supports its own paginated print. The other print 131 // Whether the plugin supports its own paginated print. The other print
132 // interface methods are called only if this method returns true. 132 // interface methods are called only if this method returns true.
133 bool supportsPaginatedPrint() const; 133 bool supportsPaginatedPrint() const;
134 // If the plugin content should not be scaled to the printable area of 134 // If the plugin content should not be scaled to the printable area of
135 // the page, then this method should return true. 135 // the page, then this method should return true.
136 bool isPrintScalingDisabled() const; 136 bool isPrintScalingDisabled() const;
137 // Return number of copies to be printed.
138 int getNumCopies() const;
Inactive 2014/07/15 15:55:00 Ditto about abbreviations.
Nikhil 2014/07/16 13:58:49 Done.
137 // Sets up printing at the specified WebPrintParams. Returns the number of p ages to be printed at these settings. 139 // Sets up printing at the specified WebPrintParams. Returns the number of p ages to be printed at these settings.
138 int printBegin(const WebPrintParams&) const; 140 int printBegin(const WebPrintParams&) const;
139 // Prints the page specified by pageNumber (0-based index) into the supplied canvas. 141 // Prints the page specified by pageNumber (0-based index) into the supplied canvas.
140 bool printPage(int pageNumber, WebCore::GraphicsContext* gc); 142 bool printPage(int pageNumber, WebCore::GraphicsContext* gc);
141 // Ends the print operation. 143 // Ends the print operation.
142 void printEnd(); 144 void printEnd();
143 145
144 // Copy the selected text. 146 // Copy the selected text.
145 void copy(); 147 void copy();
146 148
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 }; 210 };
209 211
210 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebCore::Widget, widget, widget->isPlu ginContainer(), widget.isPluginContainer()); 212 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebCore::Widget, widget, widget->isPlu ginContainer(), widget.isPluginContainer());
211 // Unlike Widget, we need not worry about object type for container. 213 // Unlike Widget, we need not worry about object type for container.
212 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 214 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
213 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 215 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
214 216
215 } // namespace blink 217 } // namespace blink
216 218
217 #endif 219 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698