| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 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_ |
| OLD | NEW |