Index: ash/common/system/tray/tray_background_view.h |
diff --git a/ash/common/system/tray/tray_background_view.h b/ash/common/system/tray/tray_background_view.h |
index 905a083cc86d6abb9895e8576d2b2ef253960cb8..478e427bda77e0b79719747d9decd52ee0a0e6a2 100644 |
--- a/ash/common/system/tray/tray_background_view.h |
+++ b/ash/common/system/tray/tray_background_view.h |
@@ -8,9 +8,9 @@ |
#include <memory> |
#include "ash/ash_export.h" |
-#include "ash/common/shelf/shelf_background_animator_observer.h" |
#include "ash/common/shelf/shelf_types.h" |
#include "ash/common/system/tray/actionable_view.h" |
+#include "ash/common/wm/background_animator.h" |
#include "base/macros.h" |
#include "ui/compositor/layer_animation_observer.h" |
#include "ui/views/bubble/tray_bubble_view.h" |
@@ -27,8 +27,8 @@ |
// his shown/hidden. It also inherits from ActionableView so that the tray |
// items can override PerformAction when clicked on. |
class ASH_EXPORT TrayBackgroundView : public ActionableView, |
- public ui::ImplicitAnimationObserver, |
- public ShelfBackgroundAnimatorObserver { |
+ public BackgroundAnimatorDelegate, |
+ public ui::ImplicitAnimationObserver { |
public: |
static const char kViewClassName[]; |
@@ -83,6 +83,9 @@ |
gfx::Rect GetFocusBounds() override; |
void OnGestureEvent(ui::GestureEvent* event) override; |
+ // BackgroundAnimatorDelegate: |
+ void UpdateBackground(int alpha) override; |
+ |
// Called whenever the shelf alignment changes. |
virtual void SetShelfAlignment(ShelfAlignment alignment); |
@@ -132,9 +135,6 @@ |
// Updates the arrow visibility based on the launcher visibility. |
void UpdateBubbleViewArrow(views::TrayBubbleView* bubble_view); |
- // ShelfBackgroundAnimatorObserver: |
- void UpdateShelfItemBackground(int alpha) override; |
- |
private: |
class TrayWidgetObserver; |