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

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

Issue 2331093002: UMA stats for stylus usage (Closed)
Patch Set: Changed ash/BUILD.gn 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
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 UI_ASH_METRICS_POINTER_METRICS_RECORDER_H_
6 #define UI_ASH_METRICS_POINTER_METRICS_RECORDER_H_
7
8 #include "base/macros.h"
9 #include "ui/views/pointer_watcher.h"
10
11 namespace gfx {
12 class Point;
13 }
14
15 namespace ui {
16 class PointerEvent;
17 }
18
19 namespace ash {
sky 2016/09/27 22:08:59 Please move this class to ash/common/metrics. Add
xiaoyinh(OOO Sep 11-29) 2016/09/29 20:37:43 Done. Also added SetAppType() in WmWindow so that
20
21 // A metrics recorder that records pointer related metrics.
22 class PointerMetricsRecorder : public views::PointerWatcher {
23 public:
24 PointerMetricsRecorder();
25 ~PointerMetricsRecorder() override;
26
27 // views::PointerWatcher:
28 void OnPointerEventObserved(const ui::PointerEvent& event,
29 const gfx::Point& location_in_screen,
30 views::Widget* target) override;
31
32 private:
33 DISALLOW_COPY_AND_ASSIGN(PointerMetricsRecorder);
34 };
35
36 } // namespace ash
37
38 #endif // UI_ASH_METRICS_POINTER_METRICS_RECORDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698