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

Unified Diff: ash/accelerometer/sensor_manager_delegate.h

Issue 680383007: DeviceOrientation API on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Isolate Chrome OS changes Created 6 years, 1 month 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
Index: ash/accelerometer/sensor_manager_delegate.h
diff --git a/ash/accelerometer/sensor_manager_delegate.h b/ash/accelerometer/sensor_manager_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..0ec806b972d464581555f45e7288341e51ee360f
--- /dev/null
+++ b/ash/accelerometer/sensor_manager_delegate.h
@@ -0,0 +1,26 @@
+// Copyright 2014 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 ASH_ACCELEROMETER_SENSOR_MANAGER_DELEGATE_H_
+#define ASH_ACCELEROMETER_SENSOR_MANAGER_DELEGATE_H_
+
+#include "ash/accelerometer/accelerometer_observer.h"
+
+namespace ash {
+
+class SensorManagerDelegate : public AccelerometerObserver {
+ public:
+ SensorManagerDelegate();
+ virtual ~SensorManagerDelegate();
flackr 2014/11/07 19:30:46 nit: I think the pattern we use now is ~SensorMana
jonross 2014/11/10 22:39:09 Done.
+
+ // AccelerometerObserver:
+ void OnAccelerometerUpdated(const ui::AccelerometerUpdate& update) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SensorManagerDelegate);
+};
+
+} // namespace ash
+
+#endif // ASH_ACCELEROMETER_SENSOR_MANAGER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698