OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_CONSUMER_H_ |
| 6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_CONSUMER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "ui/views/animation/ink_drop_consumer.h" |
| 10 #include "ui/views/view.h" |
| 11 #include "ui/views/views_export.h" |
| 12 |
| 13 namespace views { |
| 14 namespace test { |
| 15 |
| 16 // A non-functional, dummy implementation of an InkDropConsumer that can be used |
| 17 // as a placeholder during tests. |
| 18 class TestInkDropConsumer : public views::InkDropConsumer { |
| 19 public: |
| 20 TestInkDropConsumer(); |
| 21 ~TestInkDropConsumer() override; |
| 22 |
| 23 void set_should_show_ink_drop_hover(bool should_show_ink_drop_hover) { |
| 24 should_show_ink_drop_hover_ = should_show_ink_drop_hover; |
| 25 } |
| 26 |
| 27 // InkDropConsumer: |
| 28 bool ShouldShowInkDropHover() override; |
| 29 |
| 30 private: |
| 31 // The return value for ShouldShowInkDropHover(). |
| 32 bool should_show_ink_drop_hover_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(TestInkDropConsumer); |
| 35 }; |
| 36 |
| 37 } // namespace test |
| 38 } // namespace views |
| 39 |
| 40 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_CONSUMER_H_ |
OLD | NEW |