OLD | NEW |
(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_ |
OLD | NEW |