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

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

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 // 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 void PepperWebPluginImpl::stopFind() { instance_->StopFind(); } 252 void PepperWebPluginImpl::stopFind() { instance_->StopFind(); }
253 253
254 bool PepperWebPluginImpl::supportsPaginatedPrint() { 254 bool PepperWebPluginImpl::supportsPaginatedPrint() {
255 return instance_->SupportsPrintInterface(); 255 return instance_->SupportsPrintInterface();
256 } 256 }
257 257
258 bool PepperWebPluginImpl::isPrintScalingDisabled() { 258 bool PepperWebPluginImpl::isPrintScalingDisabled() {
259 return instance_->IsPrintScalingDisabled(); 259 return instance_->IsPrintScalingDisabled();
260 } 260 }
261 261
262 int PepperWebPluginImpl::getNumCopies() {
263 return instance_->GetNumCopies();
264 }
265
262 int PepperWebPluginImpl::printBegin(const WebPrintParams& print_params) { 266 int PepperWebPluginImpl::printBegin(const WebPrintParams& print_params) {
263 return instance_->PrintBegin(print_params); 267 return instance_->PrintBegin(print_params);
264 } 268 }
265 269
266 bool PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas) { 270 bool PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas) {
267 return instance_->PrintPage(page_number, canvas); 271 return instance_->PrintPage(page_number, canvas);
268 } 272 }
269 273
270 void PepperWebPluginImpl::printEnd() { return instance_->PrintEnd(); } 274 void PepperWebPluginImpl::printEnd() { return instance_->PrintEnd(); }
271 275
272 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } 276 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); }
273 277
274 void PepperWebPluginImpl::rotateView(RotationType type) { 278 void PepperWebPluginImpl::rotateView(RotationType type) {
275 instance_->RotateView(type); 279 instance_->RotateView(type);
276 } 280 }
277 281
278 bool PepperWebPluginImpl::isPlaceholder() { return false; } 282 bool PepperWebPluginImpl::isPlaceholder() { return false; }
279 283
280 } // namespace content 284 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698