| 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_
|
|
|