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

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

Issue 1913243002: Enabled tests to control material design ink drop animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master. Created 4 years, 8 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
« no previous file with comments | « ui/views/animation/test/ink_drop_hover_test_api.cc ('k') | ui/views/animation/test/test_ink_drop_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5bf8650e3a4c1cf81f267f96ab65f5fac23aa024..7bb18e1a17af9ae3386618a7a54d38ce3f677ea5 100644
--- a/ui/views/animation/test/test_ink_drop_host.h
+++ b/ui/views/animation/test/test_ink_drop_host.h
@@ -23,6 +23,10 @@ class TestInkDropHost : public InkDropHost {
should_show_hover_ = should_show_hover;
}
+ void set_disable_timers_for_test(bool disable_timers_for_test) {
+ disable_timers_for_test_ = disable_timers_for_test;
+ }
+
// TestInkDropHost:
void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
@@ -34,6 +38,10 @@ class TestInkDropHost : public InkDropHost {
bool should_show_hover_;
+ // When true, the InkDropAnimation/InkDropHover instances will have their
+ // timers disabled after creation.
+ bool disable_timers_for_test_;
+
DISALLOW_COPY_AND_ASSIGN(TestInkDropHost);
};
« no previous file with comments | « ui/views/animation/test/ink_drop_hover_test_api.cc ('k') | ui/views/animation/test/test_ink_drop_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698