| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_TOUCH_TOUCH_OBSERVER_UMA_H_ | 5 #ifndef ASH_TOUCH_TOUCH_OBSERVER_UMA_H_ |
| 6 #define ASH_TOUCH_TOUCH_OBSERVER_UMA_H_ | 6 #define ASH_TOUCH_TOUCH_OBSERVER_UMA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 11 #include "ui/aura/event_filter.h" | 11 #include "ui/aura/event_filter.h" |
| 12 #include "ui/gfx/point.h" | 12 #include "ui/gfx/point.h" |
| 13 #include "ui/views/widget/widget.h" | 13 #include "ui/views/widget/widget.h" |
| 14 | 14 |
| 15 namespace aura { | 15 namespace aura { |
| 16 class Window; | 16 class Window; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace ash { | 19 namespace ash { |
| 20 namespace internal { | 20 namespace internal { |
| 21 | 21 |
| 22 // Records some touch/gesture event specific details (e.g. what gestures are | 22 // Records some touch/gesture event specific details (e.g. what gestures are |
| 23 // targetted to which components etc.) | 23 // targetted to which components etc.) |
| 24 class TouchUMA { | 24 class TouchUMA { |
| 25 public: | 25 public: |
| 26 TouchUMA(); | 26 TouchUMA(); |
| 27 ~TouchUMA(); | 27 ~TouchUMA(); |
| 28 | 28 |
| 29 void RecordGestureEvent(aura::Window* target, | 29 void RecordGestureEvent(aura::Window* target, |
| 30 const ui::GestureEventImpl& event); | 30 const ui::GestureEvent& event); |
| 31 void RecordTouchEvent(aura::Window* target, | 31 void RecordTouchEvent(aura::Window* target, |
| 32 const ui::TouchEvent& event); | 32 const ui::TouchEvent& event); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(TouchUMA); | 35 DISALLOW_COPY_AND_ASSIGN(TouchUMA); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace internal | 38 } // namespace internal |
| 39 } // namespace ash | 39 } // namespace ash |
| 40 | 40 |
| 41 #endif // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_ | 41 #endif // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_ |
| OLD | NEW |