OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/macros.h" | 5 #include "base/macros.h" |
6 #include "ui/views/animation/ink_drop.h" | 6 #include "ui/views/animation/ink_drop.h" |
7 #include "ui/views/views_export.h" | 7 #include "ui/views/views_export.h" |
8 | 8 |
9 namespace views { | 9 namespace views { |
10 | 10 |
11 // A stub implementation of an InkDrop that can be used when no visuals should | 11 // A stub implementation of an InkDrop that can be used when no visuals should |
12 // be shown. e.g. material design is enabled. | 12 // be shown. e.g. material design is enabled. |
13 class VIEWS_EXPORT InkDropStub : public InkDrop { | 13 class VIEWS_EXPORT InkDropStub : public InkDrop { |
14 public: | 14 public: |
15 InkDropStub(); | 15 InkDropStub(); |
16 ~InkDropStub() override; | 16 ~InkDropStub() override; |
17 | 17 |
18 // InkDrop: | 18 // InkDrop: |
19 void HostSizeChanged(const gfx::Size& new_size) override; | 19 void HostSizeChanged(const gfx::Size& new_size) override; |
20 InkDropState GetTargetInkDropState() const override; | 20 InkDropState GetTargetInkDropState() const override; |
21 void AnimateToState(InkDropState state) override; | 21 void AnimateToState(InkDropState state) override; |
22 void SnapToActivated() override; | 22 void SnapToActivated() override; |
23 void SetHovered(bool is_hovered) override; | 23 void SetHovered(bool is_hovered) override; |
24 void SetFocused(bool is_hovered) override; | 24 void SetFocused(bool is_hovered) override; |
| 25 bool IsHighlightFadingInOrVisible() const override; |
| 26 void SetShowHighlightOnHover(bool show_highlight_on_hover) override; |
| 27 void SetShowHighlightOnFocus(bool show_highlight_on_focus) override; |
25 | 28 |
26 private: | 29 private: |
27 DISALLOW_COPY_AND_ASSIGN(InkDropStub); | 30 DISALLOW_COPY_AND_ASSIGN(InkDropStub); |
28 }; | 31 }; |
29 | 32 |
30 } // namespace views | 33 } // namespace views |
OLD | NEW |