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

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

Issue 197883011: Enable maximize mode when keyboard is open past 180 degrees. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests, constants, and stickiness to entering / exiting. 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
7
8 #include "ash/accelerometer/accelerometer_observer.h"
9 #include "base/macros.h"
10
11 namespace ash {
12 namespace internal {
oshima 2014/04/01 22:29:08 let's kill "internal" namespace. I talked to sever
flackr 2014/04/02 21:24:30 Done.
13
14 // MaximizeModeController listens to accelerometer events and automatically
15 // enters and exits maximize mode when the lid is opened beyond the triggering
16 // angle.
17 class MaximizeModeController : public AccelerometerObserver {
18 public:
19 MaximizeModeController();
20 virtual ~MaximizeModeController();
21
22 virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base,
23 const gfx::Vector3dF& lid) OVERRIDE;
24 private:
25 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController);
26 };
27
28 } // namespace internal
29 } // namespace ash
30
31 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698