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

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

Issue 1478303003: Converted all Views to use an InkDropDelegate instead of a InkDropAnimationController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed CustomButton::set_ink_drop_action_on_click() method. Created 5 years 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_delegate_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 b952b77adb815240e34283de12182abb097571da..7baa391291ad831cdd8f908f5cd3051eb6740e3c 100644
--- a/ui/views/animation/test/test_ink_drop_host.h
+++ b/ui/views/animation/test/test_ink_drop_host.h
@@ -10,19 +10,23 @@
namespace views {
-// A non-functional, dummy implementation of an InkDropHost that can be used as
-// a placeholder during tests.
+// A non-functional implementation of an InkDropHost that can be used during
+// tests. Tracks the number of hosted ink drop layers.
class TestInkDropHost : public InkDropHost {
public:
TestInkDropHost();
~TestInkDropHost() override;
+ int num_ink_drop_layers() const { return num_ink_drop_layers_; }
+
// TestInkDropHost:
void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
gfx::Point CalculateInkDropCenter() const override;
private:
+ int num_ink_drop_layers_;
+
DISALLOW_COPY_AND_ASSIGN(TestInkDropHost);
};
« no previous file with comments | « ui/views/animation/ink_drop_delegate_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