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

Unified Diff: ash/wm/window_animations.h

Issue 11419225: Decouple workspace animation from other actions on windows (e.g. hide/show), so that animations can… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed Daniel's comments Created 8 years, 1 month 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
« no previous file with comments | « ash/wm/session_state_animator.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/wm/session_state_animator.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698