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

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

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
Index: Source/modules/gamepad/GamepadDispatcher.h
diff --git a/Source/modules/gamepad/GamepadDispatcher.h b/Source/modules/gamepad/GamepadDispatcher.h
index f48a151a15d5be033b87372b6468ac5afe0bae46..f3021d7d9e7c5e2682d302b86d4b865a715c368a 100644
--- a/Source/modules/gamepad/GamepadDispatcher.h
+++ b/Source/modules/gamepad/GamepadDispatcher.h
@@ -5,7 +5,7 @@
#ifndef GamepadDispatcher_h
#define GamepadDispatcher_h
-#include "core/frame/DeviceEventDispatcherBase.h"
+#include "core/frame/PlatformEventDispatcher.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebGamepad.h"
#include "public/platform/WebGamepadListener.h"
@@ -18,7 +18,7 @@ namespace blink {
class NavigatorGamepad;
-class GamepadDispatcher : public DeviceEventDispatcherBase, public blink::WebGamepadListener {
+class GamepadDispatcher : public PlatformEventDispatcher, public blink::WebGamepadListener {
public:
static GamepadDispatcher& instance();
@@ -39,7 +39,7 @@ private:
virtual void didConnectGamepad(unsigned index, const blink::WebGamepad&) OVERRIDE;
virtual void didDisconnectGamepad(unsigned index, const blink::WebGamepad&) OVERRIDE;
- // DeviceEventDispatcherBase
+ // PlatformEventDispatcher
virtual void startListening() OVERRIDE;
virtual void stopListening() OVERRIDE;
« no previous file with comments | « Source/modules/device_orientation/DeviceOrientationDispatcher.cpp ('k') | Source/modules/gamepad/GamepadDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698