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

Side by Side Diff: content/renderer/pepper/pepper_webplugin_impl.cc

Issue 1149983008: Change return type of PrintPage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/renderer/pepper/pepper_webplugin_impl.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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/pepper/pepper_webplugin_impl.h" 5 #include "content/renderer/pepper/pepper_webplugin_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/debug/crash_logging.h" 9 #include "base/debug/crash_logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 } 263 }
264 264
265 bool PepperWebPluginImpl::isPrintScalingDisabled() { 265 bool PepperWebPluginImpl::isPrintScalingDisabled() {
266 return instance_->IsPrintScalingDisabled(); 266 return instance_->IsPrintScalingDisabled();
267 } 267 }
268 268
269 int PepperWebPluginImpl::printBegin(const WebPrintParams& print_params) { 269 int PepperWebPluginImpl::printBegin(const WebPrintParams& print_params) {
270 return instance_->PrintBegin(print_params); 270 return instance_->PrintBegin(print_params);
271 } 271 }
272 272
273 void PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas,
274 bool unused) {
275 return instance_->PrintPage(page_number, canvas);
276 }
277
273 bool PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas) { 278 bool PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas) {
274 return instance_->PrintPage(page_number, canvas); 279 instance_->PrintPage(page_number, canvas);
280 return true;
275 } 281 }
276 282
277 void PepperWebPluginImpl::printEnd() { return instance_->PrintEnd(); } 283 void PepperWebPluginImpl::printEnd() { return instance_->PrintEnd(); }
278 284
279 bool PepperWebPluginImpl::getPrintPresetOptionsFromDocument( 285 bool PepperWebPluginImpl::getPrintPresetOptionsFromDocument(
280 blink::WebPrintPresetOptions* preset_options) { 286 blink::WebPrintPresetOptions* preset_options) {
281 return instance_->GetPrintPresetOptionsFromDocument(preset_options); 287 return instance_->GetPrintPresetOptionsFromDocument(preset_options);
282 } 288 }
283 289
284 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } 290 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); }
285 291
286 void PepperWebPluginImpl::rotateView(RotationType type) { 292 void PepperWebPluginImpl::rotateView(RotationType type) {
287 instance_->RotateView(type); 293 instance_->RotateView(type);
288 } 294 }
289 295
290 bool PepperWebPluginImpl::isPlaceholder() { return false; } 296 bool PepperWebPluginImpl::isPlaceholder() { return false; }
291 297
292 } // namespace content 298 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_webplugin_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698