Chromium Code Reviews| Index: ui/views/animation/ink_drop_impl.cc |
| diff --git a/ui/views/animation/ink_drop_impl.cc b/ui/views/animation/ink_drop_impl.cc |
| index cce475b58b571bd75a16da0ed910792193c339bb..30fa13be093620c2576a9babfb9a11fea732dc6e 100644 |
| --- a/ui/views/animation/ink_drop_impl.cc |
| +++ b/ui/views/animation/ink_drop_impl.cc |
| @@ -110,6 +110,11 @@ void InkDropImpl::SetHovered(bool is_hovered) { |
| false); |
| } |
| +void InkDropImpl::SnapToHovered(bool is_hovered) { |
|
Evan Stade
2016/05/24 18:47:18
I specifically avoided turning |is_hovered_| into
|
| + is_hovered_ = is_hovered; |
| + SetHoveredInternal(is_hovered, base::TimeDelta(), false); |
| +} |
| + |
| void InkDropImpl::DestroyHiddenTargetedAnimations() { |
| if (ink_drop_ripple_ && |
| (ink_drop_ripple_->target_ink_drop_state() == InkDropState::HIDDEN || |