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

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

Issue 588193003: Defer maximize mode bounds updates until after exiting overview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 private: 80 private:
81 typedef std::map<aura::Window*, MaximizeModeWindowState*> WindowToState; 81 typedef std::map<aura::Window*, MaximizeModeWindowState*> WindowToState;
82 82
83 // Maximize all windows and restore their current state. 83 // Maximize all windows and restore their current state.
84 void MaximizeAllWindows(); 84 void MaximizeAllWindows();
85 85
86 // Restore all windows to their previous state. 86 // Restore all windows to their previous state.
87 void RestoreAllWindows(); 87 void RestoreAllWindows();
88 88
89 // Set whether to defer bounds updates on all tracked windows. When set to
90 // false bounds will be updated as they may be stale.
91 void SetDeferBoundsUpdates(bool defer_bounds_updates);
92
89 // If the given window should be handled by us, this function will maximize it 93 // If the given window should be handled by us, this function will maximize it
90 // and add it to the list of known windows (remembering the initial show 94 // and add it to the list of known windows (remembering the initial show
91 // state). 95 // state).
92 // Note: If the given window cannot be handled by us the function will return 96 // Note: If the given window cannot be handled by us the function will return
93 // immediately. 97 // immediately.
94 void MaximizeAndTrackWindow(aura::Window* window); 98 void MaximizeAndTrackWindow(aura::Window* window);
95 99
96 // Remove a window from our tracking list. 100 // Remove a window from our tracking list.
97 void ForgetWindow(aura::Window* window); 101 void ForgetWindow(aura::Window* window);
98 102
(...skipping 24 matching lines...) Expand all
123 127
124 // True if all backdrops are hidden. 128 // True if all backdrops are hidden.
125 bool backdrops_hidden_; 129 bool backdrops_hidden_;
126 130
127 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager); 131 DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowManager);
128 }; 132 };
129 133
130 } // namespace ash 134 } // namespace ash
131 135
132 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_ 136 #endif // ASH_WM_MAXIMIZE_MODE_MAXIMIZE_MODE_WINDOW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698