| Index: ppapi/thunk/ppb_view_thunk.cc
|
| diff --git a/ppapi/thunk/ppb_view_thunk.cc b/ppapi/thunk/ppb_view_thunk.cc
|
| index 25171b2f51c7e1c621abedebf1c165f34852181c..c6bd195cbdec9d4bb5104b40e476041fcae779eb 100644
|
| --- a/ppapi/thunk/ppb_view_thunk.cc
|
| +++ b/ppapi/thunk/ppb_view_thunk.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// From ppb_view.idl modified Tue Aug 20 08:13:36 2013.
|
| +// From ppb_view.idl modified Wed Jun 11 15:42:26 2014.
|
|
|
| #include "ppapi/c/pp_errors.h"
|
| #include "ppapi/c/ppb_view.h"
|
| @@ -78,6 +78,14 @@ float GetCSSScale(PP_Resource resource) {
|
| return enter.object()->GetCSSScale();
|
| }
|
|
|
| +PP_Bool GetScrollOffset(PP_Resource resource, struct PP_Point* offset) {
|
| + VLOG(4) << "PPB_View::GetScrollOffset()";
|
| + EnterResource<PPB_View_API> enter(resource, true);
|
| + if (enter.failed())
|
| + return PP_FALSE;
|
| + return enter.object()->GetScrollOffset(offset);
|
| +}
|
| +
|
| const PPB_View_1_0 g_ppb_view_thunk_1_0 = {
|
| &IsView,
|
| &GetRect,
|
| @@ -98,6 +106,18 @@ const PPB_View_1_1 g_ppb_view_thunk_1_1 = {
|
| &GetCSSScale
|
| };
|
|
|
| +const PPB_View_1_2 g_ppb_view_thunk_1_2 = {
|
| + &IsView,
|
| + &GetRect,
|
| + &IsFullscreen,
|
| + &IsVisible,
|
| + &IsPageVisible,
|
| + &GetClipRect,
|
| + &GetDeviceScale,
|
| + &GetCSSScale,
|
| + &GetScrollOffset
|
| +};
|
| +
|
| } // namespace
|
|
|
| PPAPI_THUNK_EXPORT const PPB_View_1_0* GetPPB_View_1_0_Thunk() {
|
| @@ -108,5 +128,9 @@ PPAPI_THUNK_EXPORT const PPB_View_1_1* GetPPB_View_1_1_Thunk() {
|
| return &g_ppb_view_thunk_1_1;
|
| }
|
|
|
| +PPAPI_THUNK_EXPORT const PPB_View_1_2* GetPPB_View_1_2_Thunk() {
|
| + return &g_ppb_view_thunk_1_2;
|
| +}
|
| +
|
| } // namespace thunk
|
| } // namespace ppapi
|
|
|