| Index: ui/views/controls/button/custom_button.h
|
| diff --git a/ui/views/controls/button/custom_button.h b/ui/views/controls/button/custom_button.h
|
| index 55c392e18aa60a16a01ae0a097cb95228f35662f..3c60ea1a98acda0aa299989a7f9e045d16c5a0f5 100644
|
| --- a/ui/views/controls/button/custom_button.h
|
| +++ b/ui/views/controls/button/custom_button.h
|
| @@ -9,6 +9,7 @@
|
| #include "base/memory/scoped_ptr.h"
|
| #include "ui/events/event_constants.h"
|
| #include "ui/gfx/animation/animation_delegate.h"
|
| +#include "ui/views/animation/ink_drop_host.h"
|
| #include "ui/views/animation/ink_drop_state.h"
|
| #include "ui/views/controls/button/button.h"
|
|
|
| @@ -25,7 +26,8 @@ class InkDropDelegate;
|
| // part of the focus chain. Call SetFocusable(true) to make it part of the
|
| // focus chain.
|
| class VIEWS_EXPORT CustomButton : public Button,
|
| - public gfx::AnimationDelegate {
|
| + public gfx::AnimationDelegate,
|
| + public views::InkDropHost {
|
| public:
|
| // An enum describing the events on which a button should notify its listener.
|
| enum NotifyAction {
|
| @@ -103,6 +105,11 @@ class VIEWS_EXPORT CustomButton : public Button,
|
| // Overridden from gfx::AnimationDelegate:
|
| void AnimationProgressed(const gfx::Animation* animation) override;
|
|
|
| + // Overridden from views::InkDropHost:
|
| + void AddInkDropLayer(ui::Layer* ink_drop_layer) override;
|
| + void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override;
|
| + gfx::Point CalculateInkDropCenter() const override;
|
| +
|
| protected:
|
| // Construct the Button with a Listener. See comment for Button's ctor.
|
| explicit CustomButton(ButtonListener* listener);
|
|
|