| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OVERVIEW_WINDOW_SELECTOR_H_ | 5 #ifndef ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 6 #define ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // Perform cleanup that cannot be done in the destructor. | 78 // Perform cleanup that cannot be done in the destructor. |
| 79 void Shutdown(); | 79 void Shutdown(); |
| 80 | 80 |
| 81 // Cancels window selection. | 81 // Cancels window selection. |
| 82 void CancelSelection(); | 82 void CancelSelection(); |
| 83 | 83 |
| 84 // Called when the last window selector item from a grid is deleted. | 84 // Called when the last window selector item from a grid is deleted. |
| 85 void OnGridEmpty(WindowGrid* grid); | 85 void OnGridEmpty(WindowGrid* grid); |
| 86 | 86 |
| 87 // Activates |window|. |
| 88 void SelectWindow(aura::Window* window); |
| 89 |
| 87 bool restoring_minimized_windows() const { | 90 bool restoring_minimized_windows() const { |
| 88 return restoring_minimized_windows_; | 91 return restoring_minimized_windows_; |
| 89 } | 92 } |
| 90 | 93 |
| 91 // gfx::DisplayObserver: | 94 // gfx::DisplayObserver: |
| 92 void OnDisplayAdded(const gfx::Display& display) override; | 95 void OnDisplayAdded(const gfx::Display& display) override; |
| 93 void OnDisplayRemoved(const gfx::Display& display) override; | 96 void OnDisplayRemoved(const gfx::Display& display) override; |
| 94 void OnDisplayMetricsChanged(const gfx::Display& display, | 97 void OnDisplayMetricsChanged(const gfx::Display& display, |
| 95 uint32_t metrics) override; | 98 uint32_t metrics) override; |
| 96 | 99 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Tracks whether minimized windows are currently being restored for overview | 184 // Tracks whether minimized windows are currently being restored for overview |
| 182 // mode. | 185 // mode. |
| 183 bool restoring_minimized_windows_; | 186 bool restoring_minimized_windows_; |
| 184 | 187 |
| 185 DISALLOW_COPY_AND_ASSIGN(WindowSelector); | 188 DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
| 186 }; | 189 }; |
| 187 | 190 |
| 188 } // namespace ash | 191 } // namespace ash |
| 189 | 192 |
| 190 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 193 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| OLD | NEW |