OLD | NEW |
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/base/event.h" | 5 #include "ui/base/event.h" |
6 | 6 |
7 #if defined(USE_X11) | 7 #if defined(USE_X11) |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 int GestureEventImpl::GetLowestTouchId() const { | 419 int GestureEventImpl::GetLowestTouchId() const { |
420 if (touch_ids_bitfield_ == 0) | 420 if (touch_ids_bitfield_ == 0) |
421 return -1; | 421 return -1; |
422 int i = -1; | 422 int i = -1; |
423 // Find the index of the least significant 1 bit | 423 // Find the index of the least significant 1 bit |
424 while (!(1 << ++i & touch_ids_bitfield_)); | 424 while (!(1 << ++i & touch_ids_bitfield_)); |
425 return i; | 425 return i; |
426 } | 426 } |
427 | 427 |
428 } // namespace ui | 428 } // namespace ui |
OLD | NEW |