| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/x/events_x_utils.h" | 5 #include "ui/events/x/events_x_utils.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 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> |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 return true; | 808 return true; |
| 809 } | 809 } |
| 810 | 810 |
| 811 void ResetTimestampRolloverCountersForTesting( | 811 void ResetTimestampRolloverCountersForTesting( |
| 812 std::unique_ptr<base::TickClock> tick_clock) { | 812 std::unique_ptr<base::TickClock> tick_clock) { |
| 813 g_last_seen_timestamp_ms = 0; | 813 g_last_seen_timestamp_ms = 0; |
| 814 g_rollover_ms = 0; | 814 g_rollover_ms = 0; |
| 815 SetEventTickClockForTesting(std::move(tick_clock)); | 815 SetEventTickClockForTesting(std::move(tick_clock)); |
| 816 } | 816 } |
| 817 | 817 |
| 818 bool IsVirtualMouseLeaveEvent(const XEvent& xev) { |
| 819 return xev.type == LeaveNotify && xev.xcrossing.detail == NotifyVirtual; |
| 820 } |
| 821 |
| 818 } // namespace ui | 822 } // namespace ui |
| OLD | NEW |