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/events/event_constants.h" | 5 #include "ui/events/event_constants.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <X11/extensions/XInput.h> | 9 #include <X11/extensions/XInput.h> |
10 #include <X11/extensions/XInput2.h> | 10 #include <X11/extensions/XInput2.h> |
11 #include <X11/Xlib.h> | 11 #include <X11/Xlib.h> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 15 #include "base/message_loop/message_pump_x11.h" |
15 #include "ui/events/event_utils.h" | 16 #include "ui/events/event_utils.h" |
16 #include "ui/events/keycodes/keyboard_code_conversion_x.h" | 17 #include "ui/events/keycodes/keyboard_code_conversion_x.h" |
17 #include "ui/events/x/device_data_manager.h" | 18 #include "ui/events/x/device_data_manager.h" |
18 #include "ui/events/x/device_list_cache_x.h" | 19 #include "ui/events/x/device_list_cache_x.h" |
19 #include "ui/events/x/touch_factory_x11.h" | 20 #include "ui/events/x/touch_factory_x11.h" |
20 #include "ui/gfx/display.h" | 21 #include "ui/gfx/display.h" |
21 #include "ui/gfx/point.h" | 22 #include "ui/gfx/point.h" |
22 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
23 #include "ui/gfx/screen.h" | 24 #include "ui/gfx/screen.h" |
24 #include "ui/gfx/x/x11_atom_cache.h" | 25 #include "ui/gfx/x/x11_atom_cache.h" |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 DeviceDataManager::GetInstance()->GetGestureTimes( | 665 DeviceDataManager::GetInstance()->GetGestureTimes( |
665 native_event, start_time, end_time); | 666 native_event, start_time, end_time); |
666 return true; | 667 return true; |
667 } | 668 } |
668 | 669 |
669 bool IsTouchpadEvent(const base::NativeEvent& event) { | 670 bool IsTouchpadEvent(const base::NativeEvent& event) { |
670 return DeviceDataManager::GetInstance()->IsTouchpadXInputEvent(event); | 671 return DeviceDataManager::GetInstance()->IsTouchpadXInputEvent(event); |
671 } | 672 } |
672 | 673 |
673 } // namespace ui | 674 } // namespace ui |
OLD | NEW |