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 16 matching lines...) Expand all Loading... |
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 GetTouchMinor(size_t pointer_index) const override; | 30 virtual float GetTouchMinor(size_t pointer_index) const override; |
31 virtual float GetOrientation(size_t pointer_index) const override; | 31 virtual float GetOrientation(size_t pointer_index) const override; |
32 virtual float GetPressure(size_t pointer_index) const override; | 32 virtual float GetPressure(size_t pointer_index) const override; |
33 virtual base::TimeTicks GetEventTime() const override; | 33 virtual base::TimeTicks GetEventTime() const override; |
34 virtual ToolType GetToolType(size_t pointer_index) const override; | 34 virtual ToolType GetToolType(size_t pointer_index) const override; |
35 virtual int GetButtonState() const override; | 35 virtual int GetButtonState() const override; |
36 virtual int GetFlags() const override; | 36 virtual int GetFlags() const override; |
37 virtual scoped_ptr<MotionEvent> Clone() const override; | |
38 virtual scoped_ptr<MotionEvent> Cancel() const override; | |
39 | 37 |
40 private: | 38 private: |
41 blink::WebTouchEvent event_; | 39 blink::WebTouchEvent event_; |
42 Action cached_action_; | 40 Action cached_action_; |
43 int cached_action_index_; | 41 int cached_action_index_; |
44 | 42 |
45 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb); | 43 DISALLOW_COPY_AND_ASSIGN(MotionEventWeb); |
46 }; | 44 }; |
47 | 45 |
48 } // namespace content | 46 } // namespace content |
49 | 47 |
50 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ | 48 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_WEB_H_ |
OLD | NEW |