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

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

Issue 2340993002: Tweaks to "Allow InkDropRipple to co-exist with highlight or not exist at all." (Closed)
Patch Set: Fixed InkDropImplTest.HighlightCanExistWithoutRipple. Created 4 years, 3 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/square_ink_drop_ripple.cc
diff --git a/ui/views/animation/square_ink_drop_ripple.cc b/ui/views/animation/square_ink_drop_ripple.cc
index a01bbfd12bb2ce86460622cbb8d31fadb925e8d9..49fd5512e24f73f23d4c3f065aa0a3b856a8920b 100644
--- a/ui/views/animation/square_ink_drop_ripple.cc
+++ b/ui/views/animation/square_ink_drop_ripple.cc
@@ -214,8 +214,8 @@ ui::Layer* SquareInkDropRipple::GetRootLayer() {
return &root_layer_;
}
-bool SquareInkDropRipple::IsVisible() const {
- return root_layer_.visible();
+bool SquareInkDropRipple::OverridesHighlight() const {
+ return true;
}
float SquareInkDropRipple::GetCurrentOpacity() const {

Powered by Google App Engine
This is Rietveld 408576698