| Index: ui/views/animation/button_ink_drop_delegate.h
|
| diff --git a/ui/views/animation/button_ink_drop_delegate.h b/ui/views/animation/button_ink_drop_delegate.h
|
| index b1e1b5f553175347587c261cec4078e034134856..f4c245ecdc1dac9d4473da1a25150980837eb118 100644
|
| --- a/ui/views/animation/button_ink_drop_delegate.h
|
| +++ b/ui/views/animation/button_ink_drop_delegate.h
|
| @@ -8,6 +8,7 @@
|
| #include "base/macros.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "ui/events/event_handler.h"
|
| +#include "ui/gfx/geometry/point.h"
|
| #include "ui/views/animation/ink_drop_delegate.h"
|
| #include "ui/views/views_export.h"
|
|
|
| @@ -28,6 +29,13 @@ class VIEWS_EXPORT ButtonInkDropDelegate : public InkDropDelegate,
|
| ButtonInkDropDelegate(InkDropHost* ink_drop_host, View* view);
|
| ~ButtonInkDropDelegate() override;
|
|
|
| + const gfx::Point& last_ink_drop_location() const {
|
| + return last_ink_drop_location_;
|
| + }
|
| + void set_last_ink_drop_location(const gfx::Point& point) {
|
| + last_ink_drop_location_ = point;
|
| + }
|
| +
|
| // InkDropDelegate:
|
| void OnAction(InkDropState state) override;
|
| void SnapToActivated() override;
|
| @@ -44,6 +52,10 @@ class VIEWS_EXPORT ButtonInkDropDelegate : public InkDropDelegate,
|
| // Parent InkDropHost (typically a View) that hosts the ink ripple animations.
|
| InkDropHost* ink_drop_host_;
|
|
|
| + // Location of the last ink drop triggering event in coordinate system of the
|
| + // ctor argument |view|.
|
| + gfx::Point last_ink_drop_location_;
|
| +
|
| // Animation controller for the ink drop ripple effect.
|
| scoped_ptr<InkDropAnimationController> ink_drop_animation_controller_;
|
|
|
|
|