Index: ui/aura/window_event_dispatcher.cc |
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc |
index 649e2a15be19251aca8d8d6a7c76875074e0354f..f196d35b6b37dd2c62d419586bb2423c8ab70a96 100644 |
--- a/ui/aura/window_event_dispatcher.cc |
+++ b/ui/aura/window_event_dispatcher.cc |
@@ -153,8 +153,10 @@ void WindowEventDispatcher::DispatchGestureEvent(ui::GestureEvent* event) { |
DispatchDetails WindowEventDispatcher::DispatchMouseExitAtPoint( |
Window* window, |
const gfx::Point& point) { |
- ui::MouseEvent event(ui::ET_MOUSE_EXITED, point, point, ui::EventTimeForNow(), |
- ui::EF_NONE, ui::EF_NONE); |
+ ui::MouseEvent event( |
+ ui::ET_MOUSE_EXITED, point, point, ui::EventTimeForNow(), ui::EF_NONE, |
+ ui::EF_NONE, |
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)); |
return DispatchMouseEnterOrExit(window, event, ui::ET_MOUSE_EXITED); |
} |
@@ -366,8 +368,10 @@ void WindowEventDispatcher::UpdateCapture(Window* old_capture, |
if (old_capture && old_capture->GetRootWindow() == window() && |
old_capture->delegate()) { |
// Send a capture changed event with bogus location data. |
- ui::MouseEvent event(ui::ET_MOUSE_CAPTURE_CHANGED, gfx::Point(), |
- gfx::Point(), ui::EventTimeForNow(), 0, 0); |
+ ui::MouseEvent event( |
+ ui::ET_MOUSE_CAPTURE_CHANGED, gfx::Point(), gfx::Point(), |
+ ui::EventTimeForNow(), 0, 0, |
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)); |
DispatchDetails details = DispatchEvent(old_capture, &event); |
if (details.dispatcher_destroyed) |
@@ -723,9 +727,10 @@ ui::EventDispatchDetails WindowEventDispatcher::SynthesizeMouseMoveEvent() { |
return details; |
gfx::Point host_mouse_location = root_mouse_location; |
host_->ConvertPointToHost(&host_mouse_location); |
- ui::MouseEvent event(ui::ET_MOUSE_MOVED, host_mouse_location, |
- host_mouse_location, ui::EventTimeForNow(), |
- ui::EF_IS_SYNTHESIZED, 0); |
+ ui::MouseEvent event( |
+ ui::ET_MOUSE_MOVED, host_mouse_location, host_mouse_location, |
+ ui::EventTimeForNow(), ui::EF_IS_SYNTHESIZED, 0, |
+ ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE)); |
return OnEventFromSource(&event); |
} |