OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_EVENTS_EVENT_H_ | 5 #ifndef VIEWS_EVENTS_EVENT_H_ |
6 #define VIEWS_EVENTS_EVENT_H_ | 6 #define VIEWS_EVENTS_EVENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // TODO(msw): Remove GTK support from views event code when possible. | 26 // TODO(msw): Remove GTK support from views event code when possible. |
27 #if defined(TOOLKIT_USES_GTK) | 27 #if defined(TOOLKIT_USES_GTK) |
28 typedef union _GdkEvent GdkEvent; | 28 typedef union _GdkEvent GdkEvent; |
29 #endif | 29 #endif |
30 | 30 |
31 namespace views { | 31 namespace views { |
32 | 32 |
33 #if defined(USE_AURA) | 33 #if defined(USE_AURA) |
34 typedef aura::Event* NativeEvent; | 34 typedef aura::Event* NativeEvent; |
35 #else | 35 #else |
36 typedef ui::NativeEvent NativeEvent; | 36 typedef base::NativeEvent NativeEvent; |
37 #endif | 37 #endif |
38 | 38 |
39 class View; | 39 class View; |
40 | 40 |
41 namespace internal { | 41 namespace internal { |
42 class NativeWidgetView; | 42 class NativeWidgetView; |
43 class RootView; | 43 class RootView; |
44 } | 44 } |
45 | 45 |
46 //////////////////////////////////////////////////////////////////////////////// | 46 //////////////////////////////////////////////////////////////////////////////// |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 // | 236 // |
237 // TouchEvent class | 237 // TouchEvent class |
238 // | 238 // |
239 // A touch event is generated by touch screen and advanced track | 239 // A touch event is generated by touch screen and advanced track |
240 // pad devices. There is a deliberate direct correspondence between | 240 // pad devices. There is a deliberate direct correspondence between |
241 // TouchEvent and PlatformTouchPoint. | 241 // TouchEvent and PlatformTouchPoint. |
242 // | 242 // |
243 //////////////////////////////////////////////////////////////////////////////// | 243 //////////////////////////////////////////////////////////////////////////////// |
244 class VIEWS_EXPORT TouchEvent : public LocatedEvent { | 244 class VIEWS_EXPORT TouchEvent : public LocatedEvent { |
245 public: | 245 public: |
246 explicit TouchEvent(const NativeEvent& native_event); | 246 explicit TouchEvent(const base::NativeEvent& native_event); |
247 | 247 |
248 // Create a new touch event. | 248 // Create a new touch event. |
249 TouchEvent(ui::EventType type, | 249 TouchEvent(ui::EventType type, |
250 int x, | 250 int x, |
251 int y, | 251 int y, |
252 int flags, | 252 int flags, |
253 int touch_id, | 253 int touch_id, |
254 float radius_x, | 254 float radius_x, |
255 float radius_y, | 255 float radius_y, |
256 float angle, | 256 float angle, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 | 430 |
431 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. | 431 // Bitmask of supported ui::DragDropTypes::DragOperation by the source. |
432 int source_operations_; | 432 int source_operations_; |
433 | 433 |
434 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); | 434 DISALLOW_COPY_AND_ASSIGN(DropTargetEvent); |
435 }; | 435 }; |
436 | 436 |
437 } // namespace views | 437 } // namespace views |
438 | 438 |
439 #endif // VIEWS_EVENTS_EVENT_H_ | 439 #endif // VIEWS_EVENTS_EVENT_H_ |
OLD | NEW |