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

Unified Diff: athena/system/orientation_controller.h

Issue 795333002: Refactor AccelerometerReader to provide an Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix athena build Created 6 years 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 | « ash/wm/maximize_mode/maximize_mode_controller_unittest.cc ('k') | athena/system/orientation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/system/orientation_controller.h
diff --git a/athena/system/orientation_controller.h b/athena/system/orientation_controller.h
index 7a970029263406710a56277f0ec78bd4b573b583..f50c43871288f5fd181f3a4a15c7cd455cfa76b1 100644
--- a/athena/system/orientation_controller.h
+++ b/athena/system/orientation_controller.h
@@ -20,8 +20,7 @@ namespace athena {
// Monitors accelerometers, detecting orientation changes. When a change is
// detected rotates the root window to match.
-class OrientationController
- : public chromeos::AccelerometerReader::Delegate {
+class OrientationController : public chromeos::AccelerometerReader::Observer {
public:
OrientationController();
~OrientationController() override;
@@ -29,9 +28,8 @@ class OrientationController
void InitWith(scoped_refptr<base::TaskRunner> blocking_task_runner);
void Shutdown();
- // chromeos::AccelerometerReader::Delegate
- virtual void HandleAccelerometerUpdate(
- const ui::AccelerometerUpdate& update) override;
+ // chromeos::AccelerometerReader::Observer:
+ void OnAccelerometerUpdated(const ui::AccelerometerUpdate& update) override;
private:
// The last configured rotation.
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller_unittest.cc ('k') | athena/system/orientation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698