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

Unified Diff: ui/events/events_stub.cc

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/events_default.cc ('k') | ui/events/win/events_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/events_stub.cc
diff --git a/ui/events/events_stub.cc b/ui/events/events_stub.cc
index edd7765b16ea702a60c4407924814b3ba120db8e..a3343110e91f08dbd13f2e6a33cf0f2c74e45134 100644
--- a/ui/events/events_stub.cc
+++ b/ui/events/events_stub.cc
@@ -86,24 +86,20 @@ int GetTouchId(const base::NativeEvent& native_event) {
return 0;
}
-float GetTouchRadiusX(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0.f;
-}
-
-float GetTouchRadiusY(const base::NativeEvent& native_event) {
- NOTIMPLEMENTED();
- return 0.f;
-}
-
float GetTouchAngle(const base::NativeEvent& native_event) {
NOTIMPLEMENTED();
return 0.f;
}
-float GetTouchForce(const base::NativeEvent& native_event) {
+PointerDetails GetTouchPointerDetailsFromNative(
+ const base::NativeEvent& native_event) {
NOTIMPLEMENTED();
- return 0.f;
+ return PointerDetails(EventPointerType::POINTER_TYPE_UNKNOWN,
+ /* radius_x */ 1.0,
+ /* radius_y */ 1.0,
+ /* force */ 0.f,
+ /* tilt_x */ 0.f,
+ /* tilt_y */ 0.f);
}
bool GetScrollOffsets(const base::NativeEvent& native_event,
« no previous file with comments | « ui/events/events_default.cc ('k') | ui/events/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698