| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // this window. | 117 // this window. |
| 118 aura::Window* restore_focus_window_; | 118 aura::Window* restore_focus_window_; |
| 119 | 119 |
| 120 // True when performing operations that may cause window activations. This is | 120 // True when performing operations that may cause window activations. This is |
| 121 // used to prevent handling the resulting expected activation. | 121 // used to prevent handling the resulting expected activation. |
| 122 bool ignore_activations_; | 122 bool ignore_activations_; |
| 123 | 123 |
| 124 // List of all the window overview grids, one for each root window. | 124 // List of all the window overview grids, one for each root window. |
| 125 ScopedVector<WindowGrid> grid_list_; | 125 ScopedVector<WindowGrid> grid_list_; |
| 126 | 126 |
| 127 // The time when overview was started. | |
| 128 base::Time overview_start_time_; | |
| 129 | |
| 130 // Tracks windows which were hidden because they were not part of the | 127 // Tracks windows which were hidden because they were not part of the |
| 131 // overview. | 128 // overview. |
| 132 aura::WindowTracker hidden_windows_; | 129 aura::WindowTracker hidden_windows_; |
| 133 | 130 |
| 134 // Tracks the index of the root window the selection widget is in. | 131 // Tracks the index of the root window the selection widget is in. |
| 135 size_t selected_grid_index_; | 132 size_t selected_grid_index_; |
| 136 | 133 |
| 134 // The following variables are used for metric collection purposes. All of |
| 135 // them refer to this particular overview session and are not cumulative: |
| 136 // The time when overview was started. |
| 137 base::Time overview_start_time_; |
| 138 |
| 139 // The number of arrow key presses. |
| 140 size_t num_key_presses_; |
| 141 |
| 142 // The number of items in the overview. |
| 143 size_t num_items_; |
| 144 |
| 137 DISALLOW_COPY_AND_ASSIGN(WindowSelector); | 145 DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
| 138 }; | 146 }; |
| 139 | 147 |
| 140 } // namespace ash | 148 } // namespace ash |
| 141 | 149 |
| 142 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ | 150 #endif // ASH_WM_OVERVIEW_WINDOW_SELECTOR_H_ |
| OLD | NEW |