| OLD | NEW |
| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 273 void PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas, |
| 274 bool unused) { | 274 bool unused) { |
| 275 return instance_->PrintPage(page_number, canvas); | 275 instance_->PrintPage(page_number, canvas); |
| 276 } | 276 } |
| 277 | 277 |
| 278 bool PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas) { | 278 void PepperWebPluginImpl::printEnd() { instance_->PrintEnd(); } |
| 279 instance_->PrintPage(page_number, canvas); | |
| 280 return true; | |
| 281 } | |
| 282 | |
| 283 void PepperWebPluginImpl::printEnd() { return instance_->PrintEnd(); } | |
| 284 | 279 |
| 285 bool PepperWebPluginImpl::getPrintPresetOptionsFromDocument( | 280 bool PepperWebPluginImpl::getPrintPresetOptionsFromDocument( |
| 286 blink::WebPrintPresetOptions* preset_options) { | 281 blink::WebPrintPresetOptions* preset_options) { |
| 287 return instance_->GetPrintPresetOptionsFromDocument(preset_options); | 282 return instance_->GetPrintPresetOptionsFromDocument(preset_options); |
| 288 } | 283 } |
| 289 | 284 |
| 290 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } | 285 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
| 291 | 286 |
| 292 void PepperWebPluginImpl::rotateView(RotationType type) { | 287 void PepperWebPluginImpl::rotateView(RotationType type) { |
| 293 instance_->RotateView(type); | 288 instance_->RotateView(type); |
| 294 } | 289 } |
| 295 | 290 |
| 296 bool PepperWebPluginImpl::isPlaceholder() { return false; } | 291 bool PepperWebPluginImpl::isPlaceholder() { return false; } |
| 297 | 292 |
| 298 } // namespace content | 293 } // namespace content |
| OLD | NEW |