| 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" |
| 11 #include "ash/shell/panel_window.h" | 11 #include "ash/shell/panel_window.h" |
| 12 #include "ash/shell_window_ids.h" | 12 #include "ash/shell_window_ids.h" |
| 13 #include "ash/system/audio/tray_audio.h" | |
| 14 #include "ash/system/bluetooth/tray_bluetooth.h" | 13 #include "ash/system/bluetooth/tray_bluetooth.h" |
| 15 #include "ash/system/date/tray_date.h" | 14 #include "ash/system/date/tray_date.h" |
| 16 #include "ash/system/drive/tray_drive.h" | 15 #include "ash/system/drive/tray_drive.h" |
| 17 #include "ash/system/ime/tray_ime.h" | 16 #include "ash/system/ime/tray_ime.h" |
| 18 #include "ash/system/monitor/tray_monitor.h" | 17 #include "ash/system/monitor/tray_monitor.h" |
| 19 #include "ash/system/session_length_limit/tray_session_length_limit.h" | 18 #include "ash/system/session_length_limit/tray_session_length_limit.h" |
| 20 #include "ash/system/status_area_widget.h" | 19 #include "ash/system/status_area_widget.h" |
| 21 #include "ash/system/tray/system_tray_delegate.h" | 20 #include "ash/system/tray/system_tray_delegate.h" |
| 22 #include "ash/system/tray/system_tray_item.h" | 21 #include "ash/system/tray/system_tray_item.h" |
| 23 #include "ash/system/tray/tray_bubble_wrapper.h" | 22 #include "ash/system/tray/tray_bubble_wrapper.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 #include "ui/gfx/canvas.h" | 40 #include "ui/gfx/canvas.h" |
| 42 #include "ui/gfx/screen.h" | 41 #include "ui/gfx/screen.h" |
| 43 #include "ui/gfx/skia_util.h" | 42 #include "ui/gfx/skia_util.h" |
| 44 #include "ui/views/border.h" | 43 #include "ui/views/border.h" |
| 45 #include "ui/views/controls/label.h" | 44 #include "ui/views/controls/label.h" |
| 46 #include "ui/views/layout/box_layout.h" | 45 #include "ui/views/layout/box_layout.h" |
| 47 #include "ui/views/layout/fill_layout.h" | 46 #include "ui/views/layout/fill_layout.h" |
| 48 #include "ui/views/view.h" | 47 #include "ui/views/view.h" |
| 49 | 48 |
| 50 #if defined(OS_CHROMEOS) | 49 #if defined(OS_CHROMEOS) |
| 51 #include "ash/system/chromeos/audio/tray_audio_chromeos.h" | 50 #include "ash/system/chromeos/audio/tray_audio.h" |
| 52 #include "ash/system/chromeos/audio/tray_audio_delegate_chromeos.h" | |
| 53 #include "ash/system/chromeos/brightness/tray_brightness.h" | 51 #include "ash/system/chromeos/brightness/tray_brightness.h" |
| 54 #include "ash/system/chromeos/enterprise/tray_enterprise.h" | 52 #include "ash/system/chromeos/enterprise/tray_enterprise.h" |
| 55 #include "ash/system/chromeos/managed/tray_locally_managed_user.h" | 53 #include "ash/system/chromeos/managed/tray_locally_managed_user.h" |
| 56 #include "ash/system/chromeos/network/tray_network.h" | 54 #include "ash/system/chromeos/network/tray_network.h" |
| 57 #include "ash/system/chromeos/network/tray_sms.h" | 55 #include "ash/system/chromeos/network/tray_sms.h" |
| 58 #include "ash/system/chromeos/network/tray_vpn.h" | 56 #include "ash/system/chromeos/network/tray_vpn.h" |
| 59 #include "ash/system/chromeos/power/tray_power.h" | 57 #include "ash/system/chromeos/power/tray_power.h" |
| 60 #include "ash/system/chromeos/screen_security/screen_capture_tray_item.h" | 58 #include "ash/system/chromeos/screen_security/screen_capture_tray_item.h" |
| 61 #include "ash/system/chromeos/screen_security/screen_share_tray_item.h" | 59 #include "ash/system/chromeos/screen_security/screen_share_tray_item.h" |
| 62 #include "ash/system/chromeos/settings/tray_settings.h" | 60 #include "ash/system/chromeos/settings/tray_settings.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 AddTrayItem( | 188 AddTrayItem( |
| 191 new internal::TrayPower(this, message_center::MessageCenter::Get())); | 189 new internal::TrayPower(this, message_center::MessageCenter::Get())); |
| 192 AddTrayItem(new internal::TrayNetwork(this)); | 190 AddTrayItem(new internal::TrayNetwork(this)); |
| 193 AddTrayItem(new internal::TrayVPN(this)); | 191 AddTrayItem(new internal::TrayVPN(this)); |
| 194 AddTrayItem(new internal::TraySms(this)); | 192 AddTrayItem(new internal::TraySms(this)); |
| 195 AddTrayItem(new internal::TrayBluetooth(this)); | 193 AddTrayItem(new internal::TrayBluetooth(this)); |
| 196 AddTrayItem(new internal::TrayDrive(this)); | 194 AddTrayItem(new internal::TrayDrive(this)); |
| 197 AddTrayItem(new internal::TrayDisplay(this)); | 195 AddTrayItem(new internal::TrayDisplay(this)); |
| 198 AddTrayItem(new internal::ScreenCaptureTrayItem(this)); | 196 AddTrayItem(new internal::ScreenCaptureTrayItem(this)); |
| 199 AddTrayItem(new internal::ScreenShareTrayItem(this)); | 197 AddTrayItem(new internal::ScreenShareTrayItem(this)); |
| 200 AddTrayItem( | 198 AddTrayItem(new internal::TrayAudio(this)); |
| 201 new internal::TrayAudioChromeOs(this, | |
| 202 new system::TrayAudioDelegateChromeOs())); | |
| 203 AddTrayItem(new internal::TrayBrightness(this)); | 199 AddTrayItem(new internal::TrayBrightness(this)); |
| 204 AddTrayItem(new internal::TrayCapsLock(this)); | 200 AddTrayItem(new internal::TrayCapsLock(this)); |
| 205 AddTrayItem(new internal::TraySettings(this)); | 201 AddTrayItem(new internal::TraySettings(this)); |
| 206 AddTrayItem(new internal::TrayUpdate(this)); | 202 AddTrayItem(new internal::TrayUpdate(this)); |
| 207 AddTrayItem(tray_date_); | 203 AddTrayItem(tray_date_); |
| 208 #elif defined(OS_WIN) | 204 #elif defined(OS_WIN) |
| 209 AddTrayItem(tray_accessibility_); | 205 AddTrayItem(tray_accessibility_); |
| 210 AddTrayItem(new internal::TrayUpdate(this)); | 206 AddTrayItem(new internal::TrayUpdate(this)); |
| 211 AddTrayItem(tray_date_); | 207 AddTrayItem(tray_date_); |
| 212 #elif defined(OS_LINUX) | 208 #elif defined(OS_LINUX) |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 system_bubble_.reset(); | 727 system_bubble_.reset(); |
| 732 // When closing a system bubble with the alternate shelf layout, we need to | 728 // When closing a system bubble with the alternate shelf layout, we need to |
| 733 // turn off the active tinting of the shelf. | 729 // turn off the active tinting of the shelf. |
| 734 if (full_system_tray_menu_) { | 730 if (full_system_tray_menu_) { |
| 735 SetDrawBackgroundAsActive(false); | 731 SetDrawBackgroundAsActive(false); |
| 736 full_system_tray_menu_ = false; | 732 full_system_tray_menu_ = false; |
| 737 } | 733 } |
| 738 } | 734 } |
| 739 | 735 |
| 740 } // namespace ash | 736 } // namespace ash |
| OLD | NEW |