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 19 matching lines...) Expand all Loading... |
30 virtual void SetInkDropSize(int large_size, | 30 virtual void SetInkDropSize(int large_size, |
31 int large_corner_radius, | 31 int large_corner_radius, |
32 int small_size, | 32 int small_size, |
33 int small_corner_radius) = 0; | 33 int small_corner_radius) = 0; |
34 | 34 |
35 // Called when the bounds or layout of the View changes necessitating change | 35 // Called when the bounds or layout of the View changes necessitating change |
36 // in positioning of ink ripple layers. | 36 // in positioning of ink ripple layers. |
37 virtual void OnLayout() = 0; | 37 virtual void OnLayout() = 0; |
38 | 38 |
39 // Called when ink ripple state changes. | 39 // Called when ink ripple state changes. |
| 40 // TODO(bruthig): Replace the InkDropState parameter with an InkDropAction |
| 41 // enum. The InkDropAction enum should be a subset of the InkDropState values |
| 42 // as well as a NONE value. |
40 virtual void OnAction(InkDropState state) = 0; | 43 virtual void OnAction(InkDropState state) = 0; |
41 | 44 |
42 private: | 45 private: |
43 DISALLOW_COPY_AND_ASSIGN(InkDropDelegate); | 46 DISALLOW_COPY_AND_ASSIGN(InkDropDelegate); |
44 }; | 47 }; |
45 | 48 |
46 } // namespace views | 49 } // namespace views |
47 | 50 |
48 #endif // UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ | 51 #endif // UI_VIEWS_ANIMATION_INK_DROP_DELEGATE_H_ |
OLD | NEW |