Chromium Code Reviews| Index: ui/views/controls/button/custom_button.cc |
| diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc |
| index 76525064a7e34ab110e46752ecb27228656ec21a..dd41ee011bfd0f2cfe1da2299ffc8a3e4e65506e 100644 |
| --- a/ui/views/controls/button/custom_button.cc |
| +++ b/ui/views/controls/button/custom_button.cc |
| @@ -331,6 +331,17 @@ void CustomButton::AnimationProgressed(const gfx::Animation* animation) { |
| } |
| //////////////////////////////////////////////////////////////////////////////// |
| +// CustomButton, views::InkDropHost implementation: |
| + |
| +void CustomButton::AddInkDropLayer(ui::Layer* ink_drop_layer) {} |
| + |
| +void CustomButton::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {} |
|
Peter Kasting
2015/12/28 13:44:33
Having to override these just to give empty implem
bruthig
2015/12/28 17:36:16
I agree that would simplify things but I thought t
Peter Kasting
2015/12/28 17:38:41
I don't consider this to be qualitatively differen
bruthig
2015/12/28 18:35:40
Done.
|
| + |
| +gfx::Point CustomButton::CalculateInkDropCenter() const { |
| + return GetLocalBounds().CenterPoint(); |
| +} |
| + |
| +//////////////////////////////////////////////////////////////////////////////// |
| // CustomButton, protected: |
| CustomButton::CustomButton(ButtonListener* listener) |