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

Unified Diff: ppapi/c/pp_point.h

Issue 7285010: Implement an input event resource. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/c/pp_point.h
===================================================================
--- ppapi/c/pp_point.h (revision 90976)
+++ ppapi/c/pp_point.h (working copy)
@@ -21,7 +21,7 @@
*/
/**
- * The PP_Point structure defines the x and y coordinates of a point.
+ * The PP_Point structure defines the integer x and y coordinates of a point.
*/
struct PP_Point {
/**
@@ -37,7 +37,17 @@
int32_t y;
};
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_Point, 8);
+
/**
+ * The PP_FloatPoint structure defines the floating-point x and y coordinates
+ * of a point.
+ */
+struct PP_FloatPoint {
+ float x;
+ float y;
+};
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FloatPoint, 8);
+/**
* @}
*/
@@ -61,6 +71,13 @@
ret.y = y;
return ret;
}
+
+PP_INLINE struct PP_FloatPoint PP_MakeFloatPoint(float x, float y) {
+ struct PP_FloatPoint ret;
+ ret.x = x;
+ ret.y = y;
+ return ret;
+}
/**
* @}
*/
« no previous file with comments | « ppapi/c/pp_input_event.h ('k') | ppapi/c/ppb_input_event.h » ('j') | ppapi/c/ppb_input_event.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698