Chromium Code Reviews| Index: ui/events/test/motion_event_test_utils.cc |
| diff --git a/ui/events/test/motion_event_test_utils.cc b/ui/events/test/motion_event_test_utils.cc |
| index 8cf9a7fd23ee1ef1ef9d25075d3748aab046cc0a..36264f24232328ac7287efe3738fbb4e552a3ccb 100644 |
| --- a/ui/events/test/motion_event_test_utils.cc |
| +++ b/ui/events/test/motion_event_test_utils.cc |
| @@ -166,10 +166,15 @@ void MockMotionEvent::ResolvePointers() { |
| } |
| } |
| +void MockMotionEvent::SetPrimaryPointerId(int id) { |
| + DCHECK_GT(GetPointerCount(), 0U); |
| + pointer(0).id = id; |
| +} |
| + |
| std::string ToString(const MotionEvent& event) { |
| std::stringstream ss; |
| ss << "MotionEvent {" |
| - << "\n ID: " << event.GetId() << "\n Action: " << event.GetAction(); |
| + << "\n ID: " << event.GetPointerId() << "\n Action: " << event.GetAction(); |
|
jdduke (slow)
2015/04/21 14:56:51
This should probably now be |GetUniquEventId|, and
lanwei
2015/04/21 21:32:45
Done.
|
| if (event.GetAction() == MotionEvent::ACTION_POINTER_DOWN || |
| event.GetAction() == MotionEvent::ACTION_POINTER_UP) |
| ss << "\n ActionIndex: " << event.GetActionIndex(); |