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

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

Issue 437213005: Fixing problem with the maximize mode where MultiProfile windows do not get properly handled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 #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 "ash/ash_export.h" 9 #include "ash/ash_export.h"
10 #include "ash/display/display_controller.h" 10 #include "ash/display/display_controller.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // TODO(jonross): Merge this with EnterMaximizeMode. Currently these are 75 // TODO(jonross): Merge this with EnterMaximizeMode. Currently these are
76 // separate for several reasons: there is no internal display when running 76 // separate for several reasons: there is no internal display when running
77 // unittests; the event blocker prevents keyboard input when running ChromeOS 77 // unittests; the event blocker prevents keyboard input when running ChromeOS
78 // on linux. http://crbug.com/362881 78 // on linux. http://crbug.com/362881
79 // Turn the always maximize mode window manager on or off. 79 // Turn the always maximize mode window manager on or off.
80 void EnableMaximizeModeWindowManager(bool enable); 80 void EnableMaximizeModeWindowManager(bool enable);
81 81
82 // Test if the MaximizeModeWindowManager is enabled or not. 82 // Test if the MaximizeModeWindowManager is enabled or not.
83 bool IsMaximizeModeWindowManagerEnabled() const; 83 bool IsMaximizeModeWindowManagerEnabled() const;
84 84
85 // Add a special window to the MaximizeModeWindowManager for tracking. This is
86 // only required for special windows which are handled by other window
87 // managers like the |MultiUserWindowManager|.
88 // If the maximize mode is not enabled no action will be performed.
89 void AddWindow(aura::Window* window);
90
85 // TODO(jonross): move this into the destructor. Currently separated as 91 // TODO(jonross): move this into the destructor. Currently separated as
86 // ShellOberver notifies of maximize mode ending, and the observers end up 92 // ShellOberver notifies of maximize mode ending, and the observers end up
87 // attempting to access MaximizeModeController via the Shell. If done in 93 // attempting to access MaximizeModeController via the Shell. If done in
88 // destructor the controller is null, and the observers segfault. 94 // destructor the controller is null, and the observers segfault.
89 // Shuts down down the MaximizeModeWindowManager and notifies all observers. 95 // Shuts down down the MaximizeModeWindowManager and notifies all observers.
90 void Shutdown(); 96 void Shutdown();
91 97
92 // AccelerometerObserver: 98 // AccelerometerObserver:
93 virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base, 99 virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base,
94 const gfx::Vector3dF& lid) OVERRIDE; 100 const gfx::Vector3dF& lid) OVERRIDE;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 base::Time last_touchview_transition_time_; 174 base::Time last_touchview_transition_time_;
169 base::TimeDelta total_touchview_time_; 175 base::TimeDelta total_touchview_time_;
170 base::TimeDelta total_non_touchview_time_; 176 base::TimeDelta total_non_touchview_time_;
171 177
172 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController); 178 DISALLOW_COPY_AND_ASSIGN(MaximizeModeController);
173 }; 179 };
174 180
175 } // namespace ash 181 } // namespace ash
176 182
177 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_ 183 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | ash/wm/maximize_mode/maximize_mode_window_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698