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

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

Issue 10834269: gestures: Some more event cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 4 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 | « ui/aura/root_window.cc ('k') | ui/base/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_BASE_EVENT_H_ 5 #ifndef UI_BASE_EVENT_H_
6 #define UI_BASE_EVENT_H_ 6 #define UI_BASE_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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 DISALLOW_COPY_AND_ASSIGN(ScrollEvent); 372 DISALLOW_COPY_AND_ASSIGN(ScrollEvent);
373 }; 373 };
374 374
375 class UI_EXPORT GestureEvent : public LocatedEvent { 375 class UI_EXPORT GestureEvent : public LocatedEvent {
376 public: 376 public:
377 GestureEvent(EventType type, 377 GestureEvent(EventType type,
378 int x, 378 int x,
379 int y, 379 int y,
380 int flags, 380 int flags,
381 base::Time time_stamp, 381 base::TimeDelta time_stamp,
382 const GestureEventDetails& details, 382 const GestureEventDetails& details,
383 unsigned int touch_ids_bitfield); 383 unsigned int touch_ids_bitfield);
384 384
385 // Create a new GestureEvent which is identical to the provided model. 385 // Create a new GestureEvent which is identical to the provided model.
386 // If source / target windows are provided, the model location will be 386 // If source / target windows are provided, the model location will be
387 // converted from |source| coordinate system to |target| coordinate system. 387 // converted from |source| coordinate system to |target| coordinate system.
388 template <typename T> 388 template <typename T>
389 GestureEvent(const GestureEvent& model, T* source, T* target) 389 GestureEvent(const GestureEvent& model, T* source, T* target)
390 : LocatedEvent(model, source, target), 390 : LocatedEvent(model, source, target),
391 details_(model.details_), 391 details_(model.details_),
(...skipping 16 matching lines...) Expand all
408 // This value is stored as a bitfield because the number of touch ids varies, 408 // This value is stored as a bitfield because the number of touch ids varies,
409 // but we currently don't need more than 32 touches at a time. 409 // but we currently don't need more than 32 touches at a time.
410 const unsigned int touch_ids_bitfield_; 410 const unsigned int touch_ids_bitfield_;
411 411
412 DISALLOW_COPY_AND_ASSIGN(GestureEvent); 412 DISALLOW_COPY_AND_ASSIGN(GestureEvent);
413 }; 413 };
414 414
415 } // namespace ui 415 } // namespace ui
416 416
417 #endif // UI_BASE_EVENT_H_ 417 #endif // UI_BASE_EVENT_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/base/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698