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

Side by Side Diff: content/browser/renderer_host/input/motion_event_web.h

Issue 2860793003: Pass through tilt_x and tilt_y to blink (Closed)
Patch Set: Pass through tilt_x and tilt_y to blink Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/renderer_host/input/motion_event_web.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 17 matching lines...) Expand all
28 size_t GetPointerCount() const override; 28 size_t GetPointerCount() const override;
29 int GetPointerId(size_t pointer_index) const override; 29 int GetPointerId(size_t pointer_index) const override;
30 float GetX(size_t pointer_index) const override; 30 float GetX(size_t pointer_index) const override;
31 float GetY(size_t pointer_index) const override; 31 float GetY(size_t pointer_index) const override;
32 float GetRawX(size_t pointer_index) const override; 32 float GetRawX(size_t pointer_index) const override;
33 float GetRawY(size_t pointer_index) const override; 33 float GetRawY(size_t pointer_index) const override;
34 float GetTouchMajor(size_t pointer_index) const override; 34 float GetTouchMajor(size_t pointer_index) const override;
35 float GetTouchMinor(size_t pointer_index) const override; 35 float GetTouchMinor(size_t pointer_index) const override;
36 float GetOrientation(size_t pointer_index) const override; 36 float GetOrientation(size_t pointer_index) const override;
37 float GetPressure(size_t pointer_index) const override; 37 float GetPressure(size_t pointer_index) const override;
38 float GetTilt(size_t pointer_index) const override; 38 float GetTiltX(size_t pointer_index) const override;
39 float GetTiltY(size_t pointer_index) const override;
39 base::TimeTicks GetEventTime() const override; 40 base::TimeTicks GetEventTime() const override;
40 ToolType GetToolType(size_t pointer_index) const override; 41 ToolType GetToolType(size_t pointer_index) const override;
41 int GetButtonState() const override; 42 int GetButtonState() const override;
42 int GetFlags() const override; 43 int GetFlags() const override;
43 44
44 private: 45 private:
45 blink::WebTouchEvent event_; 46 blink::WebTouchEvent event_;
46 Action cached_action_; 47 Action cached_action_;
47 int cached_action_index_; 48 int cached_action_index_;
48 const uint32_t unique_event_id_; 49 const uint32_t unique_event_id_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb); 51 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb);
51 }; 52 };
52 53
53 } // namespace content 54 } // namespace content
54 55
55 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ 56 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/motion_event_web.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698