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

Unified Diff: ash/wm/session_state_animator.h

Issue 2867673004: Use OnceCallback on Mojo interfaces in //ash (Closed)
Patch Set: count -> container_count Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | ash/wm/session_state_animator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/session_state_animator.h
diff --git a/ash/wm/session_state_animator.h b/ash/wm/session_state_animator.h
index 89b617b65b383b81ff1f0876b3f729e15a012130..764a40002ecba5bba1c67c7c5284902f51557726 100644
--- a/ash/wm/session_state_animator.h
+++ b/ash/wm/session_state_animator.h
@@ -143,7 +143,7 @@ class ASH_EXPORT SessionStateAnimator {
protected:
// AnimationSequence should not be instantiated directly, only through
// subclasses.
- explicit AnimationSequence(base::Closure callback);
+ explicit AnimationSequence(base::OnceClosure callback);
// Subclasses should call this when the contained animations completed
// successfully.
@@ -174,7 +174,7 @@ class ASH_EXPORT SessionStateAnimator {
bool invoke_callback_;
// Callback to be called.
- base::Closure callback_;
+ base::OnceClosure callback_;
DISALLOW_COPY_AND_ASSIGN(AnimationSequence);
};
@@ -197,12 +197,13 @@ class ASH_EXPORT SessionStateAnimator {
virtual void StartAnimationWithCallback(int container_mask,
AnimationType type,
AnimationSpeed speed,
- base::Closure callback) = 0;
+ base::OnceClosure callback) = 0;
// Begins an animation sequence. Use this when you need to be notified when
// a group of animations are completed. See AnimationSequence documentation
// for more details.
- virtual AnimationSequence* BeginAnimationSequence(base::Closure callback) = 0;
+ virtual AnimationSequence* BeginAnimationSequence(
+ base::OnceClosure callback) = 0;
// Retruns true if the wallpaper is hidden.
virtual bool IsWallpaperHidden() const = 0;
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | ash/wm/session_state_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698