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

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

Issue 2056823002: mash: Move SystemTrayDelegate and dependencies to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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/common/session/session_state_delegate.h"
10 #include "ash/common/system/tray/system_tray_delegate.h"
10 #include "ash/common/wm/mru_window_tracker.h" 11 #include "ash/common/wm/mru_window_tracker.h"
11 #include "ash/common/wm/window_state.h" 12 #include "ash/common/wm/window_state.h"
12 #include "ash/common/wm_shell.h" 13 #include "ash/common/wm_shell.h"
13 #include "ash/common/wm_window.h" 14 #include "ash/common/wm_window.h"
14 #include "ash/shell.h" 15 #include "ash/shell.h"
15 #include "ash/system/tray/system_tray_delegate.h"
16 #include "ash/wm/overview/window_selector.h" 16 #include "ash/wm/overview/window_selector.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
18 18
19 namespace ash { 19 namespace ash {
20 20
21 WindowSelectorController::WindowSelectorController() { 21 WindowSelectorController::WindowSelectorController() {
22 } 22 }
23 23
24 WindowSelectorController::~WindowSelectorController() { 24 WindowSelectorController::~WindowSelectorController() {
25 } 25 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 void WindowSelectorController::OnSelectionStarted() { 84 void WindowSelectorController::OnSelectionStarted() {
85 if (!last_selection_time_.is_null()) { 85 if (!last_selection_time_.is_null()) {
86 UMA_HISTOGRAM_LONG_TIMES( 86 UMA_HISTOGRAM_LONG_TIMES(
87 "Ash.WindowSelector.TimeBetweenUse", 87 "Ash.WindowSelector.TimeBetweenUse",
88 base::Time::Now() - last_selection_time_); 88 base::Time::Now() - last_selection_time_);
89 } 89 }
90 } 90 }
91 91
92 } // namespace ash 92 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_controller_unittest.cc ('k') | ash/wm/system_gesture_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698