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 ASH_WM_STYLUS_METRICS_RECORDER_H_ | |
6 #define ASH_WM_STYLUS_METRICS_RECORDER_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/macros.h" | |
11 #include "ui/events/event_handler.h" | |
12 | |
13 namespace ash { | |
14 | |
15 // An event recorder that record stylus related metrics. | |
16 class StylusMetricsRecorder : public ui::EventHandler { | |
17 public: | |
18 StylusMetricsRecorder(); | |
19 ~StylusMetricsRecorder() override; | |
20 | |
21 private: | |
22 // ui::EventHandler: | |
23 void OnMouseEvent(ui::MouseEvent* event) override; | |
24 void OnTouchEvent(ui::TouchEvent* event) override; | |
25 | |
26 void RecordUMA(ui::EventPointerType type); | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(StylusMetricsRecorder); | |
29 }; | |
30 | |
31 } // namespace ash | |
32 | |
33 #endif // ASH_WM_STYLUS_METRICS_RECORDER_H_ | |
OLD | NEW |