| Index: ui/events/event.cc
|
| diff --git a/ui/events/event.cc b/ui/events/event.cc
|
| index 7753a8af74eac39b3dbc73dafb8510df33a8949d..14dcd2d76e8d63a7e0e5b9a8603d7a1ed14bab72 100644
|
| --- a/ui/events/event.cc
|
| +++ b/ui/events/event.cc
|
| @@ -457,6 +457,10 @@ MouseEvent::MouseEvent(const base::NativeEvent& native_event)
|
| : LocatedEvent(native_event),
|
| changed_button_flags_(GetChangedMouseButtonFlagsFromNative(native_event)),
|
| pointer_details_(GetMousePointerDetailsFromNative(native_event)) {
|
| + latency()->AddLatencyNumberWithTimestamp(
|
| + INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, 0, 0,
|
| + base::TimeTicks::FromInternalValue(time_stamp().ToInternalValue()), 1);
|
| + latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
|
| if (type() == ET_MOUSE_PRESSED || type() == ET_MOUSE_RELEASED)
|
| SetClickCount(GetRepeatCount(*this));
|
| }
|
| @@ -474,6 +478,7 @@ MouseEvent::MouseEvent(EventType type,
|
| flags),
|
| changed_button_flags_(changed_button_flags),
|
| pointer_details_(PointerDetails(EventPointerType::POINTER_TYPE_MOUSE)) {
|
| + latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
|
| if (this->type() == ET_MOUSE_MOVED && IsAnyButton())
|
| SetType(ET_MOUSE_DRAGGED);
|
| }
|
|
|