OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_GAMEPAD_CONTROLLER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_GAMEPAD_CONTROLLER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_GAMEPAD_CONTROLLER_H_ | 6 #define COMPONENTS_TEST_RUNNER_GAMEPAD_CONTROLLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "third_party/WebKit/public/platform/WebGamepads.h" | 11 #include "third_party/WebKit/public/platform/WebGamepads.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 class WebFrame; | 14 class WebFrame; |
15 class WebGamepadListener; | 15 class WebGamepadListener; |
16 } | 16 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Mapping from gamepad index to connection state. | 57 // Mapping from gamepad index to connection state. |
58 std::map<int, bool> pending_changes_; | 58 std::map<int, bool> pending_changes_; |
59 | 59 |
60 base::WeakPtrFactory<GamepadController> weak_factory_; | 60 base::WeakPtrFactory<GamepadController> weak_factory_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(GamepadController); | 62 DISALLOW_COPY_AND_ASSIGN(GamepadController); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace content | 65 } // namespace content |
66 | 66 |
67 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_GAMEPAD_CONTROLLER_H_ | 67 #endif // COMPONENTS_TEST_RUNNER_GAMEPAD_CONTROLLER_H_ |
OLD | NEW |