Index: mojo/services/public/cpp/input_events/lib/input_events_type_converters.cc |
diff --git a/mojo/services/public/cpp/input_events/lib/input_events_type_converters.cc b/mojo/services/public/cpp/input_events/lib/input_events_type_converters.cc |
index aa07305f4405a8d0dd16e63ceedfefc72eb6c364..dbd8f70848ffc28ea54efbcbafbf87b4039f1339 100644 |
--- a/mojo/services/public/cpp/input_events/lib/input_events_type_converters.cc |
+++ b/mojo/services/public/cpp/input_events/lib/input_events_type_converters.cc |
@@ -98,6 +98,20 @@ TypeConverter<EventPtr, scoped_ptr<ui::Event> >::ConvertTo( |
input->flags)); |
break; |
} |
+ case ui::ET_TOUCH_MOVED: |
+ case ui::ET_TOUCH_PRESSED: |
+ case ui::ET_TOUCH_CANCELLED: |
+ case ui::ET_TOUCH_RELEASED: { |
+ gfx::Point location(input->location->x, input->location->y); |
+ ui_event.reset(new ui::TouchEvent( |
+ static_cast<ui::EventType>(input->action), |
+ location, |
+ input->flags, |
+ input->touch_data->pointer_id, |
+ base::TimeDelta::FromInternalValue(input->time_stamp), |
+ 0.f, 0.f, 0.f, 0.f)); |
+ break; |
+ } |
default: |
// TODO: support other types. |
// NOTIMPLEMENTED(); |