| Index: ppapi/thunk/ppb_widget_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_widget_thunk.cc b/ppapi/thunk/ppb_widget_thunk.cc
|
| index 94833ebc2868e8e9137e566318b0c3149c44e3dd..f00b48b3d9b71d81da06e866ede8d65ff5e73c0c 100644
|
| --- a/ppapi/thunk/ppb_widget_thunk.cc
|
| +++ b/ppapi/thunk/ppb_widget_thunk.cc
|
| @@ -44,7 +44,13 @@ void SetLocation(PP_Resource widget, const PP_Rect* location) {
|
| enter.object()->SetLocation(location);
|
| }
|
|
|
| -const PPB_Widget_Dev g_ppb_widget_thunk = {
|
| +void SetScale(PP_Resource widget, float scale) {
|
| + EnterResource<PPB_Widget_API> enter(widget, false);
|
| + if (enter.succeeded())
|
| + enter.object()->SetScale(scale);
|
| +}
|
| +
|
| +const PPB_Widget_Dev_0_3 g_ppb_widget_thunk_0_3 = {
|
| &IsWidget,
|
| &Paint,
|
| &HandleEvent,
|
| @@ -52,10 +58,23 @@ const PPB_Widget_Dev g_ppb_widget_thunk = {
|
| &SetLocation,
|
| };
|
|
|
| +const PPB_Widget_Dev_0_4 g_ppb_widget_thunk_0_4 = {
|
| + &IsWidget,
|
| + &Paint,
|
| + &HandleEvent,
|
| + &GetLocation,
|
| + &SetLocation,
|
| + &SetScale
|
| +};
|
| +
|
| } // namespace
|
|
|
| const PPB_Widget_Dev_0_3* GetPPB_Widget_Dev_0_3_Thunk() {
|
| - return &g_ppb_widget_thunk;
|
| + return &g_ppb_widget_thunk_0_3;
|
| +}
|
| +
|
| +const PPB_Widget_Dev_0_4* GetPPB_Widget_Dev_0_4_Thunk() {
|
| + return &g_ppb_widget_thunk_0_4;
|
| }
|
|
|
| } // namespace thunk
|
|
|