| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_ANDROID_H_ | 6 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_ANDROID_H_ |
| 7 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_ANDROID_H_ | 7 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_ANDROID_H_ |
| 8 | 8 |
| 9 #include <jni.h> | 9 #include <jni.h> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 jint action_index, | 51 jint action_index, |
| 52 jint android_button_state, | 52 jint android_button_state, |
| 53 jint meta_state, | 53 jint meta_state, |
| 54 jfloat raw_offset_x_pixels, | 54 jfloat raw_offset_x_pixels, |
| 55 jfloat raw_offset_y_pixels, | 55 jfloat raw_offset_y_pixels, |
| 56 const Pointer& pointer0, | 56 const Pointer& pointer0, |
| 57 const Pointer& pointer1); | 57 const Pointer& pointer1); |
| 58 ~MotionEventAndroid() override; | 58 ~MotionEventAndroid() override; |
| 59 | 59 |
| 60 // ui::MotionEvent methods. | 60 // ui::MotionEvent methods. |
| 61 int GetId() const override; | 61 uint64 GetUniqueEventId() const override; |
| 62 Action GetAction() const override; | 62 Action GetAction() const override; |
| 63 int GetActionIndex() const override; | 63 int GetActionIndex() const override; |
| 64 size_t GetPointerCount() const override; | 64 size_t GetPointerCount() const override; |
| 65 int GetPointerId(size_t pointer_index) const override; | 65 int GetPointerId(size_t pointer_index) const override; |
| 66 float GetX(size_t pointer_index) const override; | 66 float GetX(size_t pointer_index) const override; |
| 67 float GetY(size_t pointer_index) const override; | 67 float GetY(size_t pointer_index) const override; |
| 68 float GetRawX(size_t pointer_index) const override; | 68 float GetRawX(size_t pointer_index) const override; |
| 69 float GetRawY(size_t pointer_index) const override; | 69 float GetRawY(size_t pointer_index) const override; |
| 70 float GetTouchMajor(size_t pointer_index) const override; | 70 float GetTouchMajor(size_t pointer_index) const override; |
| 71 float GetTouchMinor(size_t pointer_index) const override; | 71 float GetTouchMinor(size_t pointer_index) const override; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 struct CachedPointer { | 116 struct CachedPointer { |
| 117 CachedPointer(); | 117 CachedPointer(); |
| 118 int id; | 118 int id; |
| 119 gfx::PointF position; | 119 gfx::PointF position; |
| 120 float touch_major; | 120 float touch_major; |
| 121 float touch_minor; | 121 float touch_minor; |
| 122 float orientation; | 122 float orientation; |
| 123 ToolType tool_type; | 123 ToolType tool_type; |
| 124 } cached_pointers_[MAX_POINTERS_TO_CACHE]; | 124 } cached_pointers_[MAX_POINTERS_TO_CACHE]; |
| 125 | 125 |
| 126 // A unique identifier for the Android motion event. |
| 127 const uint64 unique_event_id_; |
| 128 |
| 126 DISALLOW_COPY_AND_ASSIGN(MotionEventAndroid); | 129 DISALLOW_COPY_AND_ASSIGN(MotionEventAndroid); |
| 127 }; | 130 }; |
| 128 | 131 |
| 129 } // namespace content | 132 } // namespace content |
| 130 | 133 |
| 131 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_ANDROID_H_ | 134 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOTION_EVENT_ANDROID_H_ |
| OLD | NEW |