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

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

Issue 1187273004: Pass MotionEvent tilt angles to Blink on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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
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 "third_party/WebKit/public/web/WebInputEvent.h" 8 #include "third_party/WebKit/public/web/WebInputEvent.h"
9 #include "ui/events/gesture_detection/motion_event.h" 9 #include "ui/events/gesture_detection/motion_event.h"
10 10
(...skipping 12 matching lines...) Expand all
23 size_t GetPointerCount() const override; 23 size_t GetPointerCount() const override;
24 int GetPointerId(size_t pointer_index) const override; 24 int GetPointerId(size_t pointer_index) const override;
25 float GetX(size_t pointer_index) const override; 25 float GetX(size_t pointer_index) const override;
26 float GetY(size_t pointer_index) const override; 26 float GetY(size_t pointer_index) const override;
27 float GetRawX(size_t pointer_index) const override; 27 float GetRawX(size_t pointer_index) const override;
28 float GetRawY(size_t pointer_index) const override; 28 float GetRawY(size_t pointer_index) const override;
29 float GetTouchMajor(size_t pointer_index) const override; 29 float GetTouchMajor(size_t pointer_index) const override;
30 float GetTouchMinor(size_t pointer_index) const override; 30 float GetTouchMinor(size_t pointer_index) const override;
31 float GetOrientation(size_t pointer_index) const override; 31 float GetOrientation(size_t pointer_index) const override;
32 float GetPressure(size_t pointer_index) const override; 32 float GetPressure(size_t pointer_index) const override;
33 float GetTilt(size_t pointer_index) const override;
33 base::TimeTicks GetEventTime() const override; 34 base::TimeTicks GetEventTime() const override;
34 ToolType GetToolType(size_t pointer_index) const override; 35 ToolType GetToolType(size_t pointer_index) const override;
35 int GetButtonState() const override; 36 int GetButtonState() const override;
36 int GetFlags() const override; 37 int GetFlags() const override;
37 38
38 private: 39 private:
39 blink::WebTouchEvent event_; 40 blink::WebTouchEvent event_;
40 Action cached_action_; 41 Action cached_action_;
41 int cached_action_index_; 42 int cached_action_index_;
42 const uint32 unique_event_id_; 43 const uint32 unique_event_id_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb); 45 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb);
45 }; 46 };
46 47
47 } // namespace content 48 } // namespace content
48 49
49 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ 50 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698