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

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

Issue 2034963002: Rename InkDropHover to InkDropHighlight (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: relative patchset Created 4 years, 6 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_HOVER_OBSERVER_H_ 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_HIGHLIGHT_OBSERVER_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_HOVER_OBSERVER_H_ 6 #define UI_VIEWS_ANIMATION_INK_DROP_HIGHLIGHT_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/views/animation/ink_drop_animation_ended_reason.h" 11 #include "ui/views/animation/ink_drop_animation_ended_reason.h"
12 #include "ui/views/animation/ink_drop_hover.h" 12 #include "ui/views/animation/ink_drop_highlight.h"
13 #include "ui/views/views_export.h" 13 #include "ui/views/views_export.h"
14 14
15 namespace views { 15 namespace views {
16 16
17 // Observer to attach to an InkDropHover animation. 17 // Observer to attach to an InkDropHighlight animation.
18 class VIEWS_EXPORT InkDropHoverObserver { 18 class VIEWS_EXPORT InkDropHighlightObserver {
19 public: 19 public:
20 // An animation for the given |animation_type| has started. 20 // An animation for the given |animation_type| has started.
21 virtual void AnimationStarted(InkDropHover::AnimationType animation_type) = 0; 21 virtual void AnimationStarted(
22 InkDropHighlight::AnimationType animation_type) = 0;
22 23
23 // Notifies the observer that an animation for the given |animation_type| has 24 // Notifies the observer that an animation for the given |animation_type| has
24 // finished and the reason for completion is given by |reason|. If |reason| is 25 // 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 26 // 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 27 // |reason| is |PRE_EMPTED| then the animation was stopped before its final
27 // frame. 28 // frame.
28 virtual void AnimationEnded(InkDropHover::AnimationType animation_type, 29 virtual void AnimationEnded(InkDropHighlight::AnimationType animation_type,
29 InkDropAnimationEndedReason reason) = 0; 30 InkDropAnimationEndedReason reason) = 0;
30 31
31 protected: 32 protected:
32 InkDropHoverObserver() = default; 33 InkDropHighlightObserver() = default;
33 virtual ~InkDropHoverObserver() = default; 34 virtual ~InkDropHighlightObserver() = default;
34 35
35 private: 36 private:
36 DISALLOW_COPY_AND_ASSIGN(InkDropHoverObserver); 37 DISALLOW_COPY_AND_ASSIGN(InkDropHighlightObserver);
37 }; 38 };
38 39
39 } // namespace views 40 } // namespace views
40 41
41 #endif // UI_VIEWS_ANIMATION_INK_DROP_HOVER_OBSERVER_H_ 42 #endif // UI_VIEWS_ANIMATION_INK_DROP_HIGHLIGHT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698