| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |