Searched refs:pointer_index (Results 1 – 11 of 11) sorted by relevance
/external/chromium_org/content/browser/renderer_host/input/ |
D | motion_event_web.cc | 78 int MotionEventWeb::GetPointerId(size_t pointer_index) const { in GetPointerId() 79 DCHECK_LT(pointer_index, GetPointerCount()); in GetPointerId() 80 return event_.touches[pointer_index].id; in GetPointerId() 83 float MotionEventWeb::GetX(size_t pointer_index) const { in GetX() 84 DCHECK_LT(pointer_index, GetPointerCount()); in GetX() 85 return event_.touches[pointer_index].position.x; in GetX() 88 float MotionEventWeb::GetY(size_t pointer_index) const { in GetY() 89 DCHECK_LT(pointer_index, GetPointerCount()); in GetY() 90 return event_.touches[pointer_index].position.y; in GetY() 93 float MotionEventWeb::GetRawX(size_t pointer_index) const { in GetRawX() [all …]
|
D | motion_event_android.cc | 227 int MotionEventAndroid::GetPointerId(size_t pointer_index) const { in GetPointerId() 228 DCHECK_LT(pointer_index, cached_pointer_count_); in GetPointerId() 229 if (pointer_index < MAX_POINTERS_TO_CACHE) in GetPointerId() 230 return cached_pointer_ids_[pointer_index]; in GetPointerId() 232 AttachCurrentThread(), event_.obj(), pointer_index); in GetPointerId() 235 float MotionEventAndroid::GetX(size_t pointer_index) const { in GetX() 236 DCHECK_LT(pointer_index, cached_pointer_count_); in GetX() 237 if (pointer_index < MAX_POINTERS_TO_CACHE) in GetX() 238 return cached_positions_[pointer_index].x(); in GetX() 240 AttachCurrentThread(), event_.obj(), pointer_index)); in GetX() [all …]
|
D | motion_event_web.h | 24 virtual int GetPointerId(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; 27 virtual float GetRawX(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; 30 virtual float GetPressure(size_t pointer_index) const OVERRIDE; 36 size_t pointer_index, 39 size_t pointer_index, 42 size_t pointer_index, [all …]
|
D | motion_event_android.h | 53 virtual int GetPointerId(size_t pointer_index) const OVERRIDE; 54 virtual float GetX(size_t pointer_index) const OVERRIDE; 55 virtual float GetY(size_t pointer_index) const OVERRIDE; 56 virtual float GetRawX(size_t pointer_index) const OVERRIDE; 57 virtual float GetRawY(size_t pointer_index) const OVERRIDE; 58 virtual float GetTouchMajor(size_t pointer_index) const OVERRIDE; 59 virtual float GetPressure(size_t pointer_index) const OVERRIDE; 64 virtual float GetHistoricalTouchMajor(size_t pointer_index, 66 virtual float GetHistoricalX(size_t pointer_index, 68 virtual float GetHistoricalY(size_t pointer_index, [all …]
|
D | web_input_event_util.cc | 181 size_t pointer_index) { in CreateWebTouchPoint() argument 183 touch.id = event.GetPointerId(pointer_index); in CreateWebTouchPoint() 186 static_cast<int>(pointer_index) == event.GetActionIndex()); in CreateWebTouchPoint() 187 touch.position.x = event.GetX(pointer_index); in CreateWebTouchPoint() 188 touch.position.y = event.GetY(pointer_index); in CreateWebTouchPoint() 189 touch.screenPosition.x = event.GetRawX(pointer_index); in CreateWebTouchPoint() 190 touch.screenPosition.y = event.GetRawY(pointer_index); in CreateWebTouchPoint() 191 touch.radiusX = touch.radiusY = event.GetTouchMajor(pointer_index) * 0.5f; in CreateWebTouchPoint() 192 touch.force = event.GetPressure(pointer_index); in CreateWebTouchPoint()
|
/external/chromium_org/ui/events/gestures/ |
D | motion_event_aura.cc | 94 int MotionEventAura::GetPointerId(size_t pointer_index) const { in GetPointerId() 95 DCHECK_LE(pointer_index, pointer_count_); in GetPointerId() 96 return active_touches_[pointer_index].touch_id; in GetPointerId() 99 float MotionEventAura::GetX(size_t pointer_index) const { in GetX() 100 DCHECK_LE(pointer_index, pointer_count_); in GetX() 101 return active_touches_[pointer_index].x; in GetX() 104 float MotionEventAura::GetY(size_t pointer_index) const { in GetY() 105 DCHECK_LE(pointer_index, pointer_count_); in GetY() 106 return active_touches_[pointer_index].y; in GetY() 109 float MotionEventAura::GetRawX(size_t pointer_index) const { in GetRawX() [all …]
|
D | motion_event_aura.h | 33 virtual int GetPointerId(size_t pointer_index) const OVERRIDE; 34 virtual float GetX(size_t pointer_index) const OVERRIDE; 35 virtual float GetY(size_t pointer_index) const OVERRIDE; 36 virtual float GetRawX(size_t pointer_index) const OVERRIDE; 37 virtual float GetRawY(size_t pointer_index) const OVERRIDE; 38 virtual float GetTouchMajor(size_t pointer_index) const OVERRIDE; 39 virtual float GetPressure(size_t pointer_index) const OVERRIDE; 45 virtual float GetHistoricalTouchMajor(size_t pointer_index, 47 virtual float GetHistoricalX(size_t pointer_index, 49 virtual float GetHistoricalY(size_t pointer_index, [all …]
|
/external/chromium_org/ui/events/test/ |
D | mock_motion_event.cc | 105 int MockMotionEvent::GetPointerId(size_t pointer_index) const { in GetPointerId() 106 DCHECK(pointer_index < pointer_count); in GetPointerId() 107 return static_cast<int>(pointer_index); in GetPointerId() 110 float MockMotionEvent::GetX(size_t pointer_index) const { in GetX() 111 return points[pointer_index].x(); in GetX() 114 float MockMotionEvent::GetY(size_t pointer_index) const { in GetY() 115 return points[pointer_index].y(); in GetY() 118 float MockMotionEvent::GetRawX(size_t pointer_index) const { in GetRawX() 119 return GetX(pointer_index) + raw_offset.x(); in GetRawX() 122 float MockMotionEvent::GetRawY(size_t pointer_index) const { in GetRawY() [all …]
|
D | mock_motion_event.h | 48 virtual int GetPointerId(size_t pointer_index) const OVERRIDE; 49 virtual float GetX(size_t pointer_index) const OVERRIDE; 50 virtual float GetY(size_t pointer_index) const OVERRIDE; 51 virtual float GetRawX(size_t pointer_index) const OVERRIDE; 52 virtual float GetRawY(size_t pointer_index) const OVERRIDE; 53 virtual float GetTouchMajor(size_t pointer_index) const OVERRIDE; 54 virtual float GetPressure(size_t pointer_index) const OVERRIDE; 59 virtual float GetHistoricalTouchMajor(size_t pointer_index, 61 virtual float GetHistoricalX(size_t pointer_index, 63 virtual float GetHistoricalY(size_t pointer_index, [all …]
|
/external/chromium_org/ui/events/gesture_detection/ |
D | motion_event.h | 53 virtual int GetPointerId(size_t pointer_index) const = 0; 54 virtual float GetX(size_t pointer_index) const = 0; 55 virtual float GetY(size_t pointer_index) const = 0; 56 virtual float GetRawX(size_t pointer_index) const = 0; 57 virtual float GetRawY(size_t pointer_index) const = 0; 58 virtual float GetTouchMajor(size_t pointer_index) const = 0; 59 virtual float GetPressure(size_t pointer_index) const = 0; 65 virtual float GetHistoricalTouchMajor(size_t pointer_index, 67 virtual float GetHistoricalX(size_t pointer_index, 69 virtual float GetHistoricalY(size_t pointer_index, [all …]
|
D | velocity_tracker.cc | 319 uint32_t pointer_index[MAX_POINTERS]; in AddMovement() local 321 pointer_index[i] = id_bits.get_index_of_bit(event.GetPointerId(i)); in AddMovement() 328 uint32_t index = pointer_index[i]; in AddMovement() 336 uint32_t index = pointer_index[i]; in AddMovement()
|