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

Unified Diff: ui/views/animation/ink_drop.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: fix tests 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
Index: ui/views/animation/ink_drop.h
diff --git a/ui/views/animation/ink_drop.h b/ui/views/animation/ink_drop.h
index c79828ac5672276d84c892e4c9aa7bcb818c1cd7..e359c1fdcdbaccef4f8abce0d9606f8f21b8d1c8 100644
--- a/ui/views/animation/ink_drop.h
+++ b/ui/views/animation/ink_drop.h
@@ -47,6 +47,9 @@ class VIEWS_EXPORT InkDrop {
// Enables or disables the hover state.
virtual void SetHovered(bool is_hovered) = 0;
+ // Sets the hovered state without animating.
+ virtual void SnapToHovered(bool is_hovered) = 0;
+
protected:
InkDrop() {}

Powered by Google App Engine
This is Rietveld 408576698