Chromium Code Reviews| 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 { | |
|
eseidel
2014/03/06 01:56:16
I'm not even sure we need to use two classes to im
Nils Barth (inactive)
2014/03/06 02:14:33
You can haz 2 IDL files with t3h same kla55:
inter
bajones
2014/03/06 18:52:25
I would very much like to do this as it seems much
| |
| 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); | |
|
Inactive
2014/03/06 02:54:00
OVERRIDE
| |
| 22 | |
| 23 private: | |
| 24 WebKitGamepad(); | |
| 25 FloatVector m_buttons; | |
| 26 }; | |
| 27 | |
| 28 } // namespace WebCore | |
| 29 | |
| 30 #endif // WebKitGamepad_h | |
| OLD | NEW |