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

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: Rebase following X event refactor 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
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/events_default.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
-// 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,
« no previous file with comments | « ui/events/event.cc ('k') | ui/events/events_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698