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

Side by Side Diff: ash/wm/stylus_metrics_recorder.h

Issue 2331093002: UMA stats for stylus usage (Closed)
Patch Set: nit and rebase Created 4 years, 2 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/shell.cc ('k') | ash/wm/stylus_metrics_recorder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/stylus_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698