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

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

Issue 2679133003: [ash-md] Wired in the Shelf color to be derived from the Wallpaper. (Closed)
Patch Set: Addressed nits. Created 3 years, 10 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
« no previous file with comments | « ash/common/system/status_area_widget.h ('k') | ash/common/system/tray/tray_background_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 afb108870bbe0c0a2b4e9896661935412726e61e..66f49d6f485b809c6df294fe66eac9912c7fdba9 100644
--- a/ash/common/system/status_area_widget.cc
+++ b/ash/common/system/status_area_widget.cc
@@ -181,15 +181,15 @@ void StatusAreaWidget::OnNativeWidgetActivationChanged(bool active) {
status_area_widget_delegate_->SetPaneFocusAndFocusDefault();
}
-void StatusAreaWidget::UpdateShelfItemBackground(int alpha) {
- web_notification_tray_->UpdateShelfItemBackground(alpha);
- system_tray_->UpdateShelfItemBackground(alpha);
- virtual_keyboard_tray_->UpdateShelfItemBackground(alpha);
- logout_button_tray_->UpdateShelfItemBackground(alpha);
- ime_menu_tray_->UpdateShelfItemBackground(alpha);
+void StatusAreaWidget::UpdateShelfItemBackground(SkColor color) {
+ web_notification_tray_->UpdateShelfItemBackground(color);
+ system_tray_->UpdateShelfItemBackground(color);
+ virtual_keyboard_tray_->UpdateShelfItemBackground(color);
+ logout_button_tray_->UpdateShelfItemBackground(color);
+ ime_menu_tray_->UpdateShelfItemBackground(color);
if (palette_tray_)
- palette_tray_->UpdateShelfItemBackground(alpha);
- overview_button_tray_->UpdateShelfItemBackground(alpha);
+ palette_tray_->UpdateShelfItemBackground(color);
+ overview_button_tray_->UpdateShelfItemBackground(color);
}
void StatusAreaWidget::AddSystemTray() {
« no previous file with comments | « ash/common/system/status_area_widget.h ('k') | ash/common/system/tray/tray_background_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698