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

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

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/events/event.h ('k') | ui/events/event_constants.h » ('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 #include "ui/events/event.h" 5 #include "ui/events/event.h"
6 6
7 #if defined(USE_X11) 7 #if defined(USE_X11)
8 #include <X11/extensions/XInput2.h> 8 #include <X11/extensions/XInput2.h>
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 #endif 10 #endif
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 CASE_TYPE(ET_TOUCH_MOVED); 67 CASE_TYPE(ET_TOUCH_MOVED);
68 CASE_TYPE(ET_TOUCH_STATIONARY); 68 CASE_TYPE(ET_TOUCH_STATIONARY);
69 CASE_TYPE(ET_TOUCH_CANCELLED); 69 CASE_TYPE(ET_TOUCH_CANCELLED);
70 CASE_TYPE(ET_DROP_TARGET_EVENT); 70 CASE_TYPE(ET_DROP_TARGET_EVENT);
71 CASE_TYPE(ET_TRANSLATED_KEY_PRESS); 71 CASE_TYPE(ET_TRANSLATED_KEY_PRESS);
72 CASE_TYPE(ET_TRANSLATED_KEY_RELEASE); 72 CASE_TYPE(ET_TRANSLATED_KEY_RELEASE);
73 CASE_TYPE(ET_GESTURE_SCROLL_BEGIN); 73 CASE_TYPE(ET_GESTURE_SCROLL_BEGIN);
74 CASE_TYPE(ET_GESTURE_SCROLL_END); 74 CASE_TYPE(ET_GESTURE_SCROLL_END);
75 CASE_TYPE(ET_GESTURE_SCROLL_UPDATE); 75 CASE_TYPE(ET_GESTURE_SCROLL_UPDATE);
76 CASE_TYPE(ET_GESTURE_SHOW_PRESS); 76 CASE_TYPE(ET_GESTURE_SHOW_PRESS);
77 CASE_TYPE(ET_GESTURE_WIN8_EDGE_SWIPE);
77 CASE_TYPE(ET_GESTURE_TAP); 78 CASE_TYPE(ET_GESTURE_TAP);
78 CASE_TYPE(ET_GESTURE_TAP_DOWN); 79 CASE_TYPE(ET_GESTURE_TAP_DOWN);
79 CASE_TYPE(ET_GESTURE_TAP_CANCEL); 80 CASE_TYPE(ET_GESTURE_TAP_CANCEL);
80 CASE_TYPE(ET_GESTURE_BEGIN); 81 CASE_TYPE(ET_GESTURE_BEGIN);
81 CASE_TYPE(ET_GESTURE_END); 82 CASE_TYPE(ET_GESTURE_END);
82 CASE_TYPE(ET_GESTURE_TWO_FINGER_TAP); 83 CASE_TYPE(ET_GESTURE_TWO_FINGER_TAP);
83 CASE_TYPE(ET_GESTURE_PINCH_BEGIN); 84 CASE_TYPE(ET_GESTURE_PINCH_BEGIN);
84 CASE_TYPE(ET_GESTURE_PINCH_END); 85 CASE_TYPE(ET_GESTURE_PINCH_END);
85 CASE_TYPE(ET_GESTURE_PINCH_UPDATE); 86 CASE_TYPE(ET_GESTURE_PINCH_UPDATE);
86 CASE_TYPE(ET_GESTURE_LONG_PRESS); 87 CASE_TYPE(ET_GESTURE_LONG_PRESS);
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 int GestureEvent::GetLowestTouchId() const { 725 int GestureEvent::GetLowestTouchId() const {
725 if (touch_ids_bitfield_ == 0) 726 if (touch_ids_bitfield_ == 0)
726 return -1; 727 return -1;
727 int i = -1; 728 int i = -1;
728 // Find the index of the least significant 1 bit 729 // Find the index of the least significant 1 bit
729 while (!(1 << ++i & touch_ids_bitfield_)); 730 while (!(1 << ++i & touch_ids_bitfield_));
730 return i; 731 return i;
731 } 732 }
732 733
733 } // namespace ui 734 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/event.h ('k') | ui/events/event_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698