#ifndef WebKitGamepad_h
#define WebKitGamepad_h
#include "bindings/v8/ScriptWrappable.h"
#include "heap/Handle.h"
#include "modules/gamepad/GamepadCommon.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
namespace WebCore {
class WebKitGamepad FINAL : public RefCountedWillBeGarbageCollectedFinalized<WebKitGamepad>, public GamepadCommon, public ScriptWrappable {
public:
static PassRefPtrWillBeRawPtr<WebKitGamepad> create()
{
return adoptRefWillBeNoop(new WebKitGamepad);
}
~WebKitGamepad();
typedef Vector<float> FloatVector;
const FloatVector& buttons() const { return m_buttons; }
void setButtons(unsigned count, const blink::WebGamepadButton* data);
void trace(Visitor*) { }
private:
WebKitGamepad();
FloatVector m_buttons;
};
}
#endif