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/bluetooth/tray_bluetooth.h" | 12 #include "ash/system/bluetooth/tray_bluetooth.h" |
13 #include "ash/system/brightness/tray_brightness.h" | 13 #include "ash/system/brightness/tray_brightness.h" |
| 14 #include "ash/system/chromeos/tray_tracing.h" |
14 #include "ash/system/date/tray_date.h" | 15 #include "ash/system/date/tray_date.h" |
15 #include "ash/system/drive/tray_drive.h" | 16 #include "ash/system/drive/tray_drive.h" |
16 #include "ash/system/ime/tray_ime.h" | 17 #include "ash/system/ime/tray_ime.h" |
17 #include "ash/system/logout_button/tray_logout_button.h" | 18 #include "ash/system/logout_button/tray_logout_button.h" |
18 #include "ash/system/monitor/tray_monitor.h" | 19 #include "ash/system/monitor/tray_monitor.h" |
19 #include "ash/system/session_length_limit/tray_session_length_limit.h" | 20 #include "ash/system/session_length_limit/tray_session_length_limit.h" |
20 #include "ash/system/status_area_widget.h" | 21 #include "ash/system/status_area_widget.h" |
21 #include "ash/system/tray/system_tray_delegate.h" | 22 #include "ash/system/tray/system_tray_delegate.h" |
22 #include "ash/system/tray/system_tray_item.h" | 23 #include "ash/system/tray/system_tray_item.h" |
23 #include "ash/system/tray/tray_bubble_wrapper.h" | 24 #include "ash/system/tray/tray_bubble_wrapper.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 161 |
161 #endif | 162 #endif |
162 #if defined(OS_CHROMEOS) | 163 #if defined(OS_CHROMEOS) |
163 AddTrayItem(new internal::TrayEnterprise(this)); | 164 AddTrayItem(new internal::TrayEnterprise(this)); |
164 AddTrayItem(new internal::TrayLocallyManagedUser(this)); | 165 AddTrayItem(new internal::TrayLocallyManagedUser(this)); |
165 #endif | 166 #endif |
166 AddTrayItem(new internal::TrayIME(this)); | 167 AddTrayItem(new internal::TrayIME(this)); |
167 tray_accessibility_ = new internal::TrayAccessibility(this); | 168 tray_accessibility_ = new internal::TrayAccessibility(this); |
168 AddTrayItem(tray_accessibility_); | 169 AddTrayItem(tray_accessibility_); |
169 #if defined(OS_CHROMEOS) | 170 #if defined(OS_CHROMEOS) |
| 171 AddTrayItem(new internal::TrayTracing(this)); |
170 AddTrayItem( | 172 AddTrayItem( |
171 new internal::TrayPower(this, message_center::MessageCenter::Get())); | 173 new internal::TrayPower(this, message_center::MessageCenter::Get())); |
172 #endif | 174 #endif |
173 #if defined(OS_CHROMEOS) | 175 #if defined(OS_CHROMEOS) |
174 AddTrayItem(new internal::TrayNetwork(this)); | 176 AddTrayItem(new internal::TrayNetwork(this)); |
175 AddTrayItem(new internal::TrayVPN(this)); | 177 AddTrayItem(new internal::TrayVPN(this)); |
176 AddTrayItem(new internal::TraySms(this)); | 178 AddTrayItem(new internal::TraySms(this)); |
177 #endif | 179 #endif |
178 #if !defined(OS_WIN) | 180 #if !defined(OS_WIN) |
179 AddTrayItem(new internal::TrayBluetooth(this)); | 181 AddTrayItem(new internal::TrayBluetooth(this)); |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 ConvertPointToWidget(this, &point); | 654 ConvertPointToWidget(this, &point); |
653 arrow_offset = point.x(); | 655 arrow_offset = point.x(); |
654 } | 656 } |
655 } | 657 } |
656 ShowDefaultViewWithOffset(BUBBLE_CREATE_NEW, arrow_offset); | 658 ShowDefaultViewWithOffset(BUBBLE_CREATE_NEW, arrow_offset); |
657 } | 659 } |
658 return true; | 660 return true; |
659 } | 661 } |
660 | 662 |
661 } // namespace ash | 663 } // namespace ash |
OLD | NEW |