OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 virtual int GetActionIndex() const OVERRIDE; | 22 virtual int GetActionIndex() const OVERRIDE; |
23 virtual size_t GetPointerCount() const OVERRIDE; | 23 virtual size_t GetPointerCount() const OVERRIDE; |
24 virtual int GetPointerId(size_t pointer_index) const OVERRIDE; | 24 virtual int GetPointerId(size_t pointer_index) const OVERRIDE; |
25 virtual float GetX(size_t pointer_index) const OVERRIDE; | 25 virtual float GetX(size_t pointer_index) const OVERRIDE; |
26 virtual float GetY(size_t pointer_index) const OVERRIDE; | 26 virtual float GetY(size_t pointer_index) const OVERRIDE; |
27 virtual float GetRawX(size_t pointer_index) const OVERRIDE; | 27 virtual float GetRawX(size_t pointer_index) const OVERRIDE; |
28 virtual float GetRawY(size_t pointer_index) const OVERRIDE; | 28 virtual float GetRawY(size_t pointer_index) const OVERRIDE; |
29 virtual float GetTouchMajor(size_t pointer_index) const OVERRIDE; | 29 virtual float GetTouchMajor(size_t pointer_index) const OVERRIDE; |
30 virtual float GetPressure(size_t pointer_index) const OVERRIDE; | 30 virtual float GetPressure(size_t pointer_index) const OVERRIDE; |
31 virtual base::TimeTicks GetEventTime() const OVERRIDE; | 31 virtual base::TimeTicks GetEventTime() const OVERRIDE; |
32 virtual size_t GetHistorySize() const OVERRIDE; | |
33 virtual base::TimeTicks GetHistoricalEventTime( | |
34 size_t historical_index) const OVERRIDE; | |
35 virtual float GetHistoricalTouchMajor( | |
36 size_t pointer_index, | |
37 size_t historical_index) const OVERRIDE; | |
38 virtual float GetHistoricalX( | |
39 size_t pointer_index, | |
40 size_t historical_index) const OVERRIDE; | |
41 virtual float GetHistoricalY( | |
42 size_t pointer_index, | |
43 size_t historical_index) const OVERRIDE; | |
44 virtual ToolType GetToolType(size_t pointer_index) const OVERRIDE; | 32 virtual ToolType GetToolType(size_t pointer_index) const OVERRIDE; |
45 virtual int GetButtonState() const OVERRIDE; | 33 virtual int GetButtonState() const OVERRIDE; |
46 virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE; | 34 virtual scoped_ptr<MotionEvent> Clone() const OVERRIDE; |
47 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE; | 35 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE; |
48 | 36 |
49 private: | 37 private: |
50 blink::WebTouchEvent event_; | 38 blink::WebTouchEvent event_; |
51 Action cached_action_; | 39 Action cached_action_; |
52 int cached_action_index_; | 40 int cached_action_index_; |
53 | 41 |
54 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb); | 42 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb); |
55 }; | 43 }; |
56 | 44 |
57 } // namespace content | 45 } // namespace content |
58 | 46 |
59 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ | 47 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ |
OLD | NEW |