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

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

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « ash/common/wm/wm_window_animations.h ('k') | ash/common/wm/workspace/magnetism_matcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/wm_window_animations.cc
diff --git a/ash/common/wm/wm_window_animations.cc b/ash/common/wm/wm_window_animations.cc
deleted file mode 100644
index 64b431f2c65900b063be9fec5d8e5cefd721899b..0000000000000000000000000000000000000000
--- a/ash/common/wm/wm_window_animations.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// 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.
-
-#include "ash/common/wm/wm_window_animations.h"
-
-#include "ui/compositor/layer.h"
-#include "ui/gfx/transform.h"
-
-namespace ash {
-
-void SetTransformForScaleAnimation(ui::Layer* layer,
- LayerScaleAnimationDirection type) {
- // Scales for windows above and below the current workspace.
- const float kLayerScaleAboveSize = 1.1f;
- const float kLayerScaleBelowSize = .9f;
-
- const float scale = type == LAYER_SCALE_ANIMATION_ABOVE
- ? kLayerScaleAboveSize
- : kLayerScaleBelowSize;
- gfx::Transform transform;
- transform.Translate(-layer->bounds().width() * (scale - 1.0f) / 2,
- -layer->bounds().height() * (scale - 1.0f) / 2);
- transform.Scale(scale, scale);
- layer->SetTransform(transform);
-}
-
-} // namespace ash
« no previous file with comments | « ash/common/wm/wm_window_animations.h ('k') | ash/common/wm/workspace/magnetism_matcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698