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

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

Issue 1390113006: Added material design mouse hover feedback support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved MouseEntered/Exit() to hover handling in to the ButtonInkDropDelegate. Created 4 years, 11 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_button.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.cc b/chrome/browser/ui/views/toolbar/toolbar_button.cc
index 79f1d633e3082dee29f0cc7c701983daff40ba2e..3e598b0516cb144596d67e3d50321eefce6fbe01 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_button.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.cc
@@ -144,6 +144,7 @@ void ToolbarButton::OnMouseExited(const ui::MouseEvent& event) {
// remain in a PUSHED state until the drop down menu closes.
if (state() != STATE_DISABLED && !InDrag() && state() != STATE_PRESSED)
SetState(STATE_NORMAL);
+ UpdateInkDropHoverState();
varkha 2016/01/22 15:45:32 Would this not be taken care by the delegate's OnM
bruthig 2016/01/25 22:39:17 Removed.
}
void ToolbarButton::OnGestureEvent(ui::GestureEvent* event) {
« no previous file with comments | « no previous file | ui/views/animation/button_ink_drop_delegate.h » ('j') | ui/views/animation/ink_drop_animation_controller_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698