OLD | NEW |
1 | |
2 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
3 // 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 |
4 // found in the LICENSE file. | 3 // found in the LICENSE file. |
5 | 4 |
6 #ifndef UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ | 5 #ifndef UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ |
7 #define UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ | 6 #define UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ |
8 | 7 |
9 #include <jni.h> | 8 #include <jni.h> |
10 #include <stddef.h> | 9 #include <stddef.h> |
11 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 jobject event, | 51 jobject event, |
53 jlong time_ms, | 52 jlong time_ms, |
54 jint android_action, | 53 jint android_action, |
55 jint pointer_count, | 54 jint pointer_count, |
56 jint history_size, | 55 jint history_size, |
57 jint action_index, | 56 jint action_index, |
58 jint android_button_state, | 57 jint android_button_state, |
59 jint meta_state, | 58 jint meta_state, |
60 jfloat raw_offset_x_pixels, | 59 jfloat raw_offset_x_pixels, |
61 jfloat raw_offset_y_pixels, | 60 jfloat raw_offset_y_pixels, |
62 const Pointer& pointer0, | 61 const Pointer* const pointer0, |
63 const Pointer& pointer1); | 62 const Pointer* const pointer1); |
64 ~MotionEventAndroid() override; | 63 ~MotionEventAndroid() override; |
65 | 64 |
66 // ui::MotionEvent methods. | 65 // ui::MotionEvent methods. |
67 uint32_t GetUniqueEventId() const override; | 66 uint32_t GetUniqueEventId() const override; |
68 Action GetAction() const override; | 67 Action GetAction() const override; |
69 int GetActionIndex() const override; | 68 int GetActionIndex() const override; |
70 size_t GetPointerCount() const override; | 69 size_t GetPointerCount() const override; |
71 int GetPointerId(size_t pointer_index) const override; | 70 int GetPointerId(size_t pointer_index) const override; |
72 float GetX(size_t pointer_index) const override; | 71 float GetX(size_t pointer_index) const override; |
73 float GetY(size_t pointer_index) const override; | 72 float GetY(size_t pointer_index) const override; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 130 |
132 // A unique identifier for the Android motion event. | 131 // A unique identifier for the Android motion event. |
133 const uint32_t unique_event_id_; | 132 const uint32_t unique_event_id_; |
134 | 133 |
135 DISALLOW_COPY_AND_ASSIGN(MotionEventAndroid); | 134 DISALLOW_COPY_AND_ASSIGN(MotionEventAndroid); |
136 }; | 135 }; |
137 | 136 |
138 } // namespace content | 137 } // namespace content |
139 | 138 |
140 #endif // UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ | 139 #endif // UI_EVENTS_ANDROID_MOTION_EVENT_ANDROID_H_ |
OLD | NEW |