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

Unified Diff: ppapi/shared_impl/ppb_gamepad_shared.h

Issue 2300883003: Added Hand attribute to Gamepad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gamepad_pose
Patch Set: Address haraken@'s feedback Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/gamepad/Gamepad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_gamepad_shared.h
diff --git a/ppapi/shared_impl/ppb_gamepad_shared.h b/ppapi/shared_impl/ppb_gamepad_shared.h
index ae06bf2605a3c6522b7d422843657ae9469b770d..8787320ef9929a95d6f10c4109814b2528006b68 100644
--- a/ppapi/shared_impl/ppb_gamepad_shared.h
+++ b/ppapi/shared_impl/ppb_gamepad_shared.h
@@ -49,6 +49,12 @@ struct WebKitGamepadPose {
WebKitGamepadVector linearAcceleration;
};
+enum WebKitGamepadHand {
+ WEBKIT_GAMEPAD_HAND_NONE = 0,
+ WEBKIT_GAMEPAD_HAND_LEFT = 1,
+ WEBKIT_GAMEPAD_HAND_RIGHT = 2
+};
+
// This must match the definition of blink::Gamepad. The GamepadHost unit test
// has some compile asserts to validate this.
struct WebKitGamepad {
@@ -83,6 +89,8 @@ struct WebKitGamepad {
base::char16 mapping[kMappingLengthCap];
WebKitGamepadPose pose;
+
+ WebKitGamepadHand hand;
};
// This must match the definition of blink::Gamepads. The GamepadHost unit
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/gamepad/Gamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698