Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(974)

Unified Diff: ppapi/thunk/ppb_view_api.h

Issue 12220082: IDL: Autogenerate thunk .cc file for PPB_View (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698