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

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

Issue 2431493002: MD Buttons: Don't add layers for hidden -> hidden transitions. (Closed)
Patch Set: Additional test Created 4 years, 2 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/ink_drop_impl_unittest.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 92b77bb449f1c9e2c4f68ca97bff127b59a3f4af..b4beb7859c0aee10dd2051b6657b1ceb6ac315c5 100644
--- a/ui/views/animation/test/test_ink_drop_host.h
+++ b/ui/views/animation/test/test_ink_drop_host.h
@@ -17,7 +17,10 @@ class TestInkDropHost : public InkDropHost {
TestInkDropHost();
~TestInkDropHost() override;
- int num_ink_drop_layers() const { return num_ink_drop_layers_; }
+ int num_ink_drop_layers_added() const { return num_ink_drop_layers_added_; }
+ int num_ink_drop_layers() const {
+ return num_ink_drop_layers_added_ - num_ink_drop_layers_removed_;
+ }
void set_should_show_highlight(bool should_show_highlight) {
should_show_highlight_ = should_show_highlight;
@@ -38,7 +41,8 @@ class TestInkDropHost : public InkDropHost {
std::unique_ptr<InkDropHighlight> CreateInkDropHighlight() const override;
private:
- int num_ink_drop_layers_;
+ int num_ink_drop_layers_added_;
+ int num_ink_drop_layers_removed_;
bool should_show_highlight_;
« no previous file with comments | « ui/views/animation/ink_drop_impl_unittest.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