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

Side by Side Diff: ash/wm/overview/window_selector_controller.cc

Issue 2729363002: chromeos: Move files in //ash/common to //ash, part 3 (Closed)
Patch Set: Created 3 years, 9 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/wm/overview/window_selector.cc ('k') | ash/wm/overview/window_selector_item.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 #include "ash/wm/overview/window_selector_controller.h" 5 #include "ash/wm/overview/window_selector_controller.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/common/session/session_state_delegate.h" 9 #include "ash/session/session_state_delegate.h"
10 #include "ash/common/wm_shell.h"
11 #include "ash/common/wm_window.h"
12 #include "ash/system/tray/system_tray_delegate.h" 10 #include "ash/system/tray/system_tray_delegate.h"
13 #include "ash/wm/mru_window_tracker.h" 11 #include "ash/wm/mru_window_tracker.h"
14 #include "ash/wm/overview/window_selector.h" 12 #include "ash/wm/overview/window_selector.h"
15 #include "ash/wm/window_state.h" 13 #include "ash/wm/window_state.h"
14 #include "ash/wm_shell.h"
15 #include "ash/wm_window.h"
16 #include "base/metrics/histogram_macros.h" 16 #include "base/metrics/histogram_macros.h"
17 17
18 namespace ash { 18 namespace ash {
19 19
20 WindowSelectorController::WindowSelectorController() {} 20 WindowSelectorController::WindowSelectorController() {}
21 21
22 WindowSelectorController::~WindowSelectorController() { 22 WindowSelectorController::~WindowSelectorController() {
23 // Destroy widgets that may be still animating if shell shuts down soon after 23 // Destroy widgets that may be still animating if shell shuts down soon after
24 // exiting overview mode. 24 // exiting overview mode.
25 for (std::unique_ptr<DelayedAnimationObserver>& animation_observer : 25 for (std::unique_ptr<DelayedAnimationObserver>& animation_observer :
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 125 }
126 126
127 void WindowSelectorController::OnSelectionStarted() { 127 void WindowSelectorController::OnSelectionStarted() {
128 if (!last_selection_time_.is_null()) { 128 if (!last_selection_time_.is_null()) {
129 UMA_HISTOGRAM_LONG_TIMES("Ash.WindowSelector.TimeBetweenUse", 129 UMA_HISTOGRAM_LONG_TIMES("Ash.WindowSelector.TimeBetweenUse",
130 base::Time::Now() - last_selection_time_); 130 base::Time::Now() - last_selection_time_);
131 } 131 }
132 } 132 }
133 133
134 } // namespace ash 134 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/overview/window_selector.cc ('k') | ash/wm/overview/window_selector_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698