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

Unified Diff: content/browser/renderer_host/input/motion_event_web.cc

Issue 755403006: Added experimental Touch.tilt, Touch.tiltDirection support for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused code (event_sender.cc) Created 5 years, 9 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: content/browser/renderer_host/input/motion_event_web.cc
diff --git a/content/browser/renderer_host/input/motion_event_web.cc b/content/browser/renderer_host/input/motion_event_web.cc
index 2d276f0371ea23757ad508f23df1cdb496d015ed..c69caa3f99abb8ed3349a9246b3586d84c417625 100644
--- a/content/browser/renderer_host/input/motion_event_web.cc
+++ b/content/browser/renderer_host/input/motion_event_web.cc
@@ -144,6 +144,14 @@ float MotionEventWeb::GetOrientation(size_t pointer_index) const {
return rotation_angle_rad;
}
+float MotionEventWeb::GetTilt(size_t pointer_index) const {
+ return std::numeric_limits<float>::quiet_NaN();
+}
+
+float MotionEventWeb::GetTiltDirection(size_t pointer_index) const {
+ return std::numeric_limits<float>::quiet_NaN();
+}
+
float MotionEventWeb::GetPressure(size_t pointer_index) const {
return 0.f;
}
« no previous file with comments | « content/browser/renderer_host/input/motion_event_web.h ('k') | content/browser/renderer_host/input/touch_emulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698