| Index: ppapi/cpp/dev/printing_dev.cc
|
| diff --git a/ppapi/cpp/dev/printing_dev.cc b/ppapi/cpp/dev/printing_dev.cc
|
| index 60154cd0d37f85f58d5e3115322cd56b67c6760d..4d53c2afee9582da900d9831ffafa5f7f6d67386 100644
|
| --- a/ppapi/cpp/dev/printing_dev.cc
|
| +++ b/ppapi/cpp/dev/printing_dev.cc
|
| @@ -65,13 +65,17 @@ PP_Bool IsScalingDisabled(PP_Instance instance) {
|
| return PP_FromBool(return_value);
|
| }
|
|
|
| +int32_t GetCopiesToPrint(PP_Instance instance) {
|
| + void* object =
|
| + pp::Instance::GetPerInstanceObject(instance, kPPPPrintingInterface);
|
| + if (!object)
|
| + return 1;
|
| + return static_cast<Printing_Dev*>(object)->GetCopiesToPrint();
|
| +}
|
| +
|
| const PPP_Printing_Dev ppp_printing = {
|
| - &QuerySupportedFormats,
|
| - &Begin,
|
| - &PrintPages,
|
| - &End,
|
| - &IsScalingDisabled
|
| -};
|
| + &QuerySupportedFormats, &Begin, &PrintPages,
|
| + &End, &IsScalingDisabled, &GetCopiesToPrint};
|
|
|
| } // namespace
|
|
|
|
|