1 // Copyright (c) 2012 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.
5 #ifndef ASH_TOUCH_TOUCH_OBSERVER_UMA_H_
6 #define ASH_TOUCH_TOUCH_OBSERVER_UMA_H_
10 #include "ash/shell.h"
11 #include "ui/gfx/point.h"
12 #include "ui/views/widget/widget.h"
21 // Records some touch/gesture event specific details (e.g. what gestures are
22 // targetted to which components etc.)
28 void RecordGestureEvent(aura::Window
* target
,
29 const ui::GestureEvent
& event
);
30 void RecordTouchEvent(aura::Window
* target
,
31 const ui::TouchEvent
& event
);
34 void UpdateBurstData(const ui::TouchEvent
& event
);
36 // These are used to measure the number of touch-start events we receive in a
37 // quick succession, regardless of the target window.
38 bool touch_in_progress_
;
40 base::TimeDelta last_touch_down_time_
;
42 DISALLOW_COPY_AND_ASSIGN(TouchUMA
);
45 } // namespace internal
48 #endif // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_