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

Unified Diff: content/browser/renderer_host/input/motion_event_android.h

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
« no previous file with comments | « AUTHORS ('k') | content/browser/renderer_host/input/motion_event_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/motion_event_android.h
diff --git a/content/browser/renderer_host/input/motion_event_android.h b/content/browser/renderer_host/input/motion_event_android.h
index f4e8c9422ddd7778292257818911c2661c033aac..f75463705a630370a0838ccbf84712795f2f81ce 100644
--- a/content/browser/renderer_host/input/motion_event_android.h
+++ b/content/browser/renderer_host/input/motion_event_android.h
@@ -70,6 +70,8 @@ class CONTENT_EXPORT MotionEventAndroid : public ui::MotionEvent {
float GetTouchMajor(size_t pointer_index) const override;
float GetTouchMinor(size_t pointer_index) const override;
float GetOrientation(size_t pointer_index) const override;
+ float GetTilt(size_t pointer_index) const override;
+ float GetTiltDirection(size_t pointer_index) const override;
float GetPressure(size_t pointer_index) const override;
base::TimeTicks GetEventTime() const override;
size_t GetHistorySize() const override;
@@ -120,6 +122,8 @@ class CONTENT_EXPORT MotionEventAndroid : public ui::MotionEvent {
float touch_major;
float touch_minor;
float orientation;
+ float tilt;
+ float tiltDirection;
ToolType tool_type;
} cached_pointers_[MAX_POINTERS_TO_CACHE];
« no previous file with comments | « AUTHORS ('k') | content/browser/renderer_host/input/motion_event_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698