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/common/system/status_area_widget.h" | 5 #include "ash/common/system/status_area_widget.h" |
6 | 6 |
7 #include "ash/common/material_design/material_design_controller.h" | 7 #include "ash/common/material_design/material_design_controller.h" |
8 #include "ash/common/shelf/wm_shelf.h" | 8 #include "ash/common/shelf/wm_shelf.h" |
9 #include "ash/common/system/overview/overview_button_tray.h" | 9 #include "ash/common/system/overview/overview_button_tray.h" |
10 #include "ash/common/system/status_area_widget_delegate.h" | 10 #include "ash/common/system/status_area_widget_delegate.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 SetContentsView(status_area_widget_delegate_); | 57 SetContentsView(status_area_widget_delegate_); |
58 } | 58 } |
59 | 59 |
60 StatusAreaWidget::~StatusAreaWidget() {} | 60 StatusAreaWidget::~StatusAreaWidget() {} |
61 | 61 |
62 void StatusAreaWidget::CreateTrayViews() { | 62 void StatusAreaWidget::CreateTrayViews() { |
63 AddOverviewButtonTray(); | 63 AddOverviewButtonTray(); |
64 AddSystemTray(); | 64 AddSystemTray(); |
65 AddWebNotificationTray(); | 65 AddWebNotificationTray(); |
66 #if defined(OS_CHROMEOS) | 66 #if defined(OS_CHROMEOS) |
67 AddLogoutButtonTray(); | |
68 AddPaletteTray(); | 67 AddPaletteTray(); |
69 AddVirtualKeyboardTray(); | 68 AddVirtualKeyboardTray(); |
70 AddImeMenuTray(); | 69 AddImeMenuTray(); |
| 70 AddLogoutButtonTray(); |
71 #endif | 71 #endif |
72 | 72 |
73 SystemTrayDelegate* delegate = WmShell::Get()->system_tray_delegate(); | 73 SystemTrayDelegate* delegate = WmShell::Get()->system_tray_delegate(); |
74 DCHECK(delegate); | 74 DCHECK(delegate); |
75 // Initialize after all trays have been created. | 75 // Initialize after all trays have been created. |
76 system_tray_->InitializeTrayItems(delegate, web_notification_tray_); | 76 system_tray_->InitializeTrayItems(delegate, web_notification_tray_); |
77 web_notification_tray_->Initialize(); | 77 web_notification_tray_->Initialize(); |
78 #if defined(OS_CHROMEOS) | 78 #if defined(OS_CHROMEOS) |
79 logout_button_tray_->Initialize(); | 79 logout_button_tray_->Initialize(); |
80 virtual_keyboard_tray_->Initialize(); | 80 virtual_keyboard_tray_->Initialize(); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 return false; | 297 return false; |
298 } | 298 } |
299 #endif | 299 #endif |
300 | 300 |
301 void StatusAreaWidget::AddOverviewButtonTray() { | 301 void StatusAreaWidget::AddOverviewButtonTray() { |
302 overview_button_tray_ = new OverviewButtonTray(wm_shelf_); | 302 overview_button_tray_ = new OverviewButtonTray(wm_shelf_); |
303 status_area_widget_delegate_->AddTray(overview_button_tray_); | 303 status_area_widget_delegate_->AddTray(overview_button_tray_); |
304 } | 304 } |
305 | 305 |
306 } // namespace ash | 306 } // namespace ash |
OLD | NEW |