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

Side by Side Diff: ash/shelf/shelf_button_pressed_metric_tracker.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/shelf/shelf_button.cc ('k') | ash/shelf/shelf_button_pressed_metric_tracker_unittest.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 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/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
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
OLDNEW
« no previous file with comments | « ash/shelf/shelf_button.cc ('k') | ash/shelf/shelf_button_pressed_metric_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698