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

Unified Diff: ui/events/win/events_win.cc

Issue 2648583003: Handle floating point coordinates from ozone to exosphere (Closed)
Patch Set: extended X/mac tests 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
Index: ui/events/win/events_win.cc
diff --git a/ui/events/win/events_win.cc b/ui/events/win/events_win.cc
index 9faaa187bab6da1769ca5304ff589533792b2258..89a1cfd8f4ff1190e41b16c3ba2e1c2330cf6a34 100644
--- a/ui/events/win/events_win.cc
+++ b/ui/events/win/events_win.cc
@@ -255,6 +255,10 @@ gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) {
return gfx::Point(native_point);
}
+gfx::PointF EventLocationFromNativeF(const base::NativeEvent& native_event) {
+ return gfx::PointF(EventLocationFromNative(native_event));
+}
+
gfx::Point EventSystemLocationFromNative(
const base::NativeEvent& native_event) {
POINT global_point = { static_cast<short>(LOWORD(native_event.lParam)),
« ui/events/event_utils.h ('K') | « ui/events/events_stub.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698