Index: views/desktop/desktop_window_view.h |
diff --git a/views/desktop/desktop_window_view.h b/views/desktop/desktop_window_view.h |
index fadc04efbcb3871a080c3f09549c457a31b0c32b..54471c954d92ad18305f54a1a7d7b33b1145358b 100644 |
--- a/views/desktop/desktop_window_view.h |
+++ b/views/desktop/desktop_window_view.h |
@@ -6,16 +6,22 @@ |
#define VIEWS_DESKTOP_DESKTOP_WINDOW_VIEW_H_ |
#include "base/observer_list.h" |
+#include "ui/gfx/compositor/layer_animation_observer.h" |
#include "views/view.h" |
#include "views/widget/widget_delegate.h" |
+namespace ui { |
+class LayerAnimationSequence; |
+} // namespace ui |
+ |
namespace views { |
class NativeWidgetViews; |
class Widget; |
namespace desktop { |
-class DesktopWindowView : public WidgetDelegateView { |
+class DesktopWindowView : public WidgetDelegateView, |
+ public ui::LayerAnimationObserver { |
public: |
// Observers can listen to various events on the desktop. |
class Observer { |
@@ -73,6 +79,14 @@ class DesktopWindowView : public WidgetDelegateView { |
virtual View* GetContentsView() OVERRIDE; |
virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
+ // Implementation of ui::LayerAnimationObserver: |
+ virtual void OnLayerAnimationEnded( |
+ const ui::LayerAnimationSequence* animation) OVERRIDE; |
+ virtual void OnLayerAnimationScheduled( |
+ const ui::LayerAnimationSequence* animation) OVERRIDE; |
+ virtual void OnLayerAnimationAborted( |
+ const ui::LayerAnimationSequence* animation) OVERRIDE; |
+ |
ObserverList<Observer> observers_; |
DesktopType type_; |
Widget* widget_; |