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

Unified Diff: third_party/WebKit/Source/modules/gamepad/Gamepad.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 | « ppapi/shared_impl/ppb_gamepad_shared.h ('k') | third_party/WebKit/Source/modules/gamepad/Gamepad.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/gamepad/Gamepad.h
diff --git a/third_party/WebKit/Source/modules/gamepad/Gamepad.h b/third_party/WebKit/Source/modules/gamepad/Gamepad.h
index 51156f29a17138d1e0eef1172ca43fca2fdd5b44..bcfeb4644aef06f76c3cb349f5b06ac9bf0fbc34 100644
--- a/third_party/WebKit/Source/modules/gamepad/Gamepad.h
+++ b/third_party/WebKit/Source/modules/gamepad/Gamepad.h
@@ -71,6 +71,9 @@ public:
GamepadPose* pose() const { return m_pose; }
void setPose(const WebGamepadPose&);
+ const String& hand() const { return m_hand; }
+ void setHand(const WebGamepadHand&);
+
DECLARE_TRACE();
private:
@@ -84,6 +87,7 @@ private:
DoubleVector m_axes;
GamepadButtonVector m_buttons;
Member<GamepadPose> m_pose;
+ String m_hand;
};
} // namespace blink
« no previous file with comments | « ppapi/shared_impl/ppb_gamepad_shared.h ('k') | third_party/WebKit/Source/modules/gamepad/Gamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698