summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-21 02:01:10 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-21 02:01:10 +0000
commit326828b11895bb9753bbd9efd42800a9f4d67d6d (patch)
tree0ef95b36057b2bbe3cc86775c46e28d9468792c7 /views
parentaf81ff12c3a199c0a5a0b6ad44771ff61325ed40 (diff)
downloadchromium_src-326828b11895bb9753bbd9efd42800a9f4d67d6d.zip
chromium_src-326828b11895bb9753bbd9efd42800a9f4d67d6d.tar.gz
chromium_src-326828b11895bb9753bbd9efd42800a9f4d67d6d.tar.bz2
Animate desktop rotations.
. Adds a LayerDelegate method to notify of the end of an animation. BUG=none TEST=none Review URL: http://codereview.chromium.org/8364030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106658 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/view.cc3
-rw-r--r--views/view.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/views/view.cc b/views/view.cc
index 925a40f..e4ffbe8 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -1171,6 +1171,9 @@ void View::OnPaintLayer(gfx::Canvas* canvas) {
PaintCommon(canvas);
}
+void View::OnLayerAnimationEnded(const ui::Animation* animation) {
+}
+
void View::ReorderLayers() {
View* v = this;
while (v && !v->layer())
diff --git a/views/view.h b/views/view.h
index 9d3bfbe..0e06113 100644
--- a/views/view.h
+++ b/views/view.h
@@ -989,6 +989,7 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Overridden from ui::LayerDelegate:
virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
+ virtual void OnLayerAnimationEnded(const ui::Animation* animation) OVERRIDE;
// Finds the layer that this view paints to (it may belong to an ancestor
// view), then reorders the immediate children of that layer to match the