Index: ppapi/thunk/ppb_view_api.h |
diff --git a/ppapi/thunk/ppb_view_api.h b/ppapi/thunk/ppb_view_api.h |
index 50e256e85b9c2a3ae80ead31e03e6cc625614654..756134422cb9d454995b262c2cfcf9b6878fad34 100644 |
--- a/ppapi/thunk/ppb_view_api.h |
+++ b/ppapi/thunk/ppb_view_api.h |
@@ -17,12 +17,16 @@ class PPAPI_THUNK_EXPORT PPB_View_API { |
public: |
virtual ~PPB_View_API() {} |
- // Returns the view data struct. We could have virtual functions here for |
- // each PPAPI function, but that would be more boilerplate for these simple |
- // getters so the logic is implemented in the thunk layer. If we start |
- // autogenerating the thunk layer and need this to be more regular, adding |
- // the API functions here should be fine. |
+ // Returns the view data struct. |
virtual const ViewData& GetData() const = 0; |
+ |
+ virtual PP_Bool GetRect(PP_Rect* viewport) const = 0; |
+ virtual PP_Bool IsFullscreen() const = 0; |
+ virtual PP_Bool IsVisible() const = 0; |
+ virtual PP_Bool IsPageVisible() const = 0; |
+ virtual PP_Bool GetClipRect(PP_Rect* clip) const = 0; |
+ virtual float GetDeviceScale() const = 0; |
+ virtual float GetCSSScale() const = 0; |
}; |
} // namespace thunk |