OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "ash/system/tray/system_tray.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "ash/metrics/user_metrics_recorder.h" | 8 #include "ash/metrics/user_metrics_recorder.h" |
9 #include "ash/shelf/shelf_layout_manager.h" | 9 #include "ash/shelf/shelf_layout_manager.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "ui/views/border.h" | 40 #include "ui/views/border.h" |
41 #include "ui/views/controls/label.h" | 41 #include "ui/views/controls/label.h" |
42 #include "ui/views/layout/box_layout.h" | 42 #include "ui/views/layout/box_layout.h" |
43 #include "ui/views/layout/fill_layout.h" | 43 #include "ui/views/layout/fill_layout.h" |
44 #include "ui/views/view.h" | 44 #include "ui/views/view.h" |
45 | 45 |
46 #if defined(OS_CHROMEOS) | 46 #if defined(OS_CHROMEOS) |
47 #include "ash/system/chromeos/audio/tray_audio_chromeos.h" | 47 #include "ash/system/chromeos/audio/tray_audio_chromeos.h" |
48 #include "ash/system/chromeos/brightness/tray_brightness.h" | 48 #include "ash/system/chromeos/brightness/tray_brightness.h" |
49 #include "ash/system/chromeos/enterprise/tray_enterprise.h" | 49 #include "ash/system/chromeos/enterprise/tray_enterprise.h" |
50 #include "ash/system/chromeos/managed/tray_locally_managed_user.h" | |
51 #include "ash/system/chromeos/network/tray_network.h" | 50 #include "ash/system/chromeos/network/tray_network.h" |
52 #include "ash/system/chromeos/network/tray_sms.h" | 51 #include "ash/system/chromeos/network/tray_sms.h" |
53 #include "ash/system/chromeos/network/tray_vpn.h" | 52 #include "ash/system/chromeos/network/tray_vpn.h" |
54 #include "ash/system/chromeos/power/tray_power.h" | 53 #include "ash/system/chromeos/power/tray_power.h" |
55 #include "ash/system/chromeos/rotation/tray_rotation_lock.h" | 54 #include "ash/system/chromeos/rotation/tray_rotation_lock.h" |
56 #include "ash/system/chromeos/screen_security/screen_capture_tray_item.h" | 55 #include "ash/system/chromeos/screen_security/screen_capture_tray_item.h" |
57 #include "ash/system/chromeos/screen_security/screen_share_tray_item.h" | 56 #include "ash/system/chromeos/screen_security/screen_share_tray_item.h" |
58 #include "ash/system/chromeos/session/tray_session_length_limit.h" | 57 #include "ash/system/chromeos/session/tray_session_length_limit.h" |
59 #include "ash/system/chromeos/settings/tray_settings.h" | 58 #include "ash/system/chromeos/settings/tray_settings.h" |
| 59 #include "ash/system/chromeos/supervised/tray_supervised_user.h" |
60 #include "ash/system/chromeos/tray_caps_lock.h" | 60 #include "ash/system/chromeos/tray_caps_lock.h" |
61 #include "ash/system/chromeos/tray_display.h" | 61 #include "ash/system/chromeos/tray_display.h" |
62 #include "ash/system/chromeos/tray_tracing.h" | 62 #include "ash/system/chromeos/tray_tracing.h" |
63 #include "ash/system/tray/media_security/multi_profile_media_tray_item.h" | 63 #include "ash/system/tray/media_security/multi_profile_media_tray_item.h" |
64 #include "ui/message_center/message_center.h" | 64 #include "ui/message_center/message_center.h" |
65 #elif defined(OS_WIN) | 65 #elif defined(OS_WIN) |
66 #include "ash/system/win/audio/tray_audio_win.h" | 66 #include "ash/system/win/audio/tray_audio_win.h" |
67 #include "media/audio/win/core_audio_util_win.h" | 67 #include "media/audio/win/core_audio_util_win.h" |
68 #endif | 68 #endif |
69 | 69 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 AddTrayItem(new TrayUserSeparator(this)); | 166 AddTrayItem(new TrayUserSeparator(this)); |
167 } | 167 } |
168 #endif | 168 #endif |
169 | 169 |
170 tray_accessibility_ = new TrayAccessibility(this); | 170 tray_accessibility_ = new TrayAccessibility(this); |
171 tray_date_ = new TrayDate(this); | 171 tray_date_ = new TrayDate(this); |
172 | 172 |
173 #if defined(OS_CHROMEOS) | 173 #if defined(OS_CHROMEOS) |
174 AddTrayItem(new TraySessionLengthLimit(this)); | 174 AddTrayItem(new TraySessionLengthLimit(this)); |
175 AddTrayItem(new TrayEnterprise(this)); | 175 AddTrayItem(new TrayEnterprise(this)); |
176 AddTrayItem(new TrayLocallyManagedUser(this)); | 176 AddTrayItem(new TraySupervisedUser(this)); |
177 AddTrayItem(new TrayIME(this)); | 177 AddTrayItem(new TrayIME(this)); |
178 AddTrayItem(tray_accessibility_); | 178 AddTrayItem(tray_accessibility_); |
179 AddTrayItem(new TrayTracing(this)); | 179 AddTrayItem(new TrayTracing(this)); |
180 AddTrayItem(new TrayPower(this, message_center::MessageCenter::Get())); | 180 AddTrayItem(new TrayPower(this, message_center::MessageCenter::Get())); |
181 AddTrayItem(new TrayNetwork(this)); | 181 AddTrayItem(new TrayNetwork(this)); |
182 AddTrayItem(new TrayVPN(this)); | 182 AddTrayItem(new TrayVPN(this)); |
183 AddTrayItem(new TraySms(this)); | 183 AddTrayItem(new TraySms(this)); |
184 AddTrayItem(new TrayBluetooth(this)); | 184 AddTrayItem(new TrayBluetooth(this)); |
185 AddTrayItem(new TrayDrive(this)); | 185 AddTrayItem(new TrayDrive(this)); |
186 AddTrayItem(new TrayDisplay(this)); | 186 AddTrayItem(new TrayDisplay(this)); |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 system_bubble_.reset(); | 707 system_bubble_.reset(); |
708 // When closing a system bubble with the alternate shelf layout, we need to | 708 // When closing a system bubble with the alternate shelf layout, we need to |
709 // turn off the active tinting of the shelf. | 709 // turn off the active tinting of the shelf. |
710 if (full_system_tray_menu_) { | 710 if (full_system_tray_menu_) { |
711 SetDrawBackgroundAsActive(false); | 711 SetDrawBackgroundAsActive(false); |
712 full_system_tray_menu_ = false; | 712 full_system_tray_menu_ = false; |
713 } | 713 } |
714 } | 714 } |
715 | 715 |
716 } // namespace ash | 716 } // namespace ash |
OLD | NEW |