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

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: Refactor ink drop animations (nits in ui/views/ 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
« no previous file with comments | « ui/views/animation/ink_drop_delegate.h ('k') | ui/views/animation/test/test_ink_drop_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0830a41294ac3ab39632a5bb1b0311437ca90baa 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,10 @@ 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.
+ // TODO(varkha): This should be moved to InkDropConsumer.
+ virtual gfx::Point CalculateInkDropCenter() const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(InkDropHost);
};
« no previous file with comments | « ui/views/animation/ink_drop_delegate.h ('k') | ui/views/animation/test/test_ink_drop_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698