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

Side by Side Diff: ash/test/test_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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ASH_TEST_TEST_SESSION_STATE_ANIMATOR_H_ 5 #ifndef ASH_TEST_TEST_SESSION_STATE_ANIMATOR_H_
6 #define ASH_TEST_TEST_SESSION_STATE_ANIMATOR_H_ 6 #define ASH_TEST_TEST_SESSION_STATE_ANIMATOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Returns the number of active animations. 63 // Returns the number of active animations.
64 size_t GetAnimationCount() const; 64 size_t GetAnimationCount() const;
65 65
66 // ash::SessionStateAnimator: 66 // ash::SessionStateAnimator:
67 void StartAnimation(int container_mask, 67 void StartAnimation(int container_mask,
68 AnimationType type, 68 AnimationType type,
69 AnimationSpeed speed) override; 69 AnimationSpeed speed) override;
70 void StartAnimationWithCallback(int container_mask, 70 void StartAnimationWithCallback(int container_mask,
71 AnimationType type, 71 AnimationType type,
72 AnimationSpeed speed, 72 AnimationSpeed speed,
73 base::Closure callback) override; 73 base::OnceClosure callback) override;
74 AnimationSequence* BeginAnimationSequence(base::Closure callback) override; 74 AnimationSequence* BeginAnimationSequence(
75 base::OnceClosure callback) override;
75 bool IsWallpaperHidden() const override; 76 bool IsWallpaperHidden() const override;
76 void ShowWallpaper() override; 77 void ShowWallpaper() override;
77 void HideWallpaper() override; 78 void HideWallpaper() override;
78 79
79 private: 80 private:
80 class AnimationSequence; 81 class AnimationSequence;
81 friend class AnimationSequence; 82 friend class AnimationSequence;
82 83
83 // Data structure to track the currently active animations and their 84 // Data structure to track the currently active animations and their
84 // callbacks. 85 // callbacks.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Tracks whether the wallpaper is hidden or not. 155 // Tracks whether the wallpaper is hidden or not.
155 bool is_wallpaper_hidden_; 156 bool is_wallpaper_hidden_;
156 157
157 DISALLOW_COPY_AND_ASSIGN(TestSessionStateAnimator); 158 DISALLOW_COPY_AND_ASSIGN(TestSessionStateAnimator);
158 }; 159 };
159 160
160 } // namespace test 161 } // namespace test
161 } // namespace ash 162 } // namespace ash
162 163
163 #endif // ASH_TEST_TEST_SESSION_STATE_ANIMATOR_H_ 164 #endif // ASH_TEST_TEST_SESSION_STATE_ANIMATOR_H_
OLDNEW
« no previous file with comments | « ash/system/locale/locale_notification_controller.cc ('k') | ash/test/test_session_state_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698