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

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

Issue 1915983009: Fixed material design ink drop location for the MD download shelf buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed InkDropHover ctor. Created 4 years, 8 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
Index: ui/views/animation/flood_fill_ink_drop_animation.h
diff --git a/ui/views/animation/flood_fill_ink_drop_animation.h b/ui/views/animation/flood_fill_ink_drop_animation.h
index 97a4cd08b2d2cf5cd150505938d3b79664987070..ab05fd85500d5e8c4467d7d21db14fbca69a75e5 100644
--- a/ui/views/animation/flood_fill_ink_drop_animation.h
+++ b/ui/views/animation/flood_fill_ink_drop_animation.h
@@ -51,6 +51,9 @@ class VIEWS_EXPORT FloodFillInkDropAnimation : public InkDropAnimation {
FloodFillInkDropAnimation(const gfx::Size& size,
const gfx::Point& center_point,
SkColor color);
+ FloodFillInkDropAnimation(const gfx::Rect& clip_bounds,
+ const gfx::Point& center_point,
+ SkColor color);
~FloodFillInkDropAnimation() override;
// InkDropAnimation:
@@ -101,8 +104,8 @@ class VIEWS_EXPORT FloodFillInkDropAnimation : public InkDropAnimation {
// Returns the target Transform for when the ink drop is fully shown.
gfx::Transform GetMaxSizeTargetTransform() const;
- // The clip Size.
- const gfx::Size size_;
+ // The clip bounds.
+ const gfx::Rect clip_bounds_;
// The point where the Center of the ink drop's circle should be drawn.
gfx::Point center_point_;

Powered by Google App Engine
This is Rietveld 408576698