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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_window_manager.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: merged 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_WINDOW_MANAGER_H_ 5 #ifndef ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_
6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_ 6 #define ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 24 matching lines...) Expand all
35 public gfx::DisplayObserver, 35 public gfx::DisplayObserver,
36 public ShellObserver, 36 public ShellObserver,
37 public ui::EventHandler { 37 public ui::EventHandler {
38 public: 38 public:
39 // This should only be deleted by the creator (ash::Shell). 39 // This should only be deleted by the creator (ash::Shell).
40 virtual ~MaximizeModeWindowManager(); 40 virtual ~MaximizeModeWindowManager();
41 41
42 // Returns the number of maximized & tracked windows by this manager. 42 // Returns the number of maximized & tracked windows by this manager.
43 int GetNumberOfManagedWindows(); 43 int GetNumberOfManagedWindows();
44 44
45 // Adds a window which needs to be maximized. This is used by other window
46 // managers for windows which needs to get tracked due to (upcoming) state
47 // changes.
48 // The call gets ignored if the window was already or should not be handled.
49 void AddWindow(aura::Window* window);
50
45 // Called from a window state object when it gets destroyed. 51 // Called from a window state object when it gets destroyed.
46 void WindowStateDestroyed(aura::Window* window); 52 void WindowStateDestroyed(aura::Window* window);
47 53
48 // ShellObserver overrides: 54 // ShellObserver overrides:
49 virtual void OnOverviewModeStarting() OVERRIDE; 55 virtual void OnOverviewModeStarting() OVERRIDE;
50 virtual void OnOverviewModeEnding() OVERRIDE; 56 virtual void OnOverviewModeEnding() OVERRIDE;
51 57
52 // Overridden from WindowObserver: 58 // Overridden from WindowObserver:
53 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 59 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
54 virtual void OnWindowAdded(aura::Window* window) OVERRIDE; 60 virtual void OnWindowAdded(aura::Window* window) OVERRIDE;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 123
118 // True if all backdrops are hidden. 124 // True if all backdrops are hidden.
119 bool backdrops_hidden_; 125 bool backdrops_hidden_;
120 126
121 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager); 127 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager);
122 }; 128 };
123 129
124 } // namespace ash 130 } // namespace ash
125 131
126 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_ 132 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698