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

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

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
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 #include "ash/wm/maximize_mode/maximize_mode_controller.h" 5 #include "ash/wm/maximize_mode/maximize_mode_controller.h"
6 6
7 #include "ash/accelerometer/accelerometer_controller.h" 7 #include "ash/accelerometer/accelerometer_controller.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ui/gfx/vector3d_f.h" 9 #include "ui/gfx/vector3d_f.h"
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 angle > kFullyOpenAngleErrorTolerance && 94 angle > kFullyOpenAngleErrorTolerance &&
95 angle < kExitMaximizeModeAngle) { 95 angle < kExitMaximizeModeAngle) {
96 Shell::GetInstance()->EnableMaximizeModeWindowManager(false); 96 Shell::GetInstance()->EnableMaximizeModeWindowManager(false);
97 } else if (!maximize_mode_engaged && 97 } else if (!maximize_mode_engaged &&
98 angle > kEnterMaximizeModeAngle) { 98 angle > kEnterMaximizeModeAngle) {
99 Shell::GetInstance()->EnableMaximizeModeWindowManager(true); 99 Shell::GetInstance()->EnableMaximizeModeWindowManager(true);
100 } 100 }
101 } 101 }
102 102
103 } // namespace ash 103 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller.h ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698