OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/common/shelf/shelf_button_pressed_metric_tracker.h" | 5 #include "ash/shelf/shelf_button_pressed_metric_tracker.h" |
6 | 6 |
7 #include "ash/common/wm_shell.h" | 7 #include "ash/wm_shell.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 | 13 |
14 const char ShelfButtonPressedMetricTracker:: | 14 const char ShelfButtonPressedMetricTracker:: |
15 kTimeBetweenWindowMinimizedAndActivatedActionsHistogramName[] = | 15 kTimeBetweenWindowMinimizedAndActivatedActionsHistogramName[] = |
16 "Ash.Shelf.TimeBetweenWindowMinimizedAndActivatedActions"; | 16 "Ash.Shelf.TimeBetweenWindowMinimizedAndActivatedActions"; |
17 | 17 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 last_minimized_source_button_ = sender; | 91 last_minimized_source_button_ = sender; |
92 time_of_last_minimize_ = tick_clock_->NowTicks(); | 92 time_of_last_minimize_ = tick_clock_->NowTicks(); |
93 } | 93 } |
94 | 94 |
95 void ShelfButtonPressedMetricTracker::ResetMinimizedData() { | 95 void ShelfButtonPressedMetricTracker::ResetMinimizedData() { |
96 last_minimized_source_button_ = nullptr; | 96 last_minimized_source_button_ = nullptr; |
97 time_of_last_minimize_ = base::TimeTicks(); | 97 time_of_last_minimize_ = base::TimeTicks(); |
98 } | 98 } |
99 | 99 |
100 } // namespace ash | 100 } // namespace ash |
OLD | NEW |