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

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

Issue 2526333002: ash: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « ash/test/ui_controls_factory_ash.h ('k') | ash/wm/boot_splash_screen_chromeos.h » ('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 "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/metrics/gesture_action_type.h" 9 #include "ash/common/metrics/gesture_action_type.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 12
13 namespace aura { 13 namespace aura {
14 class Window; 14 class Window;
15 } 15 }
16 16
17 namespace ui { 17 namespace ui {
18 class GestureEvent; 18 class GestureEvent;
19 class TouchEvent; 19 class TouchEvent;
20 } 20 }
21 21
22 namespace gfx {
23 class Point;
24 }
25
26 namespace ash { 22 namespace ash {
27 23
28 // Records some touch/gesture event specific details (e.g. what gestures are 24 // Records some touch/gesture event specific details (e.g. what gestures are
29 // targetted to which components etc.) 25 // targetted to which components etc.)
30 class ASH_EXPORT TouchUMA { 26 class ASH_EXPORT TouchUMA {
31 public: 27 public:
32 // Returns the singleton instance. 28 // Returns the singleton instance.
33 static TouchUMA* GetInstance(); 29 static TouchUMA* GetInstance();
34 30
35 void RecordGestureEvent(aura::Window* target, const ui::GestureEvent& event); 31 void RecordGestureEvent(aura::Window* target, const ui::GestureEvent& event);
(...skipping 16 matching lines...) Expand all
52 bool touch_in_progress_; 48 bool touch_in_progress_;
53 int burst_length_; 49 int burst_length_;
54 base::TimeTicks last_touch_down_time_; 50 base::TimeTicks last_touch_down_time_;
55 51
56 DISALLOW_COPY_AND_ASSIGN(TouchUMA); 52 DISALLOW_COPY_AND_ASSIGN(TouchUMA);
57 }; 53 };
58 54
59 } // namespace ash 55 } // namespace ash
60 56
61 #endif // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_ 57 #endif // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_
OLDNEW
« no previous file with comments | « ash/test/ui_controls_factory_ash.h ('k') | ash/wm/boot_splash_screen_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698