Index: ash/wm/window_animations.h |
diff --git a/ash/wm/window_animations.h b/ash/wm/window_animations.h |
index 5be60fa004d947d38ee6aac8d9de1f854b9366c1..3f28b233021fceeeecb519671e96e8eca1d6d213 100644 |
--- a/ash/wm/window_animations.h |
+++ b/ash/wm/window_animations.h |
@@ -6,6 +6,7 @@ |
#define ASH_WM_WINDOW_ANIMATIONS_H_ |
#include "ash/ash_export.h" |
+#include "ui/gfx/transform.h" |
#include "ui/views/corewm/window_animations.h" |
namespace aura { |
@@ -29,6 +30,13 @@ enum WindowVisibilityAnimationType { |
WINDOW_VISIBILITY_ANIMATION_TYPE_BRIGHTNESS_GRAYSCALE |
}; |
+// Direction for ash-specific window animations used in workspaces and |
+// lock/unlock animations. |
+enum LayerScaleAnimationDirection { |
+ LAYER_SCALE_ANIMATION_ABOVE, |
+ LAYER_SCALE_ANIMATION_BELOW, |
+}; |
+ |
// Animate a cross-fade of |window| from its current bounds to |new_bounds|. |
ASH_EXPORT void CrossFadeToBounds(aura::Window* window, |
const gfx::Rect& new_bounds); |
@@ -56,6 +64,11 @@ ASH_EXPORT std::vector<ui::LayerAnimationSequence*> |
CreateBrightnessGrayscaleAnimationSequence(float target_value, |
base::TimeDelta duration); |
+// Applies scale related to the specified AshWindowScaleType. |
+ASH_EXPORT void SetTransformForScaleAnimation( |
+ ui::Layer* layer, |
+ LayerScaleAnimationDirection type); |
+ |
} // namespace ash |