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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |