| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/system/tray/system_tray_controller.h" | 5 #include "ash/system/tray/system_tray_controller.h" |
| 6 | 6 |
| 7 #include "ash/common/wm_shell.h" | |
| 8 #include "ash/common/wm_window.h" | |
| 9 #include "ash/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
| 10 #include "ash/system/tray/system_tray.h" | 8 #include "ash/system/tray/system_tray.h" |
| 11 #include "ash/system/tray/system_tray_notifier.h" | 9 #include "ash/system/tray/system_tray_notifier.h" |
| 12 #include "ash/system/update/tray_update.h" | 10 #include "ash/system/update/tray_update.h" |
| 11 #include "ash/wm_shell.h" |
| 12 #include "ash/wm_window.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 SystemTrayController::SystemTrayController() | 16 SystemTrayController::SystemTrayController() |
| 17 : hour_clock_type_(base::GetHourClockType()) {} | 17 : hour_clock_type_(base::GetHourClockType()) {} |
| 18 | 18 |
| 19 SystemTrayController::~SystemTrayController() {} | 19 SystemTrayController::~SystemTrayController() {} |
| 20 | 20 |
| 21 void SystemTrayController::ShowSettings() { | 21 void SystemTrayController::ShowSettings() { |
| 22 if (system_tray_client_) | 22 if (system_tray_client_) |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 for (WmWindow* root : WmShell::Get()->GetAllRootWindows()) { | 172 for (WmWindow* root : WmShell::Get()->GetAllRootWindows()) { |
| 173 ash::SystemTray* tray = root->GetRootWindowController()->GetSystemTray(); | 173 ash::SystemTray* tray = root->GetRootWindowController()->GetSystemTray(); |
| 174 // External monitors might not have a tray yet. | 174 // External monitors might not have a tray yet. |
| 175 if (!tray) | 175 if (!tray) |
| 176 continue; | 176 continue; |
| 177 tray->tray_update()->ShowUpdateIcon(severity, factory_reset_required); | 177 tray->tray_update()->ShowUpdateIcon(severity, factory_reset_required); |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 | 180 |
| 181 } // namespace ash | 181 } // namespace ash |
| OLD | NEW |