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

Unified Diff: ui/events/event_utils.h

Issue 1586653002: ui: Fix TouchEvent PointerDetails creation from NativeEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use 1.0 consitently for default touch radius (change on Mac and stub.) Created 4 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/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index 54081a5cac9b9dc5f2ae5d4c2c4dd4e51d4142e6..4a8e1637eda65eab5a70e4f07ff10ccdd88c2032 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -115,6 +115,10 @@ base::NativeEvent CopyNativeEvent(
void ReleaseCopiedNativeEvent(
const base::NativeEvent& native_event);
+// Returns the detailed pointer information for touch events.
+EVENTS_EXPORT PointerDetails
+GetTouchPointerDetailsFromNative(const base::NativeEvent& native_event);
+
// Gets the touch id from a native event.
EVENTS_EXPORT int GetTouchId(const base::NativeEvent& native_event);
@@ -122,16 +126,9 @@ EVENTS_EXPORT int GetTouchId(const base::NativeEvent& native_event);
EVENTS_EXPORT void ClearTouchIdIfReleased(
const base::NativeEvent& native_event);
-// Gets the radius along the X/Y axis from a native event. Default is 1.0.
-EVENTS_EXPORT float GetTouchRadiusX(const base::NativeEvent& native_event);
-EVENTS_EXPORT float GetTouchRadiusY(const base::NativeEvent& native_event);
-
// Gets the angle of the major axis away from the X axis. Default is 0.0.
EVENTS_EXPORT float GetTouchAngle(const base::NativeEvent& native_event);
sadrul 2016/01/15 17:24:11 We could perhaps get rid of this too?
robert.bradford 2016/01/18 15:25:22 This isn't something that's currently captured in
-// Gets the force from a native_event. Normalized to be [0, 1]. Default is 0.0.
-EVENTS_EXPORT float GetTouchForce(const base::NativeEvent& native_event);
-
// Gets the fling velocity from a native event. is_cancel is set to true if
// this was a tap down, intended to stop an ongoing fling.
EVENTS_EXPORT bool GetFlingData(const base::NativeEvent& native_event,

Powered by Google App Engine
This is Rietveld 408576698