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..084b75b26f201eead510dde48956fb6d08f2b76e 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, |
+ 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 |