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

Unified Diff: public/platform/WebGamepadListener.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
« no previous file with comments | « public/platform/WebDeviceOrientationListener.h ('k') | public/platform/WebPlatformEventListener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebGamepadListener.h
diff --git a/public/platform/WebGamepadListener.h b/public/platform/WebGamepadListener.h
index f73049e461268542a1f2c1b31be17f2d1889a2f5..e292c0a21e10b3f492bd8edf06d065a943824340 100644
--- a/public/platform/WebGamepadListener.h
+++ b/public/platform/WebGamepadListener.h
@@ -5,11 +5,13 @@
#ifndef WebGamepadListener_h
#define WebGamepadListener_h
+#include "WebPlatformEventListener.h"
+
namespace blink {
class WebGamepad;
-class WebGamepadListener {
+class WebGamepadListener : public WebPlatformEventListener {
public:
virtual void didConnectGamepad(unsigned index, const blink::WebGamepad&) = 0;
virtual void didDisconnectGamepad(unsigned index, const blink::WebGamepad&) = 0;
« no previous file with comments | « public/platform/WebDeviceOrientationListener.h ('k') | public/platform/WebPlatformEventListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698