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

Unified Diff: ash/wm/window_animations.h

Issue 9233044: Acquire all layers when hiding window gets destroyed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 11 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: ash/wm/window_animations.h
diff --git a/ash/wm/window_animations.h b/ash/wm/window_animations.h
index d6d4512466e7b67945ced80d44dc25cef6661d8a..24386784a19ad01bc798a72bc23997dd137d635a 100644
--- a/ash/wm/window_animations.h
+++ b/ash/wm/window_animations.h
@@ -7,6 +7,7 @@
#pragma once
#include "ash/ash_export.h"
+#include "base/time.h"
namespace aura {
class Window;
@@ -23,13 +24,32 @@ enum WindowVisibilityAnimationType {
WINDOW_VISIBILITY_ANIMATION_TYPE_FADE // Fades in/out.
};
+// Type of visibility change transition that a window should animate.
+// Default behavior is to animate both show and hide.
+enum WindowVisibilityAnimationTransition {
+ // 0 is used as default.
Ben Goodger (Google) 2012/01/31 00:50:19 ANIMATE_NONE = 0x0, ANIMATE_SHOW = 0x1, ANIMATE_HI
oshima 2012/01/31 01:52:32 changed to 0x, but I can't use 0x for NONE because
+ ANIMATE_SHOW = 1,
+ ANIMATE_HIDE = 2,
+ ANIMATE_BOTH = 3,
+ ANIMATE_NONE = 4,
+};
+
void ASH_EXPORT SetWindowVisibilityAnimationType(
aura::Window* window,
WindowVisibilityAnimationType type);
+void ASH_EXPORT SetWindowVisibilityAnimationTransition(
+ aura::Window* window,
+ WindowVisibilityAnimationTransition phrase);
Ben Goodger (Google) 2012/01/31 00:50:19 phase
oshima 2012/01/31 01:52:32 chagned to "transition"
+
+void ASH_EXPORT SetWindowVisibilityAnimationDuration(
Ben Goodger (Google) 2012/01/31 00:50:19 What do you use this for?
oshima 2012/01/31 01:52:32 to set the login screen's animation duration which
+ aura::Window* window,
+ const base::TimeDelta& duration);
+
namespace internal {
-void AnimateOnChildWindowVisibilityChanged(aura::Window* window, bool visible);
+// Returns false if the |window| didn't animate.
+bool AnimateOnChildWindowVisibilityChanged(aura::Window* window, bool visible);
} // namespace internal
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698