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

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: Rebase Created 6 years, 1 month 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') | pdf/instance.h » ('j') | 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 10 matching lines...) Expand all
21 #include "third_party/WebKit/public/platform/WebRect.h" 21 #include "third_party/WebKit/public/platform/WebRect.h"
22 #include "third_party/WebKit/public/platform/WebSize.h" 22 #include "third_party/WebKit/public/platform/WebSize.h"
23 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 23 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
24 #include "third_party/WebKit/public/web/WebBindings.h" 24 #include "third_party/WebKit/public/web/WebBindings.h"
25 #include "third_party/WebKit/public/web/WebDocument.h" 25 #include "third_party/WebKit/public/web/WebDocument.h"
26 #include "third_party/WebKit/public/web/WebElement.h" 26 #include "third_party/WebKit/public/web/WebElement.h"
27 #include "third_party/WebKit/public/web/WebFrame.h" 27 #include "third_party/WebKit/public/web/WebFrame.h"
28 #include "third_party/WebKit/public/web/WebPluginContainer.h" 28 #include "third_party/WebKit/public/web/WebPluginContainer.h"
29 #include "third_party/WebKit/public/web/WebPluginParams.h" 29 #include "third_party/WebKit/public/web/WebPluginParams.h"
30 #include "third_party/WebKit/public/web/WebPrintParams.h" 30 #include "third_party/WebKit/public/web/WebPrintParams.h"
31 #include "third_party/WebKit/public/web/WebPrintPresetOptions.h"
31 #include "third_party/WebKit/public/web/WebPrintScalingOption.h" 32 #include "third_party/WebKit/public/web/WebPrintScalingOption.h"
32 #include "url/gurl.h" 33 #include "url/gurl.h"
33 34
34 using ppapi::V8ObjectVar; 35 using ppapi::V8ObjectVar;
35 using blink::WebCanvas; 36 using blink::WebCanvas;
36 using blink::WebPlugin; 37 using blink::WebPlugin;
37 using blink::WebPluginContainer; 38 using blink::WebPluginContainer;
38 using blink::WebPluginParams; 39 using blink::WebPluginParams;
39 using blink::WebPoint; 40 using blink::WebPoint;
40 using blink::WebPrintParams; 41 using blink::WebPrintParams;
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 int PepperWebPluginImpl::printBegin(const WebPrintParams& print_params) { 264 int PepperWebPluginImpl::printBegin(const WebPrintParams& print_params) {
264 return instance_->PrintBegin(print_params); 265 return instance_->PrintBegin(print_params);
265 } 266 }
266 267
267 bool PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas) { 268 bool PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas) {
268 return instance_->PrintPage(page_number, canvas); 269 return instance_->PrintPage(page_number, canvas);
269 } 270 }
270 271
271 void PepperWebPluginImpl::printEnd() { return instance_->PrintEnd(); } 272 void PepperWebPluginImpl::printEnd() { return instance_->PrintEnd(); }
272 273
274 bool PepperWebPluginImpl::getPrintPresetOptionsFromDocument(
275 blink::WebPrintPresetOptions* preset_options) {
276 return instance_->GetPrintPresetOptionsFromDocument(preset_options);
277 }
278
273 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } 279 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); }
274 280
275 void PepperWebPluginImpl::rotateView(RotationType type) { 281 void PepperWebPluginImpl::rotateView(RotationType type) {
276 instance_->RotateView(type); 282 instance_->RotateView(type);
277 } 283 }
278 284
279 bool PepperWebPluginImpl::isPlaceholder() { return false; } 285 bool PepperWebPluginImpl::isPlaceholder() { return false; }
280 286
281 } // namespace content 287 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_webplugin_impl.h ('k') | pdf/instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698