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.
5 #ifndef WebKitGamepad_h
6 #define WebKitGamepad_h
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/gamepad/GamepadCommon.h"
10 #include "platform/heap/Handle.h"
11 #include "wtf/Vector.h"
15 class WebKitGamepad FINAL : public GarbageCollectedFinalized<WebKitGamepad>, public GamepadCommon, public ScriptWrappable {
17 static WebKitGamepad* create()
19 return new WebKitGamepad();
23 typedef Vector<float> FloatVector;
25 const FloatVector& buttons() const { return m_buttons; }
26 void setButtons(unsigned count, const WebGamepadButton* data);
28 void trace(Visitor*) { }
32 FloatVector m_buttons;
37 #endif // WebKitGamepad_h