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

Unified Diff: Source/modules/gamepad/GamepadDispatcher.cpp

Issue 417213002: Introduce PlatformEvent to handle Device events, Battery events and Gamepad events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 4 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 | « Source/modules/gamepad/GamepadDispatcher.h ('k') | Source/modules/gamepad/NavigatorGamepad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/gamepad/GamepadDispatcher.cpp
diff --git a/Source/modules/gamepad/GamepadDispatcher.cpp b/Source/modules/gamepad/GamepadDispatcher.cpp
index 1dd3f2e381f4ffb6b22520e4e45aa94fa3d9a3a0..0dea444b7a4a5785e900a1d629fcb3e1441d0efa 100644
--- a/Source/modules/gamepad/GamepadDispatcher.cpp
+++ b/Source/modules/gamepad/GamepadDispatcher.cpp
@@ -52,12 +52,12 @@ void GamepadDispatcher::dispatchDidConnectOrDisconnectGamepad(unsigned index, co
void GamepadDispatcher::startListening()
{
- blink::Platform::current()->setGamepadListener(this);
+ blink::Platform::current()->startListening(WebPlatformEventGamepad, this);
}
void GamepadDispatcher::stopListening()
{
- blink::Platform::current()->setGamepadListener(0);
+ blink::Platform::current()->stopListening(WebPlatformEventGamepad);
}
} // namespace blink
« no previous file with comments | « Source/modules/gamepad/GamepadDispatcher.h ('k') | Source/modules/gamepad/NavigatorGamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698