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

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

Issue 2352713004: Added displayId to Gamepad (Closed)
Patch Set: Re-upstream w/o webvr dependency 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 c6704a5753f5e25a0406c1f0a2de418ed678a102..b1342cd720ba164bd201897d036393646545a7fc 100644
--- a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -47,6 +47,7 @@ static void sampleGamepad(unsigned index, T& gamepad, const WebGamepad& webGamep
gamepad.setButtons(webGamepad.buttonsLength, webGamepad.buttons);
gamepad.setPose(webGamepad.pose);
gamepad.setHand(webGamepad.hand);
+ gamepad.setDisplayId(webGamepad.displayId);
}
template<typename GamepadType, typename ListType>
« no previous file with comments | « third_party/WebKit/Source/modules/gamepad/Gamepad.idl ('k') | third_party/WebKit/public/platform/WebGamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698