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

Unified Diff: ui/events/x/events_x.cc

Issue 2648583003: Handle floating point coordinates from ozone to exosphere (Closed)
Patch Set: fixed wayland unittest Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/win/events_win.cc ('k') | ui/events/x/events_x_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/x/events_x.cc
diff --git a/ui/events/x/events_x.cc b/ui/events/x/events_x.cc
index 5473615767a1532eb84d3c5591e9e365ae853b6c..78152b45ded95a7915379a63c791d4020df26898 100644
--- a/ui/events/x/events_x.cc
+++ b/ui/events/x/events_x.cc
@@ -94,6 +94,10 @@ gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
return EventLocationFromXEvent(*native_event);
}
+gfx::PointF EventLocationFromNativeF(const base::NativeEvent& native_event) {
+ return gfx::PointF(EventLocationFromNative(native_event));
+}
+
gfx::Point EventSystemLocationFromNative(
const base::NativeEvent& native_event) {
return EventSystemLocationFromXEvent(*native_event);
« no previous file with comments | « ui/events/win/events_win.cc ('k') | ui/events/x/events_x_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698