Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: ash/system/tray/tray_background_view.h

Issue 2053113002: Replaced BackgroundAnimator with ShelfBackgroundAnimator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved ash/test/material_design_controller_test_api.(h|cc) to ash/common/material_design/test/. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/system/tray/tray_background_view.h
diff --git a/ash/system/tray/tray_background_view.h b/ash/system/tray/tray_background_view.h
index 8af71ce84cadd22da96b56f1c120c5eefdbe7a19..28549a5ccb72b87449c709c72c576e7fe3c79da6 100644
--- a/ash/system/tray/tray_background_view.h
+++ b/ash/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 @@ class TrayBackground;
// 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 BackgroundAnimatorDelegate,
- public ui::ImplicitAnimationObserver {
+ public ui::ImplicitAnimationObserver,
+ public ShelfBackgroundAnimatorObserver {
public:
static const char kViewClassName[];
@@ -83,9 +83,6 @@ class ASH_EXPORT TrayBackgroundView : public ActionableView,
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);
@@ -145,6 +142,9 @@ class ASH_EXPORT TrayBackgroundView : public ActionableView,
// Updates the arrow visibility based on the launcher visibility.
void UpdateBubbleViewArrow(views::TrayBubbleView* bubble_view);
+ // ShelfBackgroundAnimatorObserver:
+ void UpdateShelfItemBackground(int alpha) override;
+
private:
class TrayWidgetObserver;

Powered by Google App Engine
This is Rietveld 408576698