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

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

Issue 143023003: Fully support the autohide shelf option for touch UI on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 6 years, 10 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/test/event_generator.cc ('k') | ui/events/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_EVENTS_EVENT_H_ 5 #ifndef UI_EVENTS_EVENT_H_
6 #define UI_EVENTS_EVENT_H_ 6 #define UI_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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 case ET_GESTURE_BEGIN: 118 case ET_GESTURE_BEGIN:
119 case ET_GESTURE_END: 119 case ET_GESTURE_END:
120 case ET_GESTURE_TWO_FINGER_TAP: 120 case ET_GESTURE_TWO_FINGER_TAP:
121 case ET_GESTURE_PINCH_BEGIN: 121 case ET_GESTURE_PINCH_BEGIN:
122 case ET_GESTURE_PINCH_END: 122 case ET_GESTURE_PINCH_END:
123 case ET_GESTURE_PINCH_UPDATE: 123 case ET_GESTURE_PINCH_UPDATE:
124 case ET_GESTURE_LONG_PRESS: 124 case ET_GESTURE_LONG_PRESS:
125 case ET_GESTURE_LONG_TAP: 125 case ET_GESTURE_LONG_TAP:
126 case ET_GESTURE_MULTIFINGER_SWIPE: 126 case ET_GESTURE_MULTIFINGER_SWIPE:
127 case ET_GESTURE_SHOW_PRESS: 127 case ET_GESTURE_SHOW_PRESS:
128 case ET_GESTURE_WIN8_EDGE_SWIPE:
128 // When adding a gesture event which is paired with an event which 129 // When adding a gesture event which is paired with an event which
129 // occurs earlier, add the event to |IsEndingEvent|. 130 // occurs earlier, add the event to |IsEndingEvent|.
130 return true; 131 return true;
131 132
132 case ET_SCROLL_FLING_CANCEL: 133 case ET_SCROLL_FLING_CANCEL:
133 case ET_SCROLL_FLING_START: 134 case ET_SCROLL_FLING_START:
134 // These can be ScrollEvents too. EF_FROM_TOUCH determines if they're 135 // These can be ScrollEvents too. EF_FROM_TOUCH determines if they're
135 // Gesture or Scroll events. 136 // Gesture or Scroll events.
136 return (flags_ & EF_FROM_TOUCH) == EF_FROM_TOUCH; 137 return (flags_ & EF_FROM_TOUCH) == EF_FROM_TOUCH;
137 138
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 // The set of indices of ones in the binary representation of 693 // The set of indices of ones in the binary representation of
693 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture. 694 // touch_ids_bitfield_ is the set of touch_ids associate with this gesture.
694 // This value is stored as a bitfield because the number of touch ids varies, 695 // This value is stored as a bitfield because the number of touch ids varies,
695 // but we currently don't need more than 32 touches at a time. 696 // but we currently don't need more than 32 touches at a time.
696 const unsigned int touch_ids_bitfield_; 697 const unsigned int touch_ids_bitfield_;
697 }; 698 };
698 699
699 } // namespace ui 700 } // namespace ui
700 701
701 #endif // UI_EVENTS_EVENT_H_ 702 #endif // UI_EVENTS_EVENT_H_
OLDNEW
« no previous file with comments | « ui/aura/test/event_generator.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698