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

Unified Diff: ash/wm/workspace/workspace_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: Merge with ToT 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
Index: ash/wm/workspace/workspace_animations.h
diff --git a/ash/wm/workspace/workspace_animations.h b/ash/wm/workspace/workspace_animations.h
index 3e60c1b7a742d785f510375e000a17d41176226c..2b6b4fe85ce7457a08b57cf354e2de5694981bfe 100644
--- a/ash/wm/workspace/workspace_animations.h
+++ b/ash/wm/workspace/workspace_animations.h
@@ -51,6 +51,22 @@ struct WorkspaceAnimationDetails {
// Amount of time for the workspace switch animation.
extern const int kWorkspaceSwitchTimeMS;
+// Sets initial/target parameters of workspace animations based on |details|.
+// Values are set for Show animation when |show| is true, and for Hide animation
+// otherwise. If |force| is true, transform/opacity will be set regardless of
+// value specified in |details|.
+ASH_EXPORT void SetWorkspaceAnimationStartParameters(
sky 2012/11/29 19:06:51 As previously mentioned we should not have session
+ aura::Window* window,
+ const WorkspaceAnimationDetails& details,
+ bool show,
+ bool force);
+
+ASH_EXPORT void SetWorkspaceAnimationTargetParameters(
+ aura::Window* window,
+ const WorkspaceAnimationDetails& details,
+ bool show,
+ bool force);
+
// Shows or hides the workspace animating based on |details|.
ASH_EXPORT void ShowWorkspace(aura::Window* window,
const WorkspaceAnimationDetails& details);

Powered by Google App Engine
This is Rietveld 408576698