Index: ppapi/thunk/ppb_view_thunk.cc |
diff --git a/ppapi/thunk/ppb_view_thunk.cc b/ppapi/thunk/ppb_view_thunk.cc |
index 1aa16e6d4894b7c3c18e320e01107946d9187d4a..4885567b6ef0332cdd71a1103ef5496a29f38b1d 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 Fri Feb 8 14:28:54 2013. |
+// From ppb_view.idl modified Thu Mar 21 11:28:20 2013. |
#include "ppapi/c/pp_errors.h" |
#include "ppapi/c/ppb_view.h" |
@@ -58,6 +58,20 @@ PP_Bool GetClipRect(PP_Resource resource, struct PP_Rect* clip) { |
return enter.object()->GetClipRect(clip); |
} |
+float GetDeviceScale(PP_Resource resource) { |
+ EnterResource<PPB_View_API> enter(resource, true); |
+ if (enter.failed()) |
+ return 0.0f; |
+ return enter.object()->GetDeviceScale(); |
+} |
+ |
+float GetCSSScale(PP_Resource resource) { |
+ EnterResource<PPB_View_API> enter(resource, true); |
+ if (enter.failed()) |
+ return 0.0f; |
+ return enter.object()->GetCSSScale(); |
+} |
+ |
const PPB_View_1_0 g_ppb_view_thunk_1_0 = { |
&IsView, |
&GetRect, |
@@ -67,11 +81,26 @@ const PPB_View_1_0 g_ppb_view_thunk_1_0 = { |
&GetClipRect |
}; |
+const PPB_View_1_1 g_ppb_view_thunk_1_1 = { |
+ &IsView, |
+ &GetRect, |
+ &IsFullscreen, |
+ &IsVisible, |
+ &IsPageVisible, |
+ &GetClipRect, |
+ &GetDeviceScale, |
+ &GetCSSScale |
+}; |
+ |
} // namespace |
const PPB_View_1_0* GetPPB_View_1_0_Thunk() { |
return &g_ppb_view_thunk_1_0; |
} |
+const PPB_View_1_1* GetPPB_View_1_1_Thunk() { |
+ return &g_ppb_view_thunk_1_1; |
+} |
+ |
} // namespace thunk |
} // namespace ppapi |