| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebKitGamepad_h |
| 6 #define WebKitGamepad_h |
| 7 |
| 8 #include "modules/gamepad/GamepadBase.h" |
| 9 |
| 10 namespace WebCore { |
| 11 |
| 12 class WebKitGamepad FINAL: public GamepadBase { |
| 13 public: |
| 14 static PassRefPtrWillBeRawPtr<WebKitGamepad> create() |
| 15 { |
| 16 return adoptRefWillBeNoop(new WebKitGamepad); |
| 17 } |
| 18 virtual ~WebKitGamepad(); |
| 19 |
| 20 const FloatVector& buttons() const { return m_buttons; } |
| 21 virtual void buttons(unsigned count, const blink::WebGamepadButton* data); |
| 22 |
| 23 private: |
| 24 WebKitGamepad(); |
| 25 FloatVector m_buttons; |
| 26 }; |
| 27 |
| 28 } // namespace WebCore |
| 29 |
| 30 #endif // WebKitGamepad_h |
| OLD | NEW |