| Index: ash/autoclick/autoclick_controller.cc
|
| diff --git a/ash/autoclick/autoclick_controller.cc b/ash/autoclick/autoclick_controller.cc
|
| index 39d1b020d6db22ef54fe7fcee064579028687d40..c42c50e227623b1b92522d9718d5abab2f015a45 100644
|
| --- a/ash/autoclick/autoclick_controller.cc
|
| +++ b/ash/autoclick/autoclick_controller.cc
|
| @@ -191,14 +191,16 @@ void AutoclickControllerImpl::DoAutoclick() {
|
| aura::WindowTreeHost* host = root_window->GetHost();
|
| host->ConvertPointToHost(&click_location);
|
|
|
| - ui::MouseEvent press_event(ui::ET_MOUSE_PRESSED, click_location,
|
| - click_location, ui::EventTimeForNow(),
|
| - mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON,
|
| - ui::EF_LEFT_MOUSE_BUTTON);
|
| - ui::MouseEvent release_event(ui::ET_MOUSE_RELEASED, click_location,
|
| - click_location, ui::EventTimeForNow(),
|
| - mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON,
|
| - ui::EF_LEFT_MOUSE_BUTTON);
|
| + ui::MouseEvent press_event(
|
| + ui::ET_MOUSE_PRESSED, click_location, click_location,
|
| + ui::EventTimeForNow(), mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON,
|
| + ui::EF_LEFT_MOUSE_BUTTON,
|
| + ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
| + ui::MouseEvent release_event(
|
| + ui::ET_MOUSE_RELEASED, click_location, click_location,
|
| + ui::EventTimeForNow(), mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON,
|
| + ui::EF_LEFT_MOUSE_BUTTON,
|
| + ui::PointerEventDetails(ui::EventPointerType::POINTER_TYPE_MOUSE));
|
|
|
| ui::EventDispatchDetails details =
|
| host->event_processor()->OnEventFromSource(&press_event);
|
|
|