| 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_AURA_EVENT_H_ | 5 #ifndef UI_AURA_EVENT_H_ |
| 6 #define UI_AURA_EVENT_H_ | 6 #define UI_AURA_EVENT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 }; | 359 }; |
| 360 | 360 |
| 361 class AURA_EXPORT GestureEvent : public LocatedEvent, | 361 class AURA_EXPORT GestureEvent : public LocatedEvent, |
| 362 public ui::GestureEvent { | 362 public ui::GestureEvent { |
| 363 public: | 363 public: |
| 364 GestureEvent(ui::EventType type, | 364 GestureEvent(ui::EventType type, |
| 365 int x, | 365 int x, |
| 366 int y, | 366 int y, |
| 367 int flags, | 367 int flags, |
| 368 base::Time time_stamp, | 368 base::Time time_stamp, |
| 369 float delta_x, | 369 const ui::GestureEventDetails& details, |
| 370 float delta_y, | |
| 371 unsigned int touch_ids_bitfield); | 370 unsigned int touch_ids_bitfield); |
| 372 | 371 |
| 373 // Create a new GestureEvent which is identical to the provided model. | 372 // Create a new GestureEvent which is identical to the provided model. |
| 374 // If source / target windows are provided, the model location will be | 373 // If source / target windows are provided, the model location will be |
| 375 // converted from |source| coordinate system to |target| coordinate system. | 374 // converted from |source| coordinate system to |target| coordinate system. |
| 376 GestureEvent(const GestureEvent& model, Window* source, Window* target); | 375 GestureEvent(const GestureEvent& model, Window* source, Window* target); |
| 377 | 376 |
| 378 virtual ~GestureEvent(); | 377 virtual ~GestureEvent(); |
| 379 | 378 |
| 380 const ui::GestureEventDetails& details() const { return details_; } | 379 const ui::GestureEventDetails& details() const { return details_; } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 392 // This value is stored as a bitfield because the number of touch ids varies, | 391 // This value is stored as a bitfield because the number of touch ids varies, |
| 393 // but we currently don't need more than 32 touches at a time. | 392 // but we currently don't need more than 32 touches at a time. |
| 394 const unsigned int touch_ids_bitfield_; | 393 const unsigned int touch_ids_bitfield_; |
| 395 | 394 |
| 396 DISALLOW_COPY_AND_ASSIGN(GestureEvent); | 395 DISALLOW_COPY_AND_ASSIGN(GestureEvent); |
| 397 }; | 396 }; |
| 398 | 397 |
| 399 } // namespace aura | 398 } // namespace aura |
| 400 | 399 |
| 401 #endif // UI_AURA_EVENT_H_ | 400 #endif // UI_AURA_EVENT_H_ |
| OLD | NEW |