Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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_H_ | |
| 6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_H_ | |
| 7 | |
| 8 #include "ui/views/animation/ink_drop.h" | |
| 9 | |
| 10 namespace views { | |
| 11 | |
| 12 class TestInkDrop : public InkDrop { | |
| 13 public: | |
| 14 TestInkDrop(); | |
| 15 ~TestInkDrop() override; | |
| 16 | |
| 17 bool is_hovered() const { return is_hovered_; } | |
| 18 | |
| 19 InkDropState GetTargetInkDropState() const override; | |
| 20 bool IsVisible() const override; | |
| 21 void AnimateToState(InkDropState ink_drop_state) override; | |
| 22 void SnapToActivated() override; | |
| 23 void SetHovered(bool is_hovered) override; | |
| 24 void SetFocused(bool is_focused) override; | |
| 25 | |
| 26 private: | |
| 27 InkDropState state_; | |
| 28 bool is_hovered_; | |
|
bruthig
2016/06/03 02:59:24
Can you add 'bool is_focused_' too?
Evan Stade
2016/06/03 03:25:23
I'd not like to do so until there's a use for it
| |
| 29 | |
| 30 DISALLOW_COPY_AND_ASSIGN(TestInkDrop); | |
| 31 }; | |
| 32 | |
| 33 } // namespace views | |
| 34 | |
| 35 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_H_ | |
| OLD | NEW |