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

Unified Diff: ui/views/animation/test/test_ink_drop_host.h

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/test/test_ink_drop_host.h
diff --git a/ui/views/animation/test/test_ink_drop_host.h b/ui/views/animation/test/test_ink_drop_host.h
index 6b4643077a7bb5c6b6bbc093014bb01a20556188..53a10bd4d7460a0282c234c3780f5001cc393ae0 100644
--- a/ui/views/animation/test/test_ink_drop_host.h
+++ b/ui/views/animation/test/test_ink_drop_host.h
@@ -23,10 +23,18 @@ class TestInkDropHost : public InkDropHost {
should_show_highlight_ = should_show_highlight;
}
+ void set_should_show_ripple(bool should_show_ripple) {
+ should_show_ripple_ = should_show_ripple;
+ }
+
void set_disable_timers_for_test(bool disable_timers_for_test) {
disable_timers_for_test_ = disable_timers_for_test;
}
+ void set_ripple_overrides_highlight(bool overrides_highlight) {
+ ripple_overrides_highlight_ = overrides_highlight;
+ }
+
// TestInkDropHost:
void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
@@ -38,6 +46,10 @@ class TestInkDropHost : public InkDropHost {
bool should_show_highlight_;
+ bool should_show_ripple_;
+
+ bool ripple_overrides_highlight_;
+
// When true, the InkDropRipple/InkDropHighlight instances will have their
// timers disabled after creation.
bool disable_timers_for_test_;

Powered by Google App Engine
This is Rietveld 408576698