forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpointer_metrics_recorder.h
39 lines (29 loc) · 1020 Bytes
/
pointer_metrics_recorder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_ASH_METRICS_POINTER_METRICS_RECORDER_H_
#define UI_ASH_METRICS_POINTER_METRICS_RECORDER_H_
#include "ash/ash_export.h"
#include "base/macros.h"
#include "ui/views/pointer_watcher.h"
namespace gfx {
class Point;
}
namespace ui {
class PointerEvent;
}
namespace ash {
// A metrics recorder that records pointer related metrics.
class ASH_EXPORT PointerMetricsRecorder : public views::PointerWatcher {
public:
PointerMetricsRecorder();
~PointerMetricsRecorder() override;
// views::PointerWatcher:
void OnPointerEventObserved(const ui::PointerEvent& event,
const gfx::Point& location_in_screen,
gfx::NativeView target) override;
private:
DISALLOW_COPY_AND_ASSIGN(PointerMetricsRecorder);
};
} // namespace ash
#endif // UI_ASH_METRICS_POINTER_METRICS_RECORDER_H_