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