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

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

Issue 1945743003: Added a views::test::TestInkDropAnimationObserverHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: 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_CONTROLLER_IMPL_H_ 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_IMPL_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_IMPL_H_ 6 #define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void CreateInkDropHover(); 60 void CreateInkDropHover();
61 61
62 // Destroys the current |hover_|. 62 // Destroys the current |hover_|.
63 void DestroyInkDropHover(); 63 void DestroyInkDropHover();
64 64
65 // Returns true if the hover animation is in the process of fading in or 65 // Returns true if the hover animation is in the process of fading in or
66 // is visible. 66 // is visible.
67 bool IsHoverFadingInOrVisible() const; 67 bool IsHoverFadingInOrVisible() const;
68 68
69 // views::InkDropAnimationObserver: 69 // views::InkDropAnimationObserver:
70 void InkDropAnimationStarted(InkDropState ink_drop_state) override; 70 void AnimationStarted(InkDropState ink_drop_state) override;
71 void InkDropAnimationEnded(InkDropState ink_drop_state, 71 void AnimationEnded(InkDropState ink_drop_state,
72 InkDropAnimationEndedReason reason) override; 72 InkDropAnimationEndedReason reason) override;
73 73
74 // Enables or disables the hover state based on |is_hovered| and if an 74 // Enables or disables the hover state based on |is_hovered| and if an
75 // animation is triggered it will be scheduled to have the given 75 // animation is triggered it will be scheduled to have the given
76 // |animation_duration|. If |explode| is true the hover will expand as it 76 // |animation_duration|. If |explode| is true the hover will expand as it
77 // fades out. |explode| is ignored when |is_hovered| is true. 77 // fades out. |explode| is ignored when |is_hovered| is true.
78 void SetHoveredInternal(bool is_hovered, 78 void SetHoveredInternal(bool is_hovered,
79 base::TimeDelta animation_duration, 79 base::TimeDelta animation_duration,
80 bool explode); 80 bool explode);
81 81
82 // Starts the |hover_after_animation_timer_| timer. This will stop the current 82 // Starts the |hover_after_animation_timer_| timer. This will stop the current
(...skipping 28 matching lines...) Expand all
111 111
112 // The timer used to delay the hover fade in after an ink drop animation. 112 // The timer used to delay the hover fade in after an ink drop animation.
113 scoped_ptr<base::Timer> hover_after_animation_timer_; 113 scoped_ptr<base::Timer> hover_after_animation_timer_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationControllerImpl); 115 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationControllerImpl);
116 }; 116 };
117 117
118 } // namespace views 118 } // namespace views
119 119
120 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_IMPL_H_ 120 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_animation.cc ('k') | ui/views/animation/ink_drop_animation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698