| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ | 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ |
| 6 #define UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ | 6 #define UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/views/animation/ink_drop_state.h" | 9 #include "ui/views/animation/ink_drop_state.h" |
| 10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // enum. The InkDropAction enum should be a subset of the InkDropState values | 28 // enum. The InkDropAction enum should be a subset of the InkDropState values |
| 29 // as well as a NONE value. | 29 // as well as a NONE value. |
| 30 virtual void OnAction(InkDropState state) = 0; | 30 virtual void OnAction(InkDropState state) = 0; |
| 31 | 31 |
| 32 // Immediately snaps the InkDropState to ACTIVATED. | 32 // Immediately snaps the InkDropState to ACTIVATED. |
| 33 virtual void SnapToActivated() = 0; | 33 virtual void SnapToActivated() = 0; |
| 34 | 34 |
| 35 // Enables or disables the hover state. | 35 // Enables or disables the hover state. |
| 36 virtual void SetHovered(bool is_hovered) = 0; | 36 virtual void SetHovered(bool is_hovered) = 0; |
| 37 | 37 |
| 38 // Returns the current InkDropState |
| 39 virtual InkDropState GetTargetInkDropState() const = 0; |
| 40 |
| 38 private: | 41 private: |
| 39 DISALLOW_COPY_AND_ASSIGN(InkDropDelegate); | 42 DISALLOW_COPY_AND_ASSIGN(InkDropDelegate); |
| 40 }; | 43 }; |
| 41 | 44 |
| 42 } // namespace views | 45 } // namespace views |
| 43 | 46 |
| 44 #endif // UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ | 47 #endif // UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ |
| OLD | NEW |