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

Side by Side Diff: Source/web/WebPluginContainerImpl.h

Issue 1165103004: printPage to return void instead of bool (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaseline fixes Created 5 years, 6 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 | « no previous file | Source/web/WebPluginContainerImpl.cpp » ('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 * 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Returns true on success and sets the out parameter to the print preset op tions for the document. 137 // Returns true on success and sets the out parameter to the print preset op tions for the document.
138 bool getPrintPresetOptionsFromDocument(WebPrintPresetOptions*) const; 138 bool getPrintPresetOptionsFromDocument(WebPrintPresetOptions*) const;
139 // 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.
140 int printBegin(const WebPrintParams&) const; 140 int printBegin(const WebPrintParams&) const;
141 // 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.
142 bool printPage(int pageNumber, GraphicsContext*, const IntRect& paintRect); 142 void printPage(int pageNumber, GraphicsContext*, const IntRect& paintRect);
143 // Ends the print operation. 143 // Ends the print operation.
144 void printEnd(); 144 void printEnd();
145 145
146 // Copy the selected text. 146 // Copy the selected text.
147 void copy(); 147 void copy();
148 148
149 // Pass the edit command to the plugin. 149 // Pass the edit command to the plugin.
150 bool executeEditCommand(const WebString& name); 150 bool executeEditCommand(const WebString& name);
151 bool executeEditCommand(const WebString& name, const WebString& value); 151 bool executeEditCommand(const WebString& name, const WebString& value);
152 152
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 }; 214 };
215 215
216 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 216 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
217 // Unlike Widget, we need not worry about object type for container. 217 // Unlike Widget, we need not worry about object type for container.
218 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 218 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
220 220
221 } // namespace blink 221 } // namespace blink
222 222
223 #endif 223 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698