Index: chrome/browser/chromeos/dbus/sensors_client.h |
diff --git a/chrome/browser/chromeos/dbus/sensors_client.h b/chrome/browser/chromeos/dbus/sensors_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cb0b0c4fe4f9c4c2bed906d70f267fd228b9ea75 |
--- /dev/null |
+++ b/chrome/browser/chromeos/dbus/sensors_client.h |
@@ -0,0 +1,37 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_CLIENT_H_ |
+#define CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_CLIENT_H_ |
+ |
+#include "base/basictypes.h" |
+ |
+namespace dbus { |
+class Bus; |
+class ObjectProxy; |
+class Signal; |
+} // namespace |
+ |
+namespace chromeos { |
+ |
+// Creates and manages a dbus signal receiver for device orientation changes, |
+// and eventually receives data for other motion-related sensors. |
+class SensorsClient { |
+ public: |
+ virtual ~SensorsClient(); |
+ |
+ // Creates the instance. |
+ static SensorsClient* Create(dbus::Bus* bus); |
+ |
+ protected: |
+ // Create() should be used instead. |
+ SensorsClient(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(SensorsClient); |
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_CLIENT_H_ |