| Index: webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| index 34717e1fbec9077b00b2d6160fce5eaed56f3b18..a2efc8c0052e00f3385af768312cbeacf4755b23 100644
|
| --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| @@ -1020,6 +1020,13 @@ bool PluginInstance::SupportsPrintInterface() {
|
| return GetPreferredPrintOutputFormat(&format);
|
| }
|
|
|
| +bool PluginInstance::IsPrintScalingDisabled() {
|
| + DCHECK(plugin_print_interface_);
|
| + if (!plugin_print_interface_)
|
| + return false;
|
| + return plugin_print_interface_->IsScalingDisabled(pp_instance()) == PP_TRUE;
|
| +}
|
| +
|
| int PluginInstance::PrintBegin(const gfx::Rect& printable_area,
|
| int printer_dpi) {
|
| // Keep a reference on the stack. See NOTE above.
|
| @@ -1078,6 +1085,9 @@ bool PluginInstance::PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges,
|
| WebKit::WebCanvas* canvas) {
|
| // Keep a reference on the stack. See NOTE above.
|
| scoped_refptr<PluginInstance> ref(this);
|
| + DCHECK(plugin_print_interface_);
|
| + if (!plugin_print_interface_)
|
| + return false;
|
| PP_Resource print_output = plugin_print_interface_->PrintPages(
|
| pp_instance(), page_ranges, num_ranges);
|
| if (!print_output)
|
|
|