OLD | NEW |
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_EVENTS_EVENT_UTILS_H_ | 5 #ifndef UI_EVENTS_EVENT_UTILS_H_ |
6 #define UI_EVENTS_EVENT_UTILS_H_ | 6 #define UI_EVENTS_EVENT_UTILS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/event_types.h" | 9 #include "base/event_types.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 namespace gfx { | 22 namespace gfx { |
23 class Point; | 23 class Point; |
24 class Vector2d; | 24 class Vector2d; |
25 } | 25 } |
26 | 26 |
27 namespace base { | 27 namespace base { |
28 class TimeDelta; | 28 class TimeDelta; |
29 } | 29 } |
30 | 30 |
| 31 // Common functions to be used for all platforms except Android. |
31 namespace ui { | 32 namespace ui { |
32 | 33 |
33 class Event; | 34 class Event; |
34 class MouseEvent; | 35 class MouseEvent; |
35 enum class DomCode; | 36 enum class DomCode; |
36 | 37 |
37 // Updates the list of devices for cached properties. | 38 // Updates the list of devices for cached properties. |
38 EVENTS_EXPORT void UpdateDeviceList(); | 39 EVENTS_EXPORT void UpdateDeviceList(); |
39 | 40 |
40 // Returns a ui::Event wrapping a native event. Ownership of the returned value | 41 // Returns a ui::Event wrapping a native event. Ownership of the returned value |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // Update the native X11 event to correspond to the new button flags. | 173 // Update the native X11 event to correspond to the new button flags. |
173 EVENTS_EXPORT void UpdateX11EventForChangedButtonFlags(MouseEvent* event); | 174 EVENTS_EXPORT void UpdateX11EventForChangedButtonFlags(MouseEvent* event); |
174 #endif | 175 #endif |
175 | 176 |
176 // Registers a custom event type. | 177 // Registers a custom event type. |
177 EVENTS_EXPORT int RegisterCustomEventType(); | 178 EVENTS_EXPORT int RegisterCustomEventType(); |
178 | 179 |
179 } // namespace ui | 180 } // namespace ui |
180 | 181 |
181 #endif // UI_EVENTS_EVENT_UTILS_H_ | 182 #endif // UI_EVENTS_EVENT_UTILS_H_ |
OLD | NEW |