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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 400fb1e5e560e806b8f41822a4801de88e8449e3..6ad16eb78ed80f2b8cb92a12f44075f26ba332ab 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1699,6 +1699,13 @@ bool PepperPluginInstanceImpl::IsPrintScalingDisabled() {
return plugin_print_interface_->IsScalingDisabled(pp_instance()) == PP_TRUE;
}
+int PepperPluginInstanceImpl::GetNumCopies() {
+ DCHECK(plugin_print_interface_);
+ if (!plugin_print_interface_)
+ return 1;
+ return plugin_print_interface_->NumCopies(pp_instance());
+}
+
int PepperPluginInstanceImpl::PrintBegin(const WebPrintParams& print_params) {
// Keep a reference on the stack. See NOTE above.
scoped_refptr<PepperPluginInstanceImpl> ref(this);

Powered by Google App Engine
This is Rietveld 408576698