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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
« no previous file with comments | « apps/saved_files_service_factory.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"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Returns the singleton instance. 53 // Returns the singleton instance.
54 static TouchUMA* GetInstance(); 54 static TouchUMA* GetInstance();
55 55
56 void RecordGestureEvent(aura::Window* target, 56 void RecordGestureEvent(aura::Window* target,
57 const ui::GestureEvent& event); 57 const ui::GestureEvent& event);
58 void RecordGestureAction(GestureActionType action); 58 void RecordGestureAction(GestureActionType action);
59 void RecordTouchEvent(aura::Window* target, 59 void RecordTouchEvent(aura::Window* target,
60 const ui::TouchEvent& event); 60 const ui::TouchEvent& event);
61 61
62 private: 62 private:
63 friend struct DefaultSingletonTraits<TouchUMA>; 63 friend struct base::DefaultSingletonTraits<TouchUMA>;
64 64
65 TouchUMA(); 65 TouchUMA();
66 ~TouchUMA(); 66 ~TouchUMA();
67 67
68 void UpdateTouchState(const ui::TouchEvent& event); 68 void UpdateTouchState(const ui::TouchEvent& event);
69 GestureActionType FindGestureActionType(aura::Window* window, 69 GestureActionType FindGestureActionType(aura::Window* window,
70 const ui::GestureEvent& event); 70 const ui::GestureEvent& event);
71 71
72 bool is_single_finger_gesture_; 72 bool is_single_finger_gesture_;
73 // These are used to measure the number of touch-start events we receive in a 73 // These are used to measure the number of touch-start events we receive in a
74 // quick succession, regardless of the target window. 74 // quick succession, regardless of the target window.
75 bool touch_in_progress_; 75 bool touch_in_progress_;
76 int burst_length_; 76 int burst_length_;
77 base::TimeDelta last_touch_down_time_; 77 base::TimeDelta last_touch_down_time_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(TouchUMA); 79 DISALLOW_COPY_AND_ASSIGN(TouchUMA);
80 }; 80 };
81 81
82 } // namespace ash 82 } // namespace ash
83 83
84 #endif // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_ 84 #endif // ASH_TOUCH_TOUCH_OBSERVER_UMA_H_
OLDNEW
« no previous file with comments | « apps/saved_files_service_factory.cc ('k') | ash/touch/touch_uma.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698