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/events/event.h" | 5 #include "ui/base/events/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 |
11 #include <cmath> | 11 #include <cmath> |
12 #include <cstring> | 12 #include <cstring> |
13 | 13 |
14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
15 #include "base/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "ui/base/events/event_utils.h" | 16 #include "ui/base/events/event_utils.h" |
17 #include "ui/base/keycodes/keyboard_code_conversion.h" | 17 #include "ui/base/keycodes/keyboard_code_conversion.h" |
18 #include "ui/gfx/point3_f.h" | 18 #include "ui/gfx/point3_f.h" |
19 #include "ui/gfx/point_conversions.h" | 19 #include "ui/gfx/point_conversions.h" |
20 #include "ui/gfx/transform.h" | 20 #include "ui/gfx/transform.h" |
21 #include "ui/gfx/transform_util.h" | 21 #include "ui/gfx/transform_util.h" |
22 | 22 |
23 #if defined(USE_X11) | 23 #if defined(USE_X11) |
24 #include "ui/base/keycodes/keyboard_code_conversion_x.h" | 24 #include "ui/base/keycodes/keyboard_code_conversion_x.h" |
25 #endif | 25 #endif |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 int GestureEvent::GetLowestTouchId() const { | 732 int GestureEvent::GetLowestTouchId() const { |
733 if (touch_ids_bitfield_ == 0) | 733 if (touch_ids_bitfield_ == 0) |
734 return -1; | 734 return -1; |
735 int i = -1; | 735 int i = -1; |
736 // Find the index of the least significant 1 bit | 736 // Find the index of the least significant 1 bit |
737 while (!(1 << ++i & touch_ids_bitfield_)); | 737 while (!(1 << ++i & touch_ids_bitfield_)); |
738 return i; | 738 return i; |
739 } | 739 } |
740 | 740 |
741 } // namespace ui | 741 } // namespace ui |
OLD | NEW |