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 d5a4d8a3ec5e54a7b6f6ffb1a79c1dc4698792da..a693c3dc697b92d775698701ec11cdd90e380eea 100644 |
--- a/ui/views/animation/ink_drop_impl.cc |
+++ b/ui/views/animation/ink_drop_impl.cc |
@@ -667,6 +667,10 @@ void InkDropImpl::SetFocused(bool is_focused) { |
highlight_state_->OnFocusChanged(); |
} |
+bool InkDropImpl::IsHighlightFadingInOrVisible() const { |
+ return highlight_ && highlight_->IsFadingInOrVisible(); |
+} |
+ |
void InkDropImpl::DestroyHiddenTargetedAnimations() { |
if (ink_drop_ripple_ && |
(ink_drop_ripple_->target_ink_drop_state() == InkDropState::HIDDEN || |
@@ -733,15 +737,13 @@ void InkDropImpl::RemoveRootLayerFromHostIfNeeded() { |
} |
} |
-bool InkDropImpl::IsHighlightFadingInOrVisible() const { |
- return highlight_ && highlight_->IsFadingInOrVisible(); |
-} |
- |
// ----------------------------------------------------------------------------- |
// views::InkDropRippleObserver: |
void InkDropImpl::AnimationStarted(InkDropState ink_drop_state) { |
highlight_state_->AnimationStarted(ink_drop_state); |
+ if (observer_) |
+ observer_->InkDropAnimationStarted(); |
} |
void InkDropImpl::AnimationEnded(InkDropState ink_drop_state, |
@@ -766,7 +768,10 @@ void InkDropImpl::AnimationEnded(InkDropState ink_drop_state, |
// views::InkDropHighlightObserver: |
void InkDropImpl::AnimationStarted( |
- InkDropHighlight::AnimationType animation_type) {} |
+ InkDropHighlight::AnimationType animation_type) { |
+ if (observer_) |
+ observer_->InkDropAnimationStarted(); |
+} |
void InkDropImpl::AnimationEnded(InkDropHighlight::AnimationType animation_type, |
InkDropAnimationEndedReason reason) { |