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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_controller.h

Issue 236173003: Merge 261645 "Enable maximize mode when keyboard is open past 18..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 5 #ifndef ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
7 7
8 #include "ash/accelerometer/accelerometer_observer.h" 8 #include "ash/accelerometer/accelerometer_observer.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
11 namespace ash { 11 namespace ash {
12 12
13 // MaximizeModeController listens to accelerometer events and automatically 13 // MaximizeModeController listens to accelerometer events and automatically
14 // enters and exits maximize mode when the lid is opened beyond the triggering 14 // enters and exits maximize mode when the lid is opened beyond the triggering
15 // angle. 15 // angle.
16 class MaximizeModeController : public AccelerometerObserver { 16 class MaximizeModeController : public AccelerometerObserver {
17 public: 17 public:
18 MaximizeModeController(); 18 MaximizeModeController();
19 virtual ~MaximizeModeController(); 19 virtual ~MaximizeModeController();
20 20
21 virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base, 21 virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base,
22 const gfx::Vector3dF& lid) OVERRIDE; 22 const gfx::Vector3dF& lid) OVERRIDE;
23 private: 23 private:
24 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController); 24 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController);
25 }; 25 };
26 26
27 } // namespace ash 27 } // namespace ash
28 28
29 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 29 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698