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

Side by Side Diff: ash/touch/touch_uma.h

Issue 10827145: Convert Aura to use ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ash/touch/touch_observer_hud.cc ('k') | ash/touch/touch_uma.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 GestureEvent;
17 class TouchEvent;
18 class Window; 16 class Window;
19 } 17 }
20 18
21 namespace ash { 19 namespace ash {
22 namespace internal { 20 namespace internal {
23 21
24 // 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
25 // targetted to which components etc.) 23 // targetted to which components etc.)
26 class TouchUMA { 24 class TouchUMA {
27 public: 25 public:
28 TouchUMA(); 26 TouchUMA();
29 ~TouchUMA(); 27 ~TouchUMA();
30 28
31 void RecordGestureEvent(aura::Window* target, 29 void RecordGestureEvent(aura::Window* target,
32 const aura::GestureEvent& event); 30 const ui::GestureEventImpl& event);
33 void RecordTouchEvent(aura::Window* target, 31 void RecordTouchEvent(aura::Window* target,
34 const aura::TouchEvent& event); 32 const ui::TouchEventImpl& event);
35 33
36 private: 34 private:
37 DISALLOW_COPY_AND_ASSIGN(TouchUMA); 35 DISALLOW_COPY_AND_ASSIGN(TouchUMA);
38 }; 36 };
39 37
40 } // namespace internal 38 } // namespace internal
41 } // namespace ash 39 } // namespace ash
42 40
43 #endif // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_ 41 #endif // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_
OLDNEW
« no previous file with comments | « ash/touch/touch_observer_hud.cc ('k') | ash/touch/touch_uma.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698