Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: ui/events/x/events_x_utils.cc

Issue 2751833006: Treat NotifyVirtual events as mouse move events for blink. (Closed)
Patch Set: Try to fix build Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« ui/events/blink/web_input_event.cc ('K') | « ui/events/x/events_x_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698