| 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 5dab611315004990bc09fafb918353dc801460a4..3ab8303e9f8821d8dd77e1f7ba7308153cd78a60 100644
|
| --- a/ui/views/controls/button/custom_button.cc
|
| +++ b/ui/views/controls/button/custom_button.cc
|
| @@ -333,6 +333,26 @@ void CustomButton::AnimationProgressed(const gfx::Animation* animation) {
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
| +// CustomButton, views::InkDropHost implementation:
|
| +
|
| +void CustomButton::AddInkDropLayer(ui::Layer* ink_drop_layer) {
|
| + SetPaintToLayer(true);
|
| + SetFillsBoundsOpaquely(false);
|
| + layer()->Add(ink_drop_layer);
|
| + layer()->StackAtBottom(ink_drop_layer);
|
| +}
|
| +
|
| +void CustomButton::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
|
| + layer()->Remove(ink_drop_layer);
|
| + SetFillsBoundsOpaquely(true);
|
| + SetPaintToLayer(false);
|
| +}
|
| +
|
| +gfx::Point CustomButton::CalculateInkDropCenter() const {
|
| + return GetLocalBounds().CenterPoint();
|
| +}
|
| +
|
| +////////////////////////////////////////////////////////////////////////////////
|
| // CustomButton, protected:
|
|
|
| CustomButton::CustomButton(ButtonListener* listener)
|
|
|