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

Unified Diff: ui/views/animation/ink_drop_ripple.cc

Issue 2250783002: Allow InkDropRipple to co-exist with highlight (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl try Created 4 years, 4 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_ripple.cc
diff --git a/ui/views/animation/ink_drop_ripple.cc b/ui/views/animation/ink_drop_ripple.cc
index 06e38439bbe145737f01b123ec89bfc7f3e6ac74..7b579d127074b308171f4a7ae52d85b2e42d53e4 100644
--- a/ui/views/animation/ink_drop_ripple.cc
+++ b/ui/views/animation/ink_drop_ripple.cc
@@ -84,6 +84,10 @@ void InkDropRipple::SnapToActivated() {
animation_observer->SetActive();
}
+bool InkDropRipple::IsVisible() {
+ return GetRootLayer() && GetRootLayer()->visible();
+}
+
void InkDropRipple::HideImmediately() {
AbortAllAnimations();
SetStateToHidden();

Powered by Google App Engine
This is Rietveld 408576698