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

Unified Diff: chrome/browser/chromeos/dbus/sensors_source.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/sensors_client.cc ('k') | chrome/browser/chromeos/dbus/sensors_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dbus/sensors_source.h
diff --git a/chrome/browser/chromeos/dbus/sensors_source.h b/chrome/browser/chromeos/dbus/sensors_source.h
deleted file mode 100644
index e8fdbb333247f3bd437b1c442ba5a3a970e0a54d..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/dbus/sensors_source.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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_SOURCE_H_
-#define CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_SOURCE_H_
-
-#include "base/memory/weak_ptr.h"
-#include "content/browser/browser_thread.h"
-
-#include <string>
-
-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 SensorsSource {
- public:
- // Creates an inactive sensors source.
- SensorsSource();
- virtual ~SensorsSource();
-
- // Initializes this sensor source and begins listening for signals.
- // Returns true on success.
- void Init(dbus::Bus* bus);
-
- private:
- // Called by dbus:: in when an orientation change signal is received.
- void OrientationChangedReceived(dbus::Signal* signal);
-
- // Called by dbus:: when the orientation change signal is initially connected.
- void OrientationChangedConnected(const std::string& interface_name,
- const std::string& signal_name,
- bool success);
-
- dbus::ObjectProxy* sensors_proxy_;
- base::WeakPtrFactory<SensorsSource> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(SensorsSource);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_DBUS_SENSORS_SOURCE_H_
« no previous file with comments | « chrome/browser/chromeos/dbus/sensors_client.cc ('k') | chrome/browser/chromeos/dbus/sensors_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698