| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |