Index: ui/views/animation/button_ink_drop_delegate.cc |
diff --git a/ui/views/animation/button_ink_drop_delegate.cc b/ui/views/animation/button_ink_drop_delegate.cc |
index 2fa6000574b196631b220bde9ca8a3fa8e494b30..40172abaab70d6e68634f47516c923c93e5cd876 100644 |
--- a/ui/views/animation/button_ink_drop_delegate.cc |
+++ b/ui/views/animation/button_ink_drop_delegate.cc |
@@ -43,9 +43,24 @@ void ButtonInkDropDelegate::OnAction(InkDropState state) { |
ink_drop_animation_controller_->AnimateToState(state); |
} |
+void ButtonInkDropDelegate::SetHovered(bool is_hovered) { |
+ ink_drop_animation_controller_->SetHovered(is_hovered); |
+} |
+ |
//////////////////////////////////////////////////////////////////////////////// |
// ui::EventHandler: |
+void ButtonInkDropDelegate::OnMouseEvent(ui::MouseEvent* event) { |
+ switch (event->type()) { |
+ case ui::ET_MOUSE_ENTERED: |
+ case ui::ET_MOUSE_EXITED: |
+ SetHovered(ink_drop_host_->ShouldShowInkDropHover()); |
+ break; |
+ default: |
+ return; |
+ } |
+} |
+ |
void ButtonInkDropDelegate::OnGestureEvent(ui::GestureEvent* event) { |
InkDropState current_ink_drop_state = |
ink_drop_animation_controller_->GetInkDropState(); |