Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Unified Diff: chrome/browser/chromeos/dbus/sensors_client.h

Issue 8400034: chromeos: Add a stub implementation for SensorsSource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/dbus/power_manager_client.h ('k') | chrome/browser/chromeos/dbus/sensors_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/browser/chromeos/dbus/power_manager_client.h ('k') | chrome/browser/chromeos/dbus/sensors_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698