| Index: ppapi/thunk/ppb_printing_dev_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_printing_dev_thunk.cc b/ppapi/thunk/ppb_printing_dev_thunk.cc
|
| index 96f52f5832cd9c7608725593a1bbc36ccbac74d0..7462855afb84bcdc2cb1ef3b1df50c9a6c71fdf1 100644
|
| --- a/ppapi/thunk/ppb_printing_dev_thunk.cc
|
| +++ b/ppapi/thunk/ppb_printing_dev_thunk.cc
|
| @@ -37,11 +37,27 @@ int32_t GetDefaultPrintSettings(PP_Resource resource,
|
| enter.callback()));
|
| }
|
|
|
| +void SetPrintPresetOptionsFromDocument(
|
| + PP_Resource resource,
|
| + const PP_PrintPresetOptions_Dev* print_options) {
|
| + VLOG(4) << "PPB_Printing_Dev::SetPrintPresetOptionsFromDocument()";
|
| + EnterResource<PPB_Printing_API> enter(resource, true);
|
| + if (enter.failed())
|
| + return;
|
| + enter.object()->SetPrintPresetOptionsFromDocument(print_options);
|
| +}
|
| +
|
| const PPB_Printing_Dev_0_7 g_ppb_printing_dev_thunk_0_7 = {
|
| &Create,
|
| &GetDefaultPrintSettings
|
| };
|
|
|
| +const PPB_Printing_Dev_0_8 g_ppb_printing_dev_thunk_0_8 = {
|
| + &Create,
|
| + &GetDefaultPrintSettings,
|
| + &SetPrintPresetOptionsFromDocument
|
| +};
|
| +
|
| } // namespace
|
|
|
| PPAPI_THUNK_EXPORT const PPB_Printing_Dev_0_7*
|
| @@ -49,5 +65,10 @@ PPAPI_THUNK_EXPORT const PPB_Printing_Dev_0_7*
|
| return &g_ppb_printing_dev_thunk_0_7;
|
| }
|
|
|
| +PPAPI_THUNK_EXPORT const PPB_Printing_Dev_0_8*
|
| + GetPPB_Printing_Dev_0_8_Thunk() {
|
| + return &g_ppb_printing_dev_thunk_0_8;
|
| +}
|
| +
|
| } // namespace thunk
|
| } // namespace ppapi
|
|
|