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

Side by Side Diff: ui/views/animation/ink_drop_animation_observer.h

Issue 1951593002: Add MD Ink Drop to host only when a ripple/hover is active. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Replaced unique_ptr with scoped_ptr. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_OBSERVER_H_ 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_OBSERVER_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_OBSERVER_H_ 6 #define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // Notifies the observer that an animation for the given |ink_drop_state| has 23 // Notifies the observer that an animation for the given |ink_drop_state| has
24 // finished and the reason for completion is given by |reason|. If |reason| is 24 // finished and the reason for completion is given by |reason|. If |reason| is
25 // SUCCESS then the animation has progressed to its final frame however if 25 // SUCCESS then the animation has progressed to its final frame however if
26 // |reason| is |PRE_EMPTED| then the animation was stopped before its final 26 // |reason| is |PRE_EMPTED| then the animation was stopped before its final
27 // frame. 27 // frame.
28 virtual void AnimationEnded(InkDropState ink_drop_state, 28 virtual void AnimationEnded(InkDropState ink_drop_state,
29 InkDropAnimationEndedReason reason) = 0; 29 InkDropAnimationEndedReason reason) = 0;
30 30
31 protected: 31 protected:
32 InkDropAnimationObserver() {} 32 InkDropAnimationObserver() = default;
33 virtual ~InkDropAnimationObserver() {} 33 virtual ~InkDropAnimationObserver() = default;
34 34
35 private: 35 private:
36 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationObserver); 36 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationObserver);
37 }; 37 };
38 38
39 } // namespace views 39 } // namespace views
40 40
41 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_OBSERVER_H_ 41 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_animation_controller_impl_unittest.cc ('k') | ui/views/animation/ink_drop_hover.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698