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

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

Issue 1390113006: Added material design mouse hover feedback support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved MouseEntered/Exit() to hover handling in to the ButtonInkDropDelegate. Created 4 years, 11 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/ink_drop_host.h
diff --git a/ui/views/animation/ink_drop_host.h b/ui/views/animation/ink_drop_host.h
index f50fac789d76e84a61ef31f4702a9dfe06ae2b54..ab9f165080d75ee0fd8cd1ab8e714484a655efb6 100644
--- a/ui/views/animation/ink_drop_host.h
+++ b/ui/views/animation/ink_drop_host.h
@@ -34,9 +34,11 @@ class VIEWS_EXPORT InkDropHost {
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;
+ // Returns true if the InkDropHover should be shown.
+ virtual bool ShouldShowInkDropHover() const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(InkDropHost);
};

Powered by Google App Engine
This is Rietveld 408576698