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

Side by Side Diff: ui/aura/event.h

Issue 10816008: ash: Record some additional information about the gestures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/aura/event.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/aura/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698