diff options
Diffstat (limited to 'chromium/third_party/WebKit/public/platform/WebGamepadListener.h')
-rw-r--r-- | chromium/third_party/WebKit/public/platform/WebGamepadListener.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/public/platform/WebGamepadListener.h b/chromium/third_party/WebKit/public/platform/WebGamepadListener.h new file mode 100644 index 00000000000..f73049e4612 --- /dev/null +++ b/chromium/third_party/WebKit/public/platform/WebGamepadListener.h @@ -0,0 +1,23 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WebGamepadListener_h +#define WebGamepadListener_h + +namespace blink { + +class WebGamepad; + +class WebGamepadListener { +public: + virtual void didConnectGamepad(unsigned index, const blink::WebGamepad&) = 0; + virtual void didDisconnectGamepad(unsigned index, const blink::WebGamepad&) = 0; + +protected: + virtual ~WebGamepadListener() { } +}; + +} // namespace blink + +#endif |