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

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

Issue 22865036: Add support for reposting the ET_GESTURE_TAP_DOWN gesture event to the RootWindow and in the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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
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_EVENTS_EVENT_H_ 5 #ifndef UI_BASE_EVENTS_EVENT_H_
6 #define UI_BASE_EVENTS_EVENT_H_ 6 #define UI_BASE_EVENTS_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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 } 695 }
696 696
697 virtual ~GestureEvent(); 697 virtual ~GestureEvent();
698 698
699 const GestureEventDetails& details() const { return details_; } 699 const GestureEventDetails& details() const { return details_; }
700 700
701 // Returns the lowest touch-id of any of the touches which make up this 701 // Returns the lowest touch-id of any of the touches which make up this
702 // gesture. If there are no touches associated with this gesture, returns -1. 702 // gesture. If there are no touches associated with this gesture, returns -1.
703 int GetLowestTouchId() const; 703 int GetLowestTouchId() const;
704 704
705 unsigned int touch_ids_bitfield() const {
706 return touch_ids_bitfield_;
707 }
708
705 private: 709 private:
706 GestureEventDetails details_; 710 GestureEventDetails details_;
707 711
708 // The set of indices of ones in the binary representation of 712 // The set of indices of ones in the binary representation of
709 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture. 713 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture.
710 // This value is stored as a bitfield because the number of touch ids varies, 714 // This value is stored as a bitfield because the number of touch ids varies,
711 // but we currently don't need more than 32 touches at a time. 715 // but we currently don't need more than 32 touches at a time.
712 const unsigned int touch_ids_bitfield_; 716 const unsigned int touch_ids_bitfield_;
713
714 DISALLOW_COPY_AND_ASSIGN(GestureEvent);
715 }; 717 };
716 718
717 } // namespace ui 719 } // namespace ui
718 720
719 #endif // UI_BASE_EVENTS_EVENT_H_ 721 #endif // UI_BASE_EVENTS_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698