Chromium Code Reviews| Index: ui/views/animation/test/test_ink_drop.h |
| diff --git a/ui/views/animation/test/test_ink_drop.h b/ui/views/animation/test/test_ink_drop.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..59f6cec5bc4549bf9084bf9d21eeab8db99744d1 |
| --- /dev/null |
| +++ b/ui/views/animation/test/test_ink_drop.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright 2016 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_TEST_INK_DROP_H_ |
| +#define UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_H_ |
| + |
| +#include "base/macros.h" |
| +#include "ui/views/animation/ink_drop.h" |
| + |
| +namespace views { |
| +namespace test { |
| + |
| +class TestInkDrop : public InkDrop { |
| + public: |
| + TestInkDrop() : InkDrop() { }; |
|
sky
2016/06/02 02:01:40
nit: no ';' and no space between { }. If you run g
|
| + ~TestInkDrop() override { }; |
|
sky
2016/06/02 02:01:40
no ';' here either (and the rest of this file).
|
| + |
| + InkDropState GetTargetInkDropState() const override { |
| + return InkDropState::HIDDEN; |
| + }; |
| + |
| + bool IsVisible() const override { return false; }; |
| + void AnimateToState(InkDropState ink_drop_state) override { }; |
| + void SnapToActivated() override { }; |
| + void SetHovered(bool is_hovered) override { }; |
| + void SetFocused(bool is_focused) override { }; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(TestInkDrop); |
| +}; |
| + |
| +} // namespace test |
| +} // namespace views |
| + |
| +#endif // UI_VIEWS_ANIMATION_TEST_TEST_INK_DROP_H_ |
| + |