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

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

Issue 2720183002: [Views] Update ink drop for omnibox icons (Closed)
Patch Set: Update the behavior Created 3 years, 9 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 0eb419e11105867f8c25447dee516146f55fd213..5e4023ac917c9f1917fcaf2aca6f90da1dded94c 100644
--- a/ui/views/animation/ink_drop.h
+++ b/ui/views/animation/ink_drop.h
@@ -46,6 +46,10 @@ class VIEWS_EXPORT InkDrop {
// Enables or disables the focus state.
virtual void SetFocused(bool is_focused) = 0;
+ // Returns true if the highlight should be visible based on the hover/focus
+ // status.
+ virtual bool ShouldHighlight() const = 0;
bruthig 2017/03/08 18:58:24 If we keep this function we should come up with a
spqchan 2017/03/14 00:07:52 I just realized that there's a IsHighlightFadingIn
+
protected:
InkDrop() {}

Powered by Google App Engine
This is Rietveld 408576698