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

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

Issue 2908793002: [mus+ash] Removes WmWindow from ash/wm/overview and ash/wm/workspace (Closed)
Patch Set: Created 3 years, 7 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/session/session_controller.h" 9 #include "ash/session/session_controller.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
11 #include "ash/shell_port.h" 11 #include "ash/shell_port.h"
12 #include "ash/wm/mru_window_tracker.h" 12 #include "ash/wm/mru_window_tracker.h"
13 #include "ash/wm/overview/window_selector.h" 13 #include "ash/wm/overview/window_selector.h"
14 #include "ash/wm/screen_pinning_controller.h" 14 #include "ash/wm/screen_pinning_controller.h"
15 #include "ash/wm/window_state.h" 15 #include "ash/wm/window_state.h"
16 #include "ash/wm_window.h"
17 #include "base/metrics/histogram_macros.h" 16 #include "base/metrics/histogram_macros.h"
18 17
19 namespace ash { 18 namespace ash {
20 19
21 WindowSelectorController::WindowSelectorController() {} 20 WindowSelectorController::WindowSelectorController() {}
22 21
23 WindowSelectorController::~WindowSelectorController() { 22 WindowSelectorController::~WindowSelectorController() {
24 // 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
25 // exiting overview mode. 24 // exiting overview mode.
26 for (std::unique_ptr<DelayedAnimationObserver>& animation_observer : 25 for (std::unique_ptr<DelayedAnimationObserver>& animation_observer :
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 120 }
122 121
123 void WindowSelectorController::OnSelectionStarted() { 122 void WindowSelectorController::OnSelectionStarted() {
124 if (!last_selection_time_.is_null()) { 123 if (!last_selection_time_.is_null()) {
125 UMA_HISTOGRAM_LONG_TIMES("Ash.WindowSelector.TimeBetweenUse", 124 UMA_HISTOGRAM_LONG_TIMES("Ash.WindowSelector.TimeBetweenUse",
126 base::Time::Now() - last_selection_time_); 125 base::Time::Now() - last_selection_time_);
127 } 126 }
128 } 127 }
129 128
130 } // namespace ash 129 } // 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