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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: athena/screen/public/screen_animator.h
diff --git a/athena/screen/public/screen_animator.h b/athena/screen/public/screen_animator.h
new file mode 100644
index 0000000000000000000000000000000000000000..3e9f4297ab34857446ec8ec915f5dd14d6550bd1
--- /dev/null
+++ b/athena/screen/public/screen_animator.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ATHENA_SCREEN_PUBLIC_SCREEN_ANIMATOR_H_
+#define ATHENA_SCREEN_PUBLIC_SCREEN_ANIMATOR_H_
+
+#include "athena/athena_export.h"
+
+namespace ui {
+class ImplicitAnimationObserver;
+}
+
+namespace athena {
+
+// Runs animations which affect the entire screen.
+class ATHENA_EXPORT ScreenAnimator {
+ public:
+ virtual ~ScreenAnimator() {}
+
+ enum AnimationType {
+ ANIMATION_SHUTDOWN,
+ ANIMATION_CANCEL_SHUTDOWN
+ };
+
+ // Starts an animation of |type|. If |observer| is non-NULL, it is notified
+ // when the animation completes.
+ virtual void StartAnimation(AnimationType type,
+ ui::ImplicitAnimationObserver* observer) = 0;
+};
+
+} // namespace athena
+
+#endif // ATHENA_SCREEN_PUBLIC_SCREEN_ANIMATOR_H_

Powered by Google App Engine
This is Rietveld 408576698