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