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

Unified Diff: third_party/WebKit/Source/modules/gamepad/Gamepad.h

Issue 2300543003: Added Pose attribute to Gamepad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gamepad_touched
Patch Set: Rebase 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
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 b9ac12c8f19f75e5612e7d73bf6ca6d113e6630b..51156f29a17138d1e0eef1172ca43fca2fdd5b44 100644
--- a/third_party/WebKit/Source/modules/gamepad/Gamepad.h
+++ b/third_party/WebKit/Source/modules/gamepad/Gamepad.h
@@ -28,6 +28,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "modules/gamepad/GamepadButton.h"
+#include "modules/gamepad/GamepadPose.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebGamepad.h"
#include "wtf/Vector.h"
@@ -67,6 +68,9 @@ public:
const GamepadButtonVector& buttons() const { return m_buttons; }
void setButtons(unsigned count, const WebGamepadButton* data);
+ GamepadPose* pose() const { return m_pose; }
+ void setPose(const WebGamepadPose&);
+
DECLARE_TRACE();
private:
@@ -79,6 +83,7 @@ private:
String m_mapping;
DoubleVector m_axes;
GamepadButtonVector m_buttons;
+ Member<GamepadPose> m_pose;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/BUILD.gn ('k') | third_party/WebKit/Source/modules/gamepad/Gamepad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698