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

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

Issue 1896953003: Added a views::test::TestInkDropAnimationObserverHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build issue and nit. Created 4 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 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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void CreateInkDropHover(); 61 void CreateInkDropHover();
62 62
63 // Destroys the current |hover_|. 63 // Destroys the current |hover_|.
64 void DestroyInkDropHover(); 64 void DestroyInkDropHover();
65 65
66 // Returns true if the hover animation is in the process of fading in or 66 // Returns true if the hover animation is in the process of fading in or
67 // is visible. 67 // is visible.
68 bool IsHoverFadingInOrVisible() const; 68 bool IsHoverFadingInOrVisible() const;
69 69
70 // views::InkDropAnimationObserver: 70 // views::InkDropAnimationObserver:
71 void InkDropAnimationStarted(InkDropState ink_drop_state) override; 71 void AnimationStarted(InkDropState ink_drop_state) override;
72 void InkDropAnimationEnded(InkDropState ink_drop_state, 72 void AnimationEnded(InkDropState ink_drop_state,
73 InkDropAnimationEndedReason reason) override; 73 InkDropAnimationEndedReason reason) override;
74 74
75 // Enables or disables the hover state based on |is_hovered| and if an 75 // Enables or disables the hover state based on |is_hovered| and if an
76 // animation is triggered it will be scheduled to have the given 76 // animation is triggered it will be scheduled to have the given
77 // |animation_duration|. 77 // |animation_duration|.
78 void SetHoveredInternal(bool is_hovered, base::TimeDelta animation_duration); 78 void SetHoveredInternal(bool is_hovered, base::TimeDelta animation_duration);
79 79
80 // Starts the |hover_after_animation_timer_| timer. This will stop the current 80 // Starts the |hover_after_animation_timer_| timer. This will stop the current
81 // |hover_after_animation_timer_| instance if it exists. 81 // |hover_after_animation_timer_| instance if it exists.
82 void StartHoverAfterAnimationTimer(); 82 void StartHoverAfterAnimationTimer();
83 83
(...skipping 25 matching lines...) Expand all
109 109
110 // The timer used to delay the hover fade in after an ink drop animation. 110 // The timer used to delay the hover fade in after an ink drop animation.
111 std::unique_ptr<base::Timer> hover_after_animation_timer_; 111 std::unique_ptr<base::Timer> hover_after_animation_timer_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationControllerImpl); 113 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationControllerImpl);
114 }; 114 };
115 115
116 } // namespace views 116 } // namespace views
117 117
118 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_CONTROLLER_IMPL_H_ 118 #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