OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_ASH_COMMON_METRICS_POINTER_METRICS_RECORDER_H_ | |
6 #define UI_ASH_COMMON_METRICS_POINTER_METRICS_RECORDER_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "base/macros.h" | |
10 #include "ui/views/pointer_watcher.h" | |
11 | |
12 namespace gfx { | |
13 class Point; | |
14 } | |
15 | |
16 namespace ui { | |
17 class PointerEvent; | |
18 } | |
19 | |
20 namespace ash { | |
21 | |
22 // A metrics recorder that records pointer related metrics. | |
23 class ASH_EXPORT PointerMetricsRecorder : public views::PointerWatcher { | |
24 public: | |
25 PointerMetricsRecorder(); | |
26 ~PointerMetricsRecorder() override; | |
27 | |
28 // views::PointerWatcher: | |
29 void OnPointerEventObserved(const ui::PointerEvent& event, | |
30 const gfx::Point& location_in_screen, | |
31 views::Widget* target) override; | |
32 | |
33 private: | |
34 DISALLOW_COPY_AND_ASSIGN(PointerMetricsRecorder); | |
35 }; | |
36 | |
37 } // namespace ash | |
38 | |
39 #endif // UI_ASH_COMMON_METRICS_POINTER_METRICS_RECORDER_H_ | |
OLD | NEW |