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

Side by Side Diff: ui/base/touch/touch_factory.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_TOUCH_TOUCH_FACTORY_H_ 5 #ifndef UI_BASE_TOUCH_TOUCH_FACTORY_H_
6 #define UI_BASE_TOUCH_TOUCH_FACTORY_H_ 6 #define UI_BASE_TOUCH_TOUCH_FACTORY_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/singleton.h"
13 #include "base/hash_tables.h" 12 #include "base/hash_tables.h"
14 #include "base/timer.h" 13 #include "base/timer.h"
15 #include "ui/base/ui_export.h" 14 #include "ui/base/ui_export.h"
16 15
16 template <typename T> struct DefaultSingletonTraits;
17
17 typedef unsigned long Cursor; 18 typedef unsigned long Cursor;
18 typedef unsigned long Window; 19 typedef unsigned long Window;
19 typedef struct _XDisplay Display; 20 typedef struct _XDisplay Display;
20 typedef union _XEvent XEvent; 21 typedef union _XEvent XEvent;
21 22
22 namespace ui { 23 namespace ui {
23 24
24 // Functions related to determining touch devices. 25 // Functions related to determining touch devices.
25 class UI_EXPORT TouchFactory { 26 class UI_EXPORT TouchFactory {
26 private: 27 private:
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 165
165 // A lookup table for slots in use for a touch event. 166 // A lookup table for slots in use for a touch event.
166 std::bitset<kMaxTouchPoints> slots_used_; 167 std::bitset<kMaxTouchPoints> slots_used_;
167 168
168 DISALLOW_COPY_AND_ASSIGN(TouchFactory); 169 DISALLOW_COPY_AND_ASSIGN(TouchFactory);
169 }; 170 };
170 171
171 } // namespace ui 172 } // namespace ui
172 173
173 #endif // UI_BASE_TOUCH_TOUCH_FACTORY_H_ 174 #endif // UI_BASE_TOUCH_TOUCH_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698