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

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

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « ui/events/win/events_win.cc ('k') | ui/events/x/events_x_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_utils.h" 5 #include "ui/events/event_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 namespace ui { 77 namespace ui {
78 78
79 EventType EventTypeFromNative(const base::NativeEvent& native_event) { 79 EventType EventTypeFromNative(const base::NativeEvent& native_event) {
80 return EventTypeFromXEvent(*native_event); 80 return EventTypeFromXEvent(*native_event);
81 } 81 }
82 82
83 int EventFlagsFromNative(const base::NativeEvent& native_event) { 83 int EventFlagsFromNative(const base::NativeEvent& native_event) {
84 return EventFlagsFromXEvent(*native_event); 84 return EventFlagsFromXEvent(*native_event);
85 } 85 }
86 86
87 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { 87 base::TimeTicks EventTimeFromNative(const base::NativeEvent& native_event) {
88 return EventTimeFromXEvent(*native_event); 88 return EventTimeFromXEvent(*native_event);
89 } 89 }
90 90
91 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { 91 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
92 return EventLocationFromXEvent(*native_event); 92 return EventLocationFromXEvent(*native_event);
93 } 93 }
94 94
95 gfx::Point EventSystemLocationFromNative( 95 gfx::Point EventSystemLocationFromNative(
96 const base::NativeEvent& native_event) { 96 const base::NativeEvent& native_event) {
97 return EventSystemLocationFromXEvent(*native_event); 97 return EventSystemLocationFromXEvent(*native_event);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 xievent->detail = 225 xievent->detail =
226 UpdateX11EventButton(event->changed_button_flags(), xievent->detail); 226 UpdateX11EventButton(event->changed_button_flags(), xievent->detail);
227 break; 227 break;
228 } 228 }
229 default: 229 default:
230 break; 230 break;
231 } 231 }
232 } 232 }
233 233
234 } // namespace ui 234 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/win/events_win.cc ('k') | ui/events/x/events_x_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698