Chromium Code Reviews| 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 // ui::EventHandler: | |
|
jdufault
2016/08/24 00:24:37
Make override implementation private
xiaoyinh(OOO Sep 11-29)
2016/08/24 16:51:51
Done.
| |
| 22 void OnMouseEvent(ui::MouseEvent* event) override; | |
| 23 void OnTouchEvent(ui::TouchEvent* event) override; | |
| 24 | |
| 25 private: | |
| 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 |