OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_OBSERVER_H_ |
| 6 #define UI_VIEWS_ANIMATION_INK_DROP_OBSERVER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "ui/views/views_export.h" |
| 12 |
| 13 namespace views { |
| 14 |
| 15 // Observer to attach to an InkDrop. |
| 16 class VIEWS_EXPORT InkDropObserver { |
| 17 public: |
| 18 // Called when the animation of the current InkDrop has started. This |
| 19 // includes the ripple or highlight animation. Note: this is not guaranteed to |
| 20 // be notified, as the notification is dependent on the subclass |
| 21 // implementation. |
| 22 virtual void InkDropAnimationStarted() = 0; |
| 23 |
| 24 protected: |
| 25 InkDropObserver() = default; |
| 26 virtual ~InkDropObserver() = default; |
| 27 |
| 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(InkDropObserver); |
| 30 }; |
| 31 |
| 32 } // namespace views |
| 33 |
| 34 #endif // UI_VIEWS_ANIMATION_INK_DROP_OBSERVER_H_ |
OLD | NEW |