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

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

Issue 2001843002: Use ink drop hover for focus states on toolbar buttons and location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout Created 4 years, 7 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.h ('k') | ui/views/animation/ink_drop_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_delegate.h
diff --git a/ui/views/animation/ink_drop_delegate.h b/ui/views/animation/ink_drop_delegate.h
index 545f5be0e3af2ec5d7fcdf1be0bc0530d3634bda..0bec282aaf24b086d06029e36657664ea4bc31b7 100644
--- a/ui/views/animation/ink_drop_delegate.h
+++ b/ui/views/animation/ink_drop_delegate.h
@@ -16,6 +16,8 @@ class Event;
namespace views {
+class InkDrop;
+
// Ink ripple animation delegate that starts and stops animations based on
// View states and events.
class VIEWS_EXPORT InkDropDelegate {
@@ -38,6 +40,10 @@ class VIEWS_EXPORT InkDropDelegate {
// Returns the current InkDropState
virtual InkDropState GetTargetInkDropState() const = 0;
+ // Returns the ink drop that this delegate controls. TODO(estade): remove the
+ // above pass throughs and convert callers to using this function.
+ virtual InkDrop* GetInkDrop() = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(InkDropDelegate);
};
« no previous file with comments | « ui/views/animation/ink_drop.h ('k') | ui/views/animation/ink_drop_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698