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

Unified Diff: ash/common/wm/wm_window_animations.h

Issue 2243513004: mash: Partially migrate WorkspaceController to ash common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 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: ash/common/wm/wm_window_animations.h
diff --git a/ash/common/wm/wm_window_animations.h b/ash/common/wm/wm_window_animations.h
new file mode 100644
index 0000000000000000000000000000000000000000..d704304b35172308a94efd23e259eb3b208fcae5
--- /dev/null
+++ b/ash/common/wm/wm_window_animations.h
@@ -0,0 +1,32 @@
+// Copyright 2016 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 ASH_COMMON_WM_WM_WINDOW_ANIMATIONS_H_
+#define ASH_COMMON_WM_WM_WINDOW_ANIMATIONS_H_
+
+#include "ash/ash_export.h"
+
+namespace ui {
+class Layer;
+}
+
+// This is only for animations specific to Ash. For window animations shared
+// with desktop Chrome, see ui/views/corewm/window_animations.h.
+namespace ash {
+
+// Direction for ash-specific window animations used in workspaces and
+// lock/unlock animations.
+enum LayerScaleAnimationDirection {
+ LAYER_SCALE_ANIMATION_ABOVE,
+ LAYER_SCALE_ANIMATION_BELOW,
+};
+
+// Applies scale related to the specified AshWindowScaleType.
+ASH_EXPORT void SetTransformForScaleAnimation(
+ ui::Layer* layer,
+ LayerScaleAnimationDirection type);
+
+} // namespace ash
+
+#endif // ASH_COMMON_WM_WM_WINDOW_ANIMATIONS_H_

Powered by Google App Engine
This is Rietveld 408576698