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

Side by Side Diff: ash/metrics/pointer_metrics_recorder.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/metrics/pointer_metrics_recorder.h" 5 #include "ash/metrics/pointer_metrics_recorder.h"
6 6
7 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
8 #include "ash/common/wm_shell.h"
9 #include "ash/common/wm_window.h"
10 #include "ash/shared/app_types.h" 7 #include "ash/shared/app_types.h"
8 #include "ash/wm/maximize_mode/maximize_mode_controller.h"
9 #include "ash/wm_shell.h"
10 #include "ash/wm_window.h"
11 #include "base/metrics/histogram_macros.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "ui/events/event_constants.h" 12 #include "ui/events/event_constants.h"
13 #include "ui/views/widget/widget.h" 13 #include "ui/views/widget/widget.h"
14 14
15 namespace ash { 15 namespace ash {
16 16
17 namespace { 17 namespace {
18 18
19 // Form factor of the down event. This enum is used to back an UMA histogram 19 // Form factor of the down event. This enum is used to back an UMA histogram
20 // and new values should be inserted immediately above FORM_FACTOR_COUNT. 20 // and new values should be inserted immediately above FORM_FACTOR_COUNT.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 void PointerMetricsRecorder::OnPointerEventObserved( 98 void PointerMetricsRecorder::OnPointerEventObserved(
99 const ui::PointerEvent& event, 99 const ui::PointerEvent& event,
100 const gfx::Point& location_in_screen, 100 const gfx::Point& location_in_screen,
101 views::Widget* target) { 101 views::Widget* target) {
102 if (event.type() == ui::ET_POINTER_DOWN) 102 if (event.type() == ui::ET_POINTER_DOWN)
103 RecordUMA(event.pointer_details().pointer_type, target); 103 RecordUMA(event.pointer_details().pointer_type, target);
104 } 104 }
105 105
106 } // namespace ash 106 } // namespace ash
OLDNEW
« no previous file with comments | « ash/metrics/pointer_metrics_recorder.h ('k') | ash/metrics/pointer_metrics_recorder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698