Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Side by Side Diff: ash/wm/overview/window_selector.h

Issue 320303002: Added UMA stats to overview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed last nits. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/metrics/user_metrics_recorder.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_recorder.cc ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698