summaryrefslogtreecommitdiffstats
path: root/athena/wm/window_overview_mode.cc
diff options
context:
space:
mode:
Diffstat (limited to 'athena/wm/window_overview_mode.cc')
-rw-r--r--athena/wm/window_overview_mode.cc24
1 files changed, 1 insertions, 23 deletions
diff --git a/athena/wm/window_overview_mode.cc b/athena/wm/window_overview_mode.cc
index e04858a..83f7003 100644
--- a/athena/wm/window_overview_mode.cc
+++ b/athena/wm/window_overview_mode.cc
@@ -8,6 +8,7 @@
#include <functional>
#include <vector>
+#include "athena/common/closure_animation_observer.h"
#include "base/bind.h"
#include "base/macros.h"
#include "ui/aura/scoped_window_targeter.h"
@@ -41,29 +42,6 @@ struct WindowOverviewState {
scoped_ptr<wm::Shadow> shadow;
};
-// Runs a callback at the end of the animation. This observe also destroys
-// itself afterwards.
-class ClosureAnimationObserver : public ui::ImplicitAnimationObserver {
- public:
- explicit ClosureAnimationObserver(const base::Closure& closure)
- : closure_(closure) {
- DCHECK(!closure_.is_null());
- }
- private:
- virtual ~ClosureAnimationObserver() {
- }
-
- // ui::ImplicitAnimationObserver:
- virtual void OnImplicitAnimationsCompleted() OVERRIDE {
- closure_.Run();
- delete this;
- }
-
- const base::Closure closure_;
-
- DISALLOW_COPY_AND_ASSIGN(ClosureAnimationObserver);
-};
-
} // namespace
DECLARE_WINDOW_PROPERTY_TYPE(WindowOverviewState*)