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

Unified Diff: ui/views/animation/ink_drop.cc

Issue 2720183002: [Views] Update ink drop for omnibox icons (Closed)
Patch Set: Removed CanProcessEventsWithinSubtree Created 3 years, 7 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
« no previous file with comments | « ui/views/animation/ink_drop.h ('k') | ui/views/animation/ink_drop_host_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop.cc
diff --git a/ui/views/animation/ink_drop.cc b/ui/views/animation/ink_drop.cc
index 6a1df9896c7f074d76645933d291b1ae052497c6..6d971090ae3bd6c2d24b9435c173e3cfb4517feb 100644
--- a/ui/views/animation/ink_drop.cc
+++ b/ui/views/animation/ink_drop.cc
@@ -4,8 +4,29 @@
#include "ui/views/animation/ink_drop.h"
+#include "ui/views/animation/ink_drop_observer.h"
+
namespace views {
+InkDrop::~InkDrop() {}
+
+void InkDrop::AddObserver(InkDropObserver* observer) {
+ CHECK(observer);
+ observers_.AddObserver(observer);
+}
+
+void InkDrop::RemoveObserver(InkDropObserver* observer) {
+ CHECK(observer);
+ observers_.RemoveObserver(observer);
+}
+
+InkDrop::InkDrop() {}
+
+void InkDrop::NotifyInkDropAnimationStarted() {
+ for (InkDropObserver& observer : observers_)
+ observer.InkDropAnimationStarted();
+}
+
InkDropContainerView::InkDropContainerView() {}
void InkDropContainerView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
« no previous file with comments | « ui/views/animation/ink_drop.h ('k') | ui/views/animation/ink_drop_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698