| Index: ui/views/controls/button/menu_button.cc
|
| diff --git a/ui/views/controls/button/menu_button.cc b/ui/views/controls/button/menu_button.cc
|
| index 20b3452374de8f1e6335e34c97250b56a45e2456..b6011c7c5ab3f4fe687ce44e2ae4bda3019a26b0 100644
|
| --- a/ui/views/controls/button/menu_button.cc
|
| +++ b/ui/views/controls/button/menu_button.cc
|
| @@ -148,7 +148,7 @@ bool MenuButton::Activate(const ui::Event* event) {
|
| menu_closed_time_ = TimeTicks::Now();
|
|
|
| if (!increment_pressed_lock_called && pressed_lock_count_ == 0)
|
| - AnimateInkDrop(InkDropState::ACTION_TRIGGERED);
|
| + AnimateInkDrop(InkDropState::ACTION_TRIGGERED, AsLocatedEvent(event));
|
|
|
| // We must return false here so that the RootView does not get stuck
|
| // sending all mouse pressed events to us instead of the appropriate
|
| @@ -156,7 +156,7 @@ bool MenuButton::Activate(const ui::Event* event) {
|
| return false;
|
| }
|
|
|
| - AnimateInkDrop(InkDropState::HIDDEN);
|
| + AnimateInkDrop(InkDropState::HIDDEN, AsLocatedEvent(event));
|
| return true;
|
| }
|
|
|
| @@ -222,7 +222,7 @@ void MenuButton::OnMouseReleased(const ui::MouseEvent& event) {
|
| HitTestPoint(event.location()) && !InDrag()) {
|
| Activate(&event);
|
| } else {
|
| - AnimateInkDrop(InkDropState::HIDDEN);
|
| + AnimateInkDrop(InkDropState::HIDDEN, &event);
|
| LabelButton::OnMouseReleased(event);
|
| }
|
| }
|
| @@ -376,7 +376,7 @@ void MenuButton::IncrementPressedLocked(bool snap_ink_drop_to_activated) {
|
| if (snap_ink_drop_to_activated)
|
| ink_drop()->SnapToActivated();
|
| else
|
| - AnimateInkDrop(InkDropState::ACTIVATED);
|
| + AnimateInkDrop(InkDropState::ACTIVATED, nullptr /* event */);
|
| }
|
| SetState(STATE_PRESSED);
|
| }
|
| @@ -398,7 +398,7 @@ void MenuButton::DecrementPressedLocked() {
|
| // The widget may be null during shutdown. If so, it doesn't make sense to
|
| // try to add an ink drop effect.
|
| if (GetWidget() && state() != STATE_PRESSED)
|
| - AnimateInkDrop(InkDropState::DEACTIVATED);
|
| + AnimateInkDrop(InkDropState::DEACTIVATED, nullptr /* event */);
|
| }
|
| }
|
|
|
|
|