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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
| 11 #include <memory> |
11 #include <set> | 12 #include <set> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "ash/ash_export.h" | 15 #include "ash/ash_export.h" |
15 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/memory/scoped_ptr.h" | |
18 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 #include "ui/aura/window_observer.h" | 20 #include "ui/aura/window_observer.h" |
21 #include "ui/aura/window_tracker.h" | 21 #include "ui/aura/window_tracker.h" |
22 #include "ui/events/event_handler.h" | 22 #include "ui/events/event_handler.h" |
23 #include "ui/gfx/display_observer.h" | 23 #include "ui/gfx/display_observer.h" |
24 #include "ui/views/controls/textfield/textfield_controller.h" | 24 #include "ui/views/controls/textfield/textfield_controller.h" |
25 #include "ui/wm/public/activation_change_observer.h" | 25 #include "ui/wm/public/activation_change_observer.h" |
26 | 26 |
27 namespace aura { | 27 namespace aura { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 175 |
176 // The number of items in the overview. | 176 // The number of items in the overview. |
177 size_t num_items_; | 177 size_t num_items_; |
178 | 178 |
179 // Indicates if we are showing the selection widget. | 179 // Indicates if we are showing the selection widget. |
180 bool showing_selection_widget_; | 180 bool showing_selection_widget_; |
181 | 181 |
182 // Window text filter widget. As the user writes on it, we filter the items | 182 // Window text filter widget. As the user writes on it, we filter the items |
183 // in the overview. It is also responsible for handling overview key events, | 183 // in the overview. It is also responsible for handling overview key events, |
184 // such as enter key to select. | 184 // such as enter key to select. |
185 scoped_ptr<views::Widget> text_filter_widget_; | 185 std::unique_ptr<views::Widget> text_filter_widget_; |
186 | 186 |
187 // The current length of the string entered into the text filtering textfield. | 187 // The current length of the string entered into the text filtering textfield. |
188 size_t text_filter_string_length_; | 188 size_t text_filter_string_length_; |
189 | 189 |
190 // The number of times the text filtering textfield has been cleared of text | 190 // The number of times the text filtering textfield has been cleared of text |
191 // during this overview mode session. | 191 // during this overview mode session. |
192 size_t num_times_textfield_cleared_; | 192 size_t num_times_textfield_cleared_; |
193 | 193 |
194 // Tracks whether minimized windows are currently being restored for overview | 194 // Tracks whether minimized windows are currently being restored for overview |
195 // mode. | 195 // mode. |
196 bool restoring_minimized_windows_; | 196 bool restoring_minimized_windows_; |
197 | 197 |
198 DISALLOW_COPY_AND_ASSIGN(WindowSelector); | 198 DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace ash | 201 } // namespace ash |
202 | 202 |
203 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 203 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
OLD | NEW |