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

Unified Diff: ui/views/animation/ink_drop_animation_controller_impl.h

Issue 1422593003: Made material design ink drop QUICK_ACTION animation more visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merged in changes to ink drop hover. Created 5 years, 1 month 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: ui/views/animation/ink_drop_animation_controller_impl.h
diff --git a/ui/views/animation/ink_drop_animation_controller_impl.h b/ui/views/animation/ink_drop_animation_controller_impl.h
index fdd713e6b1ff89ae180c3ea593f3e0273df50ce2..5a3ed5f4f45ea2d7296c51f24c91bd5a75cd65eb 100644
--- a/ui/views/animation/ink_drop_animation_controller_impl.h
+++ b/ui/views/animation/ink_drop_animation_controller_impl.h
@@ -37,6 +37,7 @@ class VIEWS_EXPORT InkDropAnimationControllerImpl
// InkDropAnimationController:
InkDropState GetInkDropState() const override;
void AnimateToState(InkDropState ink_drop_state) override;
+ bool WillAutoAnimateToHidden() const override;
void SetHovered(bool is_hovered) override;
bool IsHovered() const override;
gfx::Size GetInkDropLargeSize() const override;
@@ -122,6 +123,10 @@ class VIEWS_EXPORT InkDropAnimationControllerImpl
// CreateInkDropAnimation().
scoped_ptr<InkDropAnimation> ink_drop_animation_;
+ // Tracks whether the InkDropAnimation can be destroyed when a
+ // InkDropState::HIDDEN animation completes.
+ bool can_destroy_after_hidden_animation_;
+
// The timer used to delay the hover fade in after an ink drop animation.
scoped_ptr<base::Timer> hover_after_animation_timer_;

Powered by Google App Engine
This is Rietveld 408576698