Chromium Code Reviews| 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_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 5 #ifndef ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| 6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 6 #define ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 | 54 |
| 55 // Perform cleanup that cannot be done in the destructor. | 55 // Perform cleanup that cannot be done in the destructor. |
| 56 void Shutdown(); | 56 void Shutdown(); |
| 57 | 57 |
| 58 // Cancels window selection. | 58 // Cancels window selection. |
| 59 void CancelSelection(); | 59 void CancelSelection(); |
| 60 | 60 |
| 61 // Called when the last window selector item from a grid is deleted. | 61 // Called when the last window selector item from a grid is deleted. |
| 62 void OnGridEmpty(WindowGrid* grid); | 62 void OnGridEmpty(WindowGrid* grid); |
| 63 | 63 |
| 64 // Moves the current selection by |increment| items. Positive values of | |
| 65 // |increment| move the selection forward, negative values mov it backward. | |
|
tdanderson
2017/02/06 20:13:57
nit: "move"
varkha
2017/02/08 20:41:13
Done.
| |
| 66 void IncrementSelection(int increment); | |
| 67 | |
| 68 // Accepts current selection if any. Returns true if a selection was made, | |
| 69 // false otherwise. | |
| 70 bool AcceptSelection(); | |
| 71 | |
| 64 // Activates |item's| window. | 72 // Activates |item's| window. |
| 65 void SelectWindow(WindowSelectorItem* item); | 73 void SelectWindow(WindowSelectorItem* item); |
| 66 | 74 |
| 67 // Called when |window| is about to get closed. | 75 // Called when |window| is about to get closed. |
| 68 void WindowClosing(WindowSelectorItem* window); | 76 void WindowClosing(WindowSelectorItem* window); |
| 69 | 77 |
| 70 WindowSelectorDelegate* delegate() { return delegate_; } | 78 WindowSelectorDelegate* delegate() { return delegate_; } |
| 71 | 79 |
| 72 bool restoring_minimized_windows() const { | 80 bool restoring_minimized_windows() const { |
| 73 return restoring_minimized_windows_; | 81 return restoring_minimized_windows_; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 184 int text_filter_bottom_; | 192 int text_filter_bottom_; |
| 185 | 193 |
| 186 bool is_shut_down_ = false; | 194 bool is_shut_down_ = false; |
| 187 | 195 |
| 188 DISALLOW_COPY_AND_ASSIGN(WindowSelector); | 196 DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
| 189 }; | 197 }; |
| 190 | 198 |
| 191 } // namespace ash | 199 } // namespace ash |
| 192 | 200 |
| 193 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 201 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| OLD | NEW |