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

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

Issue 1411833006: Refactoring to make adding ink drop animations easier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Attempt to refactor ink drop animations (moving more stuff into InkDropDelegate) 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_host.h
diff --git a/ui/views/animation/ink_drop_host.h b/ui/views/animation/ink_drop_host.h
index 4045e09d6c10c5a3ee6874d6d10350404c68ce31..6246d68d35ff6728b4b66df69aec71976074a74b 100644
--- a/ui/views/animation/ink_drop_host.h
+++ b/ui/views/animation/ink_drop_host.h
@@ -6,6 +6,7 @@
#define UI_VIEWS_ANIMATION_INK_DROP_HOST_H_
#include "base/macros.h"
+#include "ui/gfx/geometry/point.h"
#include "ui/views/views_export.h"
namespace ui {
@@ -32,6 +33,9 @@ class VIEWS_EXPORT InkDropHost {
// Removes |ink_drop_layer| from the layer tree.
virtual void RemoveInkDropLayer(ui::Layer* ink_drop_layer) = 0;
+ // Returns the Point where the ink drop should be centered.
+ virtual gfx::Point CalculateInkDropCenter() const = 0;
bruthig 2015/11/12 16:41:15 Adding this here ties a host 1-to-1 with ripples.
varkha 2015/11/13 00:32:42 Added a TODO. I can change that once your CL lands
+
private:
DISALLOW_COPY_AND_ASSIGN(InkDropHost);
};

Powered by Google App Engine
This is Rietveld 408576698