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

Unified Diff: ash/system/status_area_widget.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/status_area_widget.h
diff --git a/ash/system/status_area_widget.h b/ash/system/status_area_widget.h
index cb492418b03d000744461df5325ee52befdf62b7..294673a87a476c06d737efe856cd1cd83851c8b5 100644
--- a/ash/system/status_area_widget.h
+++ b/ash/system/status_area_widget.h
@@ -6,6 +6,7 @@
#define ASH_SYSTEM_STATUS_AREA_WIDGET_H_
#include "ash/ash_export.h"
+#include "ash/common/shelf/shelf_background_animator_observer.h"
#include "ash/common/shelf/shelf_types.h"
#include "ash/system/user/login_status.h"
#include "base/macros.h"
@@ -24,7 +25,8 @@ class LogoutButtonTray;
class VirtualKeyboardTray;
#endif
-class ASH_EXPORT StatusAreaWidget : public views::Widget {
+class ASH_EXPORT StatusAreaWidget : public views::Widget,
+ public ShelfBackgroundAnimatorObserver {
public:
StatusAreaWidget(WmWindow* status_container, ShelfWidget* shelf_widget);
~StatusAreaWidget() override;
@@ -78,6 +80,9 @@ class ASH_EXPORT StatusAreaWidget : public views::Widget {
void OnMouseEvent(ui::MouseEvent* event) override;
void OnGestureEvent(ui::GestureEvent* event) override;
+ // ShelfBackgroundAnimatorObserver:
+ void UpdateShelfItemBackground(int alpha) override;
+
private:
void AddSystemTray();
void AddWebNotificationTray();

Powered by Google App Engine
This is Rietveld 408576698