summaryrefslogtreecommitdiffstats
path: root/ash/drag_drop/drag_drop_controller.h
diff options
context:
space:
mode:
authorvollick@google.com <vollick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-01 20:31:15 +0000
committervollick@google.com <vollick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-01 20:31:15 +0000
commit7482542213d768c50ea506fdb56b3442cfa3c8aa (patch)
tree1029af22ed076aefb784ef0643bfab42af547465 /ash/drag_drop/drag_drop_controller.h
parentdfce15bcdfd22b6d9eb60c9741932d9c917b3bcc (diff)
downloadchromium_src-7482542213d768c50ea506fdb56b3442cfa3c8aa.zip
chromium_src-7482542213d768c50ea506fdb56b3442cfa3c8aa.tar.gz
chromium_src-7482542213d768c50ea506fdb56b3442cfa3c8aa.tar.bz2
Revert 120092 - Reland 120074 -- Disable animations during aura tests.
This causes all animations scheduled during a test to complete immediately. After making this change, I noticed some code assumed that animations would not complete synchronously. Some of this code used animation observers, and I while fixing the code I have updated it to use the preferred ImplicitAnimationObserver. BUG=None TEST=aura_shell_unittests,aura_unittests,compositor_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120074 Review URL: https://chromiumcodereview.appspot.com/9222018 TBR=vollick@google.com Review URL: https://chromiumcodereview.appspot.com/9320018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120097 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/drag_drop/drag_drop_controller.h')
-rw-r--r--ash/drag_drop/drag_drop_controller.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/ash/drag_drop/drag_drop_controller.h b/ash/drag_drop/drag_drop_controller.h
index 9272257..0f9b257 100644
--- a/ash/drag_drop/drag_drop_controller.h
+++ b/ash/drag_drop/drag_drop_controller.h
@@ -36,8 +36,8 @@ class DragImageView;
class ASH_EXPORT DragDropController
: public aura::client::DragDropClient,
public aura::EventFilter,
- public ui::ImplicitAnimationObserver {
-public:
+ public ui::LayerAnimationObserver {
+ public:
DragDropController();
virtual ~DragDropController();
@@ -69,8 +69,13 @@ public:
private:
friend class ash::test::DragDropControllerTest;
- // Implementation of ImplicitAnimationObserver
- virtual void OnImplicitAnimationsCompleted() OVERRIDE;
+ // Overridden from ui::LayerAnimationObserver:
+ virtual void OnLayerAnimationEnded(
+ const ui::LayerAnimationSequence* sequence) OVERRIDE;
+ virtual void OnLayerAnimationAborted(
+ const ui::LayerAnimationSequence* sequence) OVERRIDE;
+ virtual void OnLayerAnimationScheduled(
+ const ui::LayerAnimationSequence* sequence) OVERRIDE {}
// Helper method to start drag widget flying back animation.
void StartCanceledAnimation();