OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_GAMEPAD_GAMEPAD_SERVICE_H_ | 5 #ifndef CONTENT_BROWSER_GAMEPAD_GAMEPAD_SERVICE_H_ |
6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_SERVICE_H_ | 6 #define CONTENT_BROWSER_GAMEPAD_GAMEPAD_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 namespace device { | 23 namespace device { |
24 class GamepadConsumer; | 24 class GamepadConsumer; |
25 class GamepadDataFetcher; | 25 class GamepadDataFetcher; |
26 class GamepadProvider; | 26 class GamepadProvider; |
27 } | 27 } |
28 | 28 |
29 namespace content { | 29 namespace content { |
30 | 30 |
31 class GamepadServiceTestConstructor; | 31 class GamepadServiceTestConstructor; |
32 class RenderProcessHost; | |
33 | 32 |
34 // Owns the GamepadProvider (the background polling thread) and keeps track of | 33 // Owns the GamepadProvider (the background polling thread) and keeps track of |
35 // the number of consumers currently using the data (and pausing the provider | 34 // the number of consumers currently using the data (and pausing the provider |
36 // when not in use). | 35 // when not in use). |
37 class CONTENT_EXPORT GamepadService | 36 class CONTENT_EXPORT GamepadService |
38 : public device::GamepadConnectionChangeClient { | 37 : public device::GamepadConnectionChangeClient { |
39 public: | 38 public: |
40 // Returns the GamepadService singleton. | 39 // Returns the GamepadService singleton. |
41 static GamepadService* GetInstance(); | 40 static GamepadService* GetInstance(); |
42 | 41 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 int num_active_consumers_; | 130 int num_active_consumers_; |
132 | 131 |
133 bool gesture_callback_pending_; | 132 bool gesture_callback_pending_; |
134 | 133 |
135 DISALLOW_COPY_AND_ASSIGN(GamepadService); | 134 DISALLOW_COPY_AND_ASSIGN(GamepadService); |
136 }; | 135 }; |
137 | 136 |
138 } // namespace content | 137 } // namespace content |
139 | 138 |
140 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_SERVICE_H_ | 139 #endif // CONTENT_BROWSER_GAMEPAD_GAMEPAD_SERVICE_H_ |
OLD | NEW |