Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4393)

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_action_view.cc

Issue 1748903003: Resets hover state when ToolbarActionView is dragged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resets hover state when ToolbarActionView is dragged (hide set_dragged_view) Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()) {

Powered by Google App Engine
This is Rietveld 408576698