Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Unified Diff: ui/views/animation/button_ink_drop_delegate.h

Issue 1832963002: MD - add ripples to DL shelf items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix another TODO Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view_md.cc ('k') | ui/views/animation/button_ink_drop_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698