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

Side by Side Diff: ash/system/tray/system_tray_controller.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ash/system/tray/system_tray_bubble.cc ('k') | ash/system/tray/system_tray_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_bubble.cc ('k') | ash/system/tray/system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698