Chromium Code Reviews| Index: ui/views/controls/button/custom_button.cc |
| diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc |
| index 4ed90e2918ab4cc41cfb83aa30882fe62feafba9..2d3a17c64d04e1679b0976b42f1f108a16e5d4fd 100644 |
| --- a/ui/views/controls/button/custom_button.cc |
| +++ b/ui/views/controls/button/custom_button.cc |
| @@ -318,10 +318,8 @@ void CustomButton::OnGestureEvent(ui::GestureEvent* event) { |
| bool CustomButton::AcceleratorPressed(const ui::Accelerator& accelerator) { |
| SetState(STATE_NORMAL); |
| - // TODO(beng): remove once NotifyClick takes ui::Event. |
| - ui::MouseEvent synthetic_event( |
| - ui::ET_MOUSE_RELEASED, gfx::Point(), gfx::Point(), ui::EventTimeForNow(), |
| - ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON); |
| + ui::Event synthetic_event(ui::ET_UNKNOWN, ui::EventTimeForNow(), |
|
sky
2017/06/22 00:55:48
Given we create an accelerator from a KeyEvent, wo
bruthig
2017/07/10 18:03:13
Done.
|
| + ui::EF_IS_SYNTHESIZED); |
| NotifyClick(synthetic_event); |
| return true; |
| } |