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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Activates |window|. | 64 // Activates |window|. |
65 void SelectWindow(WmWindow* window); | 65 void SelectWindow(WmWindow* window); |
66 | 66 |
67 // Called when |window| is about to get closed. | 67 // Called when |window| is about to get closed. |
68 void WindowClosing(WindowSelectorItem* window); | 68 void WindowClosing(WindowSelectorItem* window); |
69 | 69 |
| 70 WindowSelectorDelegate* delegate() { return delegate_; } |
| 71 |
70 bool restoring_minimized_windows() const { | 72 bool restoring_minimized_windows() const { |
71 return restoring_minimized_windows_; | 73 return restoring_minimized_windows_; |
72 } | 74 } |
73 | 75 |
74 int text_filter_bottom() { return text_filter_bottom_; } | 76 int text_filter_bottom() { return text_filter_bottom_; } |
75 | 77 |
76 // display::DisplayObserver: | 78 // display::DisplayObserver: |
77 void OnDisplayAdded(const display::Display& display) override; | 79 void OnDisplayAdded(const display::Display& display) override; |
78 void OnDisplayRemoved(const display::Display& display) override; | 80 void OnDisplayRemoved(const display::Display& display) override; |
79 void OnDisplayMetricsChanged(const display::Display& display, | 81 void OnDisplayMetricsChanged(const display::Display& display, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // The distance between the top edge of the screen and the bottom edge of | 180 // The distance between the top edge of the screen and the bottom edge of |
179 // the text filtering textfield. | 181 // the text filtering textfield. |
180 int text_filter_bottom_; | 182 int text_filter_bottom_; |
181 | 183 |
182 DISALLOW_COPY_AND_ASSIGN(WindowSelector); | 184 DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
183 }; | 185 }; |
184 | 186 |
185 } // namespace ash | 187 } // namespace ash |
186 | 188 |
187 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 189 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
OLD | NEW |