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/shelf/shelf_layout_manager.h" | 8 #include "ash/shelf/shelf_layout_manager.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/shell/panel_window.h" | 10 #include "ash/shell/panel_window.h" |
11 #include "ash/shell_window_ids.h" | 11 #include "ash/shell_window_ids.h" |
12 #include "ash/system/audio/tray_volume.h" | |
13 #include "ash/system/bluetooth/tray_bluetooth.h" | 12 #include "ash/system/bluetooth/tray_bluetooth.h" |
14 #include "ash/system/brightness/tray_brightness.h" | 13 #include "ash/system/brightness/tray_brightness.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/locale/tray_locale.h" | 17 #include "ash/system/locale/tray_locale.h" |
19 #include "ash/system/logout_button/tray_logout_button.h" | 18 #include "ash/system/logout_button/tray_logout_button.h" |
20 #include "ash/system/monitor/tray_monitor.h" | 19 #include "ash/system/monitor/tray_monitor.h" |
21 #include "ash/system/power/power_supply_status.h" | 20 #include "ash/system/power/power_supply_status.h" |
22 #include "ash/system/power/tray_power.h" | 21 #include "ash/system/power/tray_power.h" |
(...skipping 21 matching lines...) Expand all Loading... |
44 #include "ui/gfx/canvas.h" | 43 #include "ui/gfx/canvas.h" |
45 #include "ui/gfx/screen.h" | 44 #include "ui/gfx/screen.h" |
46 #include "ui/gfx/skia_util.h" | 45 #include "ui/gfx/skia_util.h" |
47 #include "ui/views/border.h" | 46 #include "ui/views/border.h" |
48 #include "ui/views/controls/label.h" | 47 #include "ui/views/controls/label.h" |
49 #include "ui/views/layout/box_layout.h" | 48 #include "ui/views/layout/box_layout.h" |
50 #include "ui/views/layout/fill_layout.h" | 49 #include "ui/views/layout/fill_layout.h" |
51 #include "ui/views/view.h" | 50 #include "ui/views/view.h" |
52 | 51 |
53 #if defined(OS_CHROMEOS) | 52 #if defined(OS_CHROMEOS) |
| 53 #include "ash/system/chromeos/audio/tray_volume.h" |
54 #include "ash/system/chromeos/enterprise/tray_enterprise.h" | 54 #include "ash/system/chromeos/enterprise/tray_enterprise.h" |
55 #include "ash/system/chromeos/network/tray_network.h" | 55 #include "ash/system/chromeos/network/tray_network.h" |
56 #include "ash/system/chromeos/network/tray_sms.h" | 56 #include "ash/system/chromeos/network/tray_sms.h" |
57 #include "ash/system/chromeos/network/tray_vpn.h" | 57 #include "ash/system/chromeos/network/tray_vpn.h" |
58 #include "ash/system/chromeos/screen_capture/tray_screen_capture.h" | 58 #include "ash/system/chromeos/screen_capture/tray_screen_capture.h" |
59 #include "ash/system/chromeos/tray_display.h" | 59 #include "ash/system/chromeos/tray_display.h" |
60 #endif | 60 #endif |
61 | 61 |
62 using views::TrayBubbleView; | 62 using views::TrayBubbleView; |
63 | 63 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 AddTrayItem(new internal::TraySms(this)); | 155 AddTrayItem(new internal::TraySms(this)); |
156 #endif | 156 #endif |
157 #if !defined(OS_WIN) | 157 #if !defined(OS_WIN) |
158 AddTrayItem(new internal::TrayBluetooth(this)); | 158 AddTrayItem(new internal::TrayBluetooth(this)); |
159 #endif | 159 #endif |
160 AddTrayItem(new internal::TrayDrive(this)); | 160 AddTrayItem(new internal::TrayDrive(this)); |
161 AddTrayItem(new internal::TrayLocale(this)); | 161 AddTrayItem(new internal::TrayLocale(this)); |
162 #if defined(OS_CHROMEOS) | 162 #if defined(OS_CHROMEOS) |
163 AddTrayItem(new internal::TrayDisplay(this)); | 163 AddTrayItem(new internal::TrayDisplay(this)); |
164 AddTrayItem(new internal::TrayScreenCapture(this)); | 164 AddTrayItem(new internal::TrayScreenCapture(this)); |
| 165 AddTrayItem(new internal::TrayVolume(this)); |
165 #endif | 166 #endif |
166 #if !defined(OS_WIN) | 167 #if !defined(OS_WIN) |
167 AddTrayItem(new internal::TrayVolume(this)); | |
168 AddTrayItem(new internal::TrayBrightness(this)); | 168 AddTrayItem(new internal::TrayBrightness(this)); |
169 AddTrayItem(new internal::TrayCapsLock(this)); | 169 AddTrayItem(new internal::TrayCapsLock(this)); |
170 #endif | 170 #endif |
171 AddTrayItem(new internal::TraySettings(this)); | 171 AddTrayItem(new internal::TraySettings(this)); |
172 AddTrayItem(new internal::TrayUpdate(this)); | 172 AddTrayItem(new internal::TrayUpdate(this)); |
173 AddTrayItem(new internal::TrayDate(this)); | 173 AddTrayItem(new internal::TrayDate(this)); |
174 | 174 |
175 #if defined(OS_LINUX) | 175 #if defined(OS_LINUX) |
176 // Add memory monitor if enabled. | 176 // Add memory monitor if enabled. |
177 CommandLine* cmd = CommandLine::ForCurrentProcess(); | 177 CommandLine* cmd = CommandLine::ForCurrentProcess(); |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 ConvertPointToWidget(this, &point); | 563 ConvertPointToWidget(this, &point); |
564 arrow_offset = point.x(); | 564 arrow_offset = point.x(); |
565 } | 565 } |
566 } | 566 } |
567 ShowDefaultViewWithOffset(BUBBLE_CREATE_NEW, arrow_offset); | 567 ShowDefaultViewWithOffset(BUBBLE_CREATE_NEW, arrow_offset); |
568 } | 568 } |
569 return true; | 569 return true; |
570 } | 570 } |
571 | 571 |
572 } // namespace ash | 572 } // namespace ash |
OLD | NEW |