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

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

Issue 1757993004: Added ink drop hover/ripple to menu hosting bookmark buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sky@ & varkha@ comments. Created 4 years, 9 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
« no previous file with comments | « ui/views/animation/ink_drop_delegate.h ('k') | ui/views/animation/square_ink_drop_animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/square_ink_drop_animation.h
diff --git a/ui/views/animation/square_ink_drop_animation.h b/ui/views/animation/square_ink_drop_animation.h
index 9a0bfcbcfb21860ac4bd4304268a4c25b617f798..d897a599c4b0bcb2bf47b122bdb4d1d8a6fa0b83 100644
--- a/ui/views/animation/square_ink_drop_animation.h
+++ b/ui/views/animation/square_ink_drop_animation.h
@@ -59,6 +59,7 @@ class VIEWS_EXPORT SquareInkDropAnimation : public InkDropAnimation {
~SquareInkDropAnimation() override;
// InkDropAnimation:
+ void SnapToActivated() override;
ui::Layer* GetRootLayer() override;
bool IsVisible() const override;
@@ -138,6 +139,10 @@ class VIEWS_EXPORT SquareInkDropAnimation : public InkDropAnimation {
// of the painted shape Layers.
void GetCurrentTransforms(InkDropTransforms* transforms_out) const;
+ // Updates all of the Transforms in |transforms_out| with the target
+ // Transforms for the ACTIVATED animation.
+ void GetActivatedTargetTransforms(InkDropTransforms* transforms_out) const;
+
// Adds and configures a new |painted_shape| layer to |painted_layers_|.
void AddPaintLayer(PaintedShape painted_shape);
« no previous file with comments | « ui/views/animation/ink_drop_delegate.h ('k') | ui/views/animation/square_ink_drop_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698