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

Side by Side Diff: athena/screen/public/screen_animator.h

Issue 451753002: Add fade to white animation when power button is pressed on Athena (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ATHENA_SCREEN_PUBLIC_SCREEN_ANIMATOR_H_
6 #define ATHENA_SCREEN_PUBLIC_SCREEN_ANIMATOR_H_
7
8 #include "athena/athena_export.h"
9
10 namespace ui {
11 class ImplicitAnimationObserver;
12 }
13
14 namespace athena {
15
16 // Runs animations which affect the entire screen.
17 class ATHENA_EXPORT ScreenAnimator {
18 public:
19 virtual ~ScreenAnimator() {}
20
21 enum AnimationType {
22 ANIMATION_SHUTDOWN,
23 ANIMATION_CANCEL_SHUTDOWN
24 };
25
26 // Starts an animation of |type|. If |observer| is non-NULL, it is notified
27 // when the animation completes.
28 virtual void StartAnimation(AnimationType type,
29 ui::ImplicitAnimationObserver* observer) = 0;
30 };
31
32 } // namespace athena
33
34 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_ANIMATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698