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

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

Issue 2028303004: Hide hover effect on hidden ink drop host views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 7 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_delegate.h
diff --git a/ui/views/animation/test/test_ink_drop_delegate.h b/ui/views/animation/test/test_ink_drop_delegate.h
index ec9b7c9626b1a7ad75d6feb53c5d065411e8980a..ce8415605b48a0904844f07733fad681b0ca5c37 100644
--- a/ui/views/animation/test/test_ink_drop_delegate.h
+++ b/ui/views/animation/test/test_ink_drop_delegate.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "ui/views/animation/ink_drop_delegate.h"
+#include "ui/views/animation/test/test_ink_drop.h"
namespace views {
namespace test {
@@ -16,7 +17,7 @@ class TestInkDropDelegate : public InkDropDelegate {
TestInkDropDelegate();
~TestInkDropDelegate() override;
- bool is_hovered() const { return is_hovered_; }
+ bool is_hovered() const { return ink_drop_.is_hovered(); }
// InkDropDelegate:
void OnAction(InkDropState state) override;
@@ -26,9 +27,7 @@ class TestInkDropDelegate : public InkDropDelegate {
InkDrop* GetInkDrop() override;
private:
- InkDropState state_;
-
- bool is_hovered_;
+ TestInkDrop ink_drop_;
DISALLOW_COPY_AND_ASSIGN(TestInkDropDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698