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

Unified Diff: ash/common/system/status_area_widget.cc

Issue 2053113002: Replaced BackgroundAnimator with ShelfBackgroundAnimator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added PaletteTray to the Shelf background animations. Created 4 years, 5 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/common/system/status_area_widget.cc
diff --git a/ash/common/system/status_area_widget.cc b/ash/common/system/status_area_widget.cc
index 0d95965a196a583603aeebaddb0e24fc68f0cc4e..e81304e25cb8c0daa44f42f0231754d24a463e26 100644
--- a/ash/common/system/status_area_widget.cc
+++ b/ash/common/system/status_area_widget.cc
@@ -154,6 +154,17 @@ void StatusAreaWidget::OnGestureEvent(ui::GestureEvent* event) {
wm_shelf_->UpdateAutoHideForGestureEvent(event);
}
+void StatusAreaWidget::UpdateShelfItemBackground(int alpha) {
+ web_notification_tray_->UpdateShelfItemBackground(alpha);
+ system_tray_->UpdateShelfItemBackground(alpha);
+#if defined(OS_CHROMEOS)
+ palette_tray_->UpdateShelfItemBackground(alpha);
+ virtual_keyboard_tray_->UpdateShelfItemBackground(alpha);
+ logout_button_tray_->UpdateShelfItemBackground(alpha);
James Cook 2016/07/27 00:30:39 ime_menu_tray_ too? Also, can the order here matc
bruthig 2016/07/27 17:05:45 Done.
+#endif
+ overview_button_tray_->UpdateShelfItemBackground(alpha);
+}
+
void StatusAreaWidget::AddSystemTray() {
system_tray_ = new SystemTray(wm_shelf_);
status_area_widget_delegate_->AddTray(system_tray_);

Powered by Google App Engine
This is Rietveld 408576698