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

Unified Diff: ui/aura/window.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/window.h ('k') | ui/aura_shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
===================================================================
--- ui/aura/window.cc (revision 107719)
+++ ui/aura/window.cc (working copy)
@@ -20,6 +20,7 @@
#include "ui/base/view_prop.h"
#include "ui/gfx/canvas_skia.h"
#include "ui/gfx/compositor/compositor.h"
+#include "ui/gfx/compositor/layer.h"
#include "ui/gfx/screen.h"
namespace aura {
@@ -436,6 +437,15 @@
return ui::ViewProp::GetValue(const_cast<gfx::NativeView>(this), name);
}
+// static
+ui::Animation* Window::CreateDefaultAnimation() {
+ std::vector<ui::MultiAnimation::Part> parts;
+ parts.push_back(ui::MultiAnimation::Part(200, ui::Tween::LINEAR));
+ ui::MultiAnimation* multi_animation = new ui::MultiAnimation(parts);
+ multi_animation->set_continuous(false);
+ return multi_animation;
+}
+
Desktop* Window::GetDesktop() {
return parent_ ? parent_->GetDesktop() : NULL;
}
@@ -531,8 +541,7 @@
delegate_->OnPaint(canvas);
}
-void Window::OnLayerAnimationEnded(
- const ui::LayerAnimationSequence* animation) {
+void Window::OnLayerAnimationEnded(const ui::Animation* animation) {
}
} // namespace aura
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura_shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698