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

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

Issue 268483004: events: Remove stationary touch-event type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 29 matching lines...) Expand all
40 CASE_TYPE(ET_MOUSE_MOVED); 40 CASE_TYPE(ET_MOUSE_MOVED);
41 CASE_TYPE(ET_MOUSE_ENTERED); 41 CASE_TYPE(ET_MOUSE_ENTERED);
42 CASE_TYPE(ET_MOUSE_EXITED); 42 CASE_TYPE(ET_MOUSE_EXITED);
43 CASE_TYPE(ET_KEY_PRESSED); 43 CASE_TYPE(ET_KEY_PRESSED);
44 CASE_TYPE(ET_KEY_RELEASED); 44 CASE_TYPE(ET_KEY_RELEASED);
45 CASE_TYPE(ET_MOUSEWHEEL); 45 CASE_TYPE(ET_MOUSEWHEEL);
46 CASE_TYPE(ET_MOUSE_CAPTURE_CHANGED); 46 CASE_TYPE(ET_MOUSE_CAPTURE_CHANGED);
47 CASE_TYPE(ET_TOUCH_RELEASED); 47 CASE_TYPE(ET_TOUCH_RELEASED);
48 CASE_TYPE(ET_TOUCH_PRESSED); 48 CASE_TYPE(ET_TOUCH_PRESSED);
49 CASE_TYPE(ET_TOUCH_MOVED); 49 CASE_TYPE(ET_TOUCH_MOVED);
50 CASE_TYPE(ET_TOUCH_STATIONARY);
51 CASE_TYPE(ET_TOUCH_CANCELLED); 50 CASE_TYPE(ET_TOUCH_CANCELLED);
52 CASE_TYPE(ET_DROP_TARGET_EVENT); 51 CASE_TYPE(ET_DROP_TARGET_EVENT);
53 CASE_TYPE(ET_TRANSLATED_KEY_PRESS); 52 CASE_TYPE(ET_TRANSLATED_KEY_PRESS);
54 CASE_TYPE(ET_TRANSLATED_KEY_RELEASE); 53 CASE_TYPE(ET_TRANSLATED_KEY_RELEASE);
55 CASE_TYPE(ET_GESTURE_SCROLL_BEGIN); 54 CASE_TYPE(ET_GESTURE_SCROLL_BEGIN);
56 CASE_TYPE(ET_GESTURE_SCROLL_END); 55 CASE_TYPE(ET_GESTURE_SCROLL_END);
57 CASE_TYPE(ET_GESTURE_SCROLL_UPDATE); 56 CASE_TYPE(ET_GESTURE_SCROLL_UPDATE);
58 CASE_TYPE(ET_GESTURE_SHOW_PRESS); 57 CASE_TYPE(ET_GESTURE_SHOW_PRESS);
59 CASE_TYPE(ET_GESTURE_WIN8_EDGE_SWIPE); 58 CASE_TYPE(ET_GESTURE_WIN8_EDGE_SWIPE);
60 CASE_TYPE(ET_GESTURE_TAP); 59 CASE_TYPE(ET_GESTURE_TAP);
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 int GestureEvent::GetLowestTouchId() const { 695 int GestureEvent::GetLowestTouchId() const {
697 if (touch_ids_bitfield_ == 0) 696 if (touch_ids_bitfield_ == 0)
698 return -1; 697 return -1;
699 int i = -1; 698 int i = -1;
700 // Find the index of the least significant 1 bit 699 // Find the index of the least significant 1 bit
701 while (!(1 << ++i & touch_ids_bitfield_)); 700 while (!(1 << ++i & touch_ids_bitfield_));
702 return i; 701 return i;
703 } 702 }
704 703
705 } // namespace ui 704 } // 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