Chromium Code Reviews| Index: chrome/browser/ui/views/toolbar/toolbar_action_view.cc |
| diff --git a/chrome/browser/ui/views/toolbar/toolbar_action_view.cc b/chrome/browser/ui/views/toolbar/toolbar_action_view.cc |
| index 37f514008e26851b92a522a89aa171d9ee59ba42..6703918933d9cb56dcd05a14248bb17fad453055 100644 |
| --- a/chrome/browser/ui/views/toolbar/toolbar_action_view.cc |
| +++ b/chrome/browser/ui/views/toolbar/toolbar_action_view.cc |
| @@ -199,6 +199,12 @@ gfx::Size ToolbarActionView::GetPreferredSize() const { |
| ToolbarActionsBar::IconHeight()); |
| } |
| +void ToolbarActionView::OnMouseCaptureLost() { |
|
Devlin
2016/03/01 15:00:59
Why is this in ToolbarActionView instead of a butt
varkha
2016/03/01 16:32:31
Yes, I thought so too but wasn't sure if there is
Evan Stade
2016/03/01 21:01:17
The problem is that MD ink drops (which provide ho
|
| + MenuButton::OnMouseCaptureLost(); |
| + if (IsHotTracked()) |
| + SetState(STATE_NORMAL); |
| +} |
| + |
| bool ToolbarActionView::OnMousePressed(const ui::MouseEvent& event) { |
| // views::MenuButton actions are only triggered by left mouse clicks. |
| if (event.IsOnlyLeftMouseButton()) { |