| 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/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 <cstring> | 11 #include <cstring> |
| 12 | 12 |
| 13 #include "ui/base/keycodes/keyboard_code_conversion.h" | 13 #include "ui/base/keycodes/keyboard_code_conversion.h" |
| 14 #include "ui/gfx/interpolated_transform.h" |
| 14 #include "ui/gfx/point3.h" | 15 #include "ui/gfx/point3.h" |
| 15 #include "ui/gfx/interpolated_transform.h" | |
| 16 #include "ui/gfx/transform.h" | 16 #include "ui/gfx/transform.h" |
| 17 | 17 |
| 18 #if defined(USE_X11) | 18 #if defined(USE_X11) |
| 19 #include "ui/base/keycodes/keyboard_code_conversion_x.h" | 19 #include "ui/base/keycodes/keyboard_code_conversion_x.h" |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { | 24 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { |
| 25 #if defined(USE_X11) | 25 #if defined(USE_X11) |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 int GestureEvent::GetLowestTouchId() const { | 489 int GestureEvent::GetLowestTouchId() const { |
| 490 if (touch_ids_bitfield_ == 0) | 490 if (touch_ids_bitfield_ == 0) |
| 491 return -1; | 491 return -1; |
| 492 int i = -1; | 492 int i = -1; |
| 493 // Find the index of the least significant 1 bit | 493 // Find the index of the least significant 1 bit |
| 494 while (!(1 << ++i & touch_ids_bitfield_)); | 494 while (!(1 << ++i & touch_ids_bitfield_)); |
| 495 return i; | 495 return i; |
| 496 } | 496 } |
| 497 | 497 |
| 498 } // namespace ui | 498 } // namespace ui |
| OLD | NEW |