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

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

Issue 2720183002: [Views] Update ink drop for omnibox icons (Closed)
Patch Set: Removed the mask Created 3 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/ink_drop_observer.h
diff --git a/ui/views/animation/ink_drop_observer.h b/ui/views/animation/ink_drop_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..3379ba6c4c5b159b9d25d280309add565b9d011f
--- /dev/null
+++ b/ui/views/animation/ink_drop_observer.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_ANIMATION_INK_DROP_OBSERVER_H_
+#define UI_VIEWS_ANIMATION_INK_DROP_OBSERVER_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "ui/views/views_export.h"
+
+namespace views {
+
+// Observer to attach to an InkDrop.
+class VIEWS_EXPORT InkDropObserver {
+ public:
+ // Called when the animation of the current InkDrop has started. This
+ // includes the ripple or highlight animation.
+ virtual void InkDropAnimationStarted() = 0;
+
+ protected:
+ InkDropObserver() = default;
+ virtual ~InkDropObserver() = default;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InkDropObserver);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_ANIMATION_INK_DROP_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698