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

Side by Side Diff: ui/base/x/valuators.h

Issue 10795024: ui: Forward declare DefaultSingletonTraits in header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
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 UI_BASE_X_VALUATORS_H_ 5 #ifndef UI_BASE_X_VALUATORS_H_
6 #define UI_BASE_X_VALUATORS_H_ 6 #define UI_BASE_X_VALUATORS_H_
7 7
8 #include <map> 8 #include "base/basictypes.h"
9 9
10 #include "base/memory/singleton.h" 10 template <typename T> struct DefaultSingletonTraits;
11 11
12 typedef union _XEvent XEvent; 12 typedef union _XEvent XEvent;
13 13
14 namespace ui { 14 namespace ui {
15 15
16 // A valuator is not reported in an XEvent if it hasn't changed from the 16 // A valuator is not reported in an XEvent if it hasn't changed from the
17 // previous event from the same device. As a result, it is necessary to track 17 // previous event from the same device. As a result, it is necessary to track
18 // the last reported valuator values for a specific device. 18 // the last reported valuator values for a specific device.
19 // Right now, this is only used to keep track of valuators for events coming in 19 // Right now, this is only used to keep track of valuators for events coming in
20 // from touch-devices, but it can be used for other devices as well. 20 // from touch-devices, but it can be used for other devices as well.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // a device. Defaults to 0 if the valuator was not specified in an earlier 104 // a device. Defaults to 0 if the valuator was not specified in an earlier
105 // event. 105 // event.
106 float last_seen_valuator_[kMaxDeviceNum][VAL_LAST_ENTRY]; 106 float last_seen_valuator_[kMaxDeviceNum][VAL_LAST_ENTRY];
107 107
108 DISALLOW_COPY_AND_ASSIGN(ValuatorTracker); 108 DISALLOW_COPY_AND_ASSIGN(ValuatorTracker);
109 }; 109 };
110 110
111 } // namespace ui 111 } // namespace ui
112 112
113 #endif // UI_BASE_X_VALUATORS_H_ 113 #endif // UI_BASE_X_VALUATORS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698