| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // them refer to this particular overview session and are not cumulative: | 150 // them refer to this particular overview session and are not cumulative: |
| 151 // The time when overview was started. | 151 // The time when overview was started. |
| 152 base::Time overview_start_time_; | 152 base::Time overview_start_time_; |
| 153 | 153 |
| 154 // The number of arrow key presses. | 154 // The number of arrow key presses. |
| 155 size_t num_key_presses_; | 155 size_t num_key_presses_; |
| 156 | 156 |
| 157 // The number of items in the overview. | 157 // The number of items in the overview. |
| 158 size_t num_items_; | 158 size_t num_items_; |
| 159 | 159 |
| 160 // Indicates if we are showing the selection widget. | 160 // Indicates if the text filter is shown on screen (rather than above it). |
| 161 bool showing_selection_widget_; | 161 bool showing_text_filter_; |
| 162 | 162 |
| 163 // Window text filter widget. As the user writes on it, we filter the items | 163 // Window text filter widget. As the user writes on it, we filter the items |
| 164 // in the overview. It is also responsible for handling overview key events, | 164 // in the overview. It is also responsible for handling overview key events, |
| 165 // such as enter key to select. | 165 // such as enter key to select. |
| 166 std::unique_ptr<views::Widget> text_filter_widget_; | 166 std::unique_ptr<views::Widget> text_filter_widget_; |
| 167 | 167 |
| 168 // Image used for text filter textfield. | 168 // Image used for text filter textfield. |
| 169 gfx::ImageSkia search_image_; | 169 gfx::ImageSkia search_image_; |
| 170 | 170 |
| 171 // The current length of the string entered into the text filtering textfield. | 171 // The current length of the string entered into the text filtering textfield. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 184 int text_filter_bottom_; | 184 int text_filter_bottom_; |
| 185 | 185 |
| 186 bool is_shut_down_ = false; | 186 bool is_shut_down_ = false; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(WindowSelector); | 188 DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace ash | 191 } // namespace ash |
| 192 | 192 |
| 193 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 193 #endif // ASH_COMMON_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| OLD | NEW |