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

Unified Diff: ui/aura_shell/workspace/workspace.cc

Issue 8400059: Revert 107715 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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 | « ui/aura_shell/shell.cc ('k') | ui/aura_shell/workspace/workspace_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/workspace/workspace.cc
===================================================================
--- ui/aura_shell/workspace/workspace.cc (revision 107719)
+++ ui/aura_shell/workspace/workspace.cc (working copy)
@@ -9,7 +9,6 @@
#include "ui/aura/window.h"
#include "ui/aura_shell/workspace/workspace_manager.h"
#include "ui/gfx/compositor/layer.h"
-#include "ui/gfx/compositor/layer_animator.h"
namespace {
// Horizontal margin between windows.
@@ -212,13 +211,9 @@
else {
gfx::Rect bounds = window->GetTargetBounds();
bounds.set_origin(origin);
- if (animate) {
- ui::LayerAnimator::ScopedSettings settings(
- window->layer()->GetAnimator());
- window->SetBounds(bounds);
- } else {
- window->SetBounds(bounds);
- }
+ if (animate)
+ window->layer()->SetAnimation(aura::Window::CreateDefaultAnimation());
+ window->SetBounds(bounds);
}
}
« no previous file with comments | « ui/aura_shell/shell.cc ('k') | ui/aura_shell/workspace/workspace_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698