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

Side by Side Diff: athena/system/orientation_controller.h

Issue 822503003: Change AccelerometerReader to a Singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update new dependency Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ATHENA_SYSTEM_ORIENTATION_CONTROLLER_H_ 5 #ifndef ATHENA_SYSTEM_ORIENTATION_CONTROLLER_H_
6 #define ATHENA_SYSTEM_ORIENTATION_CONTROLLER_H_ 6 #define ATHENA_SYSTEM_ORIENTATION_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 void InitWith(scoped_refptr<base::TaskRunner> blocking_task_runner); 28 void InitWith(scoped_refptr<base::TaskRunner> blocking_task_runner);
29 void Shutdown(); 29 void Shutdown();
30 30
31 // chromeos::AccelerometerReader::Observer: 31 // chromeos::AccelerometerReader::Observer:
32 void OnAccelerometerUpdated(const ui::AccelerometerUpdate& update) override; 32 void OnAccelerometerUpdated(const ui::AccelerometerUpdate& update) override;
33 33
34 private: 34 private:
35 // The last configured rotation. 35 // The last configured rotation.
36 gfx::Display::Rotation current_rotation_; 36 gfx::Display::Rotation current_rotation_;
37 37
38 scoped_ptr<chromeos::AccelerometerReader> accelerometer_reader_;
39
40 DISALLOW_COPY_AND_ASSIGN(OrientationController); 38 DISALLOW_COPY_AND_ASSIGN(OrientationController);
41 }; 39 };
42 40
43 } // namespace athena 41 } // namespace athena
44 42
45 #endif // ATHENA_SYSTEM_ORIENTATION_CONTROLLER_H_ 43 #endif // ATHENA_SYSTEM_ORIENTATION_CONTROLLER_H_
OLDNEW
« 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