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

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

Issue 1390113006: Added material design mouse hover feedback support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed pkasting@'s comments from patch set 13. Created 5 years, 1 month 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_consumer.h
diff --git a/ui/views/animation/test/test_ink_drop_consumer.h b/ui/views/animation/test/test_ink_drop_consumer.h
new file mode 100644
index 0000000000000000000000000000000000000000..03a6a5dd7b38c329c658ef35b7083aece3934962
--- /dev/null
+++ b/ui/views/animation/test/test_ink_drop_consumer.h
@@ -0,0 +1,40 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_CONSUMER_H_
+#define UI_VIEWS_ANIMATION_TEST_INK_DROP_CONSUMER_H_
+
+#include "base/macros.h"
+#include "ui/views/animation/ink_drop_consumer.h"
+#include "ui/views/view.h"
+#include "ui/views/views_export.h"
+
+namespace views {
+namespace test {
+
+// A non-functional, dummy implementation of an InkDropConsumer that can be used
+// as a placeholder during tests.
+class TestInkDropConsumer : public views::InkDropConsumer {
+ public:
+ TestInkDropConsumer();
+ ~TestInkDropConsumer() override;
+
+ void set_should_show_ink_drop_hover(bool should_show_ink_drop_hover) {
+ should_show_ink_drop_hover_ = should_show_ink_drop_hover;
+ }
+
+ // InkDropConsumer:
+ bool ShouldShowInkDropHover() override;
+
+ private:
+ // The return value for ShouldShowInkDropHover().
+ bool should_show_ink_drop_hover_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestInkDropConsumer);
+};
+
+} // namespace test
+} // namespace views
+
+#endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_CONSUMER_H_

Powered by Google App Engine
This is Rietveld 408576698