OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_CLIENT_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 namespace dbus { | 10 namespace dbus { |
11 class Bus; | 11 class Bus; |
12 class ObjectProxy; | |
13 class Signal; | |
14 } // namespace | 12 } // namespace |
15 | 13 |
16 namespace chromeos { | 14 namespace chromeos { |
17 | 15 |
18 // Creates and manages a dbus signal receiver for device orientation changes, | 16 // Creates and manages a dbus signal receiver for device orientation changes, |
19 // and eventually receives data for other motion-related sensors. | 17 // and eventually receives data for other motion-related sensors. |
20 class SensorsClient { | 18 class SensorsClient { |
21 public: | 19 public: |
22 virtual ~SensorsClient(); | 20 virtual ~SensorsClient(); |
23 | 21 |
24 // Creates the instance. | 22 // Creates the instance. |
25 static SensorsClient* Create(dbus::Bus* bus); | 23 static SensorsClient* Create(dbus::Bus* bus); |
26 | 24 |
27 protected: | 25 protected: |
28 // Create() should be used instead. | 26 // Create() should be used instead. |
29 SensorsClient(); | 27 SensorsClient(); |
30 | 28 |
31 private: | 29 private: |
32 DISALLOW_COPY_AND_ASSIGN(SensorsClient); | 30 DISALLOW_COPY_AND_ASSIGN(SensorsClient); |
33 }; | 31 }; |
34 | 32 |
35 } // namespace chromeos | 33 } // namespace chromeos |
36 | 34 |
37 #endif // CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_CLIENT_H_ | 35 #endif // CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_CLIENT_H_ |
OLD | NEW |