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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 public: | 364 public: |
365 GestureEvent(ui::EventType type, | 365 GestureEvent(ui::EventType type, |
366 int x, | 366 int x, |
367 int y, | 367 int y, |
368 int flags, | 368 int flags, |
369 base::Time time_stamp, | 369 base::Time time_stamp, |
370 float delta_x, | 370 float delta_x, |
371 float delta_y, | 371 float delta_y, |
372 unsigned int touch_ids_bitfield); | 372 unsigned int touch_ids_bitfield); |
373 | 373 |
374 // Create a new TouchEvent which is identical to the provided model. | 374 // Create a new GestureEvent which is identical to the provided model. |
375 // If source / target windows are provided, the model location will be | 375 // If source / target windows are provided, the model location will be |
376 // converted from |source| coordinate system to |target| coordinate system. | 376 // converted from |source| coordinate system to |target| coordinate system. |
377 GestureEvent(const GestureEvent& model, Window* source, Window* target); | 377 GestureEvent(const GestureEvent& model, Window* source, Window* target); |
378 | 378 |
379 virtual ~GestureEvent(); | 379 virtual ~GestureEvent(); |
380 | 380 |
381 float delta_x() const { return delta_x_; } | 381 float delta_x() const { return delta_x_; } |
382 float delta_y() const { return delta_y_; } | 382 float delta_y() const { return delta_y_; } |
383 | 383 |
384 // Returns the lowest touch-id of any of the touches which make up this | 384 // Returns the lowest touch-id of any of the touches which make up this |
(...skipping 10 matching lines...) Expand all Loading... |
395 // This value is stored as a bitfield because the number of touch ids varies, | 395 // This value is stored as a bitfield because the number of touch ids varies, |
396 // but we currently don't need more than 32 touches at a time. | 396 // but we currently don't need more than 32 touches at a time. |
397 const unsigned int touch_ids_bitfield_; | 397 const unsigned int touch_ids_bitfield_; |
398 | 398 |
399 DISALLOW_COPY_AND_ASSIGN(GestureEvent); | 399 DISALLOW_COPY_AND_ASSIGN(GestureEvent); |
400 }; | 400 }; |
401 | 401 |
402 } // namespace aura | 402 } // namespace aura |
403 | 403 |
404 #endif // UI_AURA_EVENT_H_ | 404 #endif // UI_AURA_EVENT_H_ |
OLD | NEW |