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

Unified Diff: third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp

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/NavigatorGamepad.cpp
diff --git a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
index 5735dc4deff19eb40905159fa36ab1793a7c6323..3acee34d65cb5701be65ed276cda1ecd15648e6f 100644
--- a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -45,6 +45,7 @@ static void sampleGamepad(unsigned index, T& gamepad, const WebGamepad& webGamep
gamepad.setMapping(webGamepad.mapping);
gamepad.setAxes(webGamepad.axesLength, webGamepad.axes);
gamepad.setButtons(webGamepad.buttonsLength, webGamepad.buttons);
+ gamepad.setPose(webGamepad.pose);
}
template<typename GamepadType, typename ListType>
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/GamepadPose.idl ('k') | third_party/WebKit/Source/modules/modules_idl_files.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698