1 // Copyright 2013 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_GAMEPADCONTROLLER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_GAMEPADCONTROLLER_H_
8 #include "content/shell/renderer/test_runner/CppBoundClass.h"
9 #include "third_party/WebKit/public/platform/WebGamepads.h"
16 namespace WebTestRunner {
18 class WebTestDelegate;
20 class GamepadController : public CppBoundClass {
24 void bindToJavascript(blink::WebFrame*, const blink::WebString& classname);
25 void setDelegate(WebTestDelegate*);
29 // Bound methods and properties
30 void connect(const CppArgumentList&, CppVariant*);
31 void disconnect(const CppArgumentList&, CppVariant*);
32 void setId(const CppArgumentList&, CppVariant*);
33 void setButtonCount(const CppArgumentList&, CppVariant*);
34 void setButtonData(const CppArgumentList&, CppVariant*);
35 void setAxisCount(const CppArgumentList&, CppVariant*);
36 void setAxisData(const CppArgumentList&, CppVariant*);
37 void fallbackCallback(const CppArgumentList&, CppVariant*);
39 blink::WebGamepads m_gamepads;
41 WebTestDelegate* m_delegate;
46 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_GAMEPADCONTROLLER_H_