Index: ash/wm/overview/window_selector.h |
diff --git a/ash/wm/overview/window_selector.h b/ash/wm/overview/window_selector.h |
index d6c85195ca1e66a59954c189483fa87222f0e6f3..f83539966eb8836a75746dc27bed4449fb2b238c 100644 |
--- a/ash/wm/overview/window_selector.h |
+++ b/ash/wm/overview/window_selector.h |
@@ -66,6 +66,9 @@ class ASH_EXPORT WindowSelector |
// Called when the last window selector item from a grid is deleted. |
void OnGridEmpty(WindowGrid* grid); |
+ // Called when removing a window, adds one to the closed window counter. |
+ void on_window_removed() { num_closed_items_++; } |
+ |
// ui::EventHandler: |
virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
@@ -124,9 +127,6 @@ class ASH_EXPORT WindowSelector |
// List of all the window overview grids, one for each root window. |
ScopedVector<WindowGrid> grid_list_; |
- // The time when overview was started. |
- base::Time overview_start_time_; |
- |
// Tracks windows which were hidden because they were not part of the |
// overview. |
aura::WindowTracker hidden_windows_; |
@@ -134,6 +134,20 @@ class ASH_EXPORT WindowSelector |
// Tracks the index of the root window the selection widget is in. |
size_t selected_grid_index_; |
+ // The following variables are used for metric collection purposes. All of |
+ // them refer to this particular overview session and are not cumulative: |
+ // The time when overview was started. |
+ base::Time overview_start_time_; |
+ |
+ // The number of arrow key presses. |
+ size_t num_key_presses_; |
+ |
+ // The number of items in the overview. |
+ size_t num_items_; |
+ |
+ // The number of items that were removed from the overview. |
+ size_t num_closed_items_; |
+ |
DISALLOW_COPY_AND_ASSIGN(WindowSelector); |
}; |