summaryrefslogtreecommitdiffstats
path: root/ash/touch/touch_uma.h
blob: 94e1164626f74ae902c9ecf9e47366565104acea (plain)
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
40
41
// Copyright (c) 2012 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 ASH_TOUCH_TOUCH_OBSERVER_UMA_H_
#define ASH_TOUCH_TOUCH_OBSERVER_UMA_H_

#include <map>

#include "ash/shell.h"
#include "ui/aura/event_filter.h"
#include "ui/gfx/point.h"
#include "ui/views/widget/widget.h"

namespace aura {
class Window;
}

namespace ash {
namespace internal {

// Records some touch/gesture event specific details (e.g. what gestures are
// targetted to which components etc.)
class TouchUMA {
 public:
  TouchUMA();
  ~TouchUMA();

  void RecordGestureEvent(aura::Window* target,
                          const ui::GestureEvent& event);
  void RecordTouchEvent(aura::Window* target,
                        const ui::TouchEvent& event);

 private:
  DISALLOW_COPY_AND_ASSIGN(TouchUMA);
};

}  // namespace internal
}  // namespace ash

#endif  // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_