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/chromeos/ime_menu/ime_menu_tray.h" | 9 #include "ash/common/system/chromeos/ime_menu/ime_menu_tray.h" |
10 #include "ash/common/system/chromeos/palette/palette_tray.h" | 10 #include "ash/common/system/chromeos/palette/palette_tray.h" |
11 #include "ash/common/system/chromeos/palette/palette_utils.h" | 11 #include "ash/common/system/chromeos/palette/palette_utils.h" |
12 #include "ash/common/system/chromeos/session/logout_button_tray.h" | 12 #include "ash/common/system/chromeos/session/logout_button_tray.h" |
13 #include "ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.h" | 13 #include "ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_tray.h" |
14 #include "ash/common/system/overview/overview_button_tray.h" | 14 #include "ash/common/system/overview/overview_button_tray.h" |
15 #include "ash/common/system/status_area_widget_delegate.h" | 15 #include "ash/common/system/status_area_widget_delegate.h" |
16 #include "ash/common/system/tray/system_tray.h" | 16 #include "ash/common/system/tray/system_tray.h" |
17 #include "ash/common/system/tray/system_tray_delegate.h" | 17 #include "ash/common/system/tray/system_tray_delegate.h" |
18 #include "ash/common/system/web_notification/web_notification_tray.h" | 18 #include "ash/common/system/web_notification/web_notification_tray.h" |
19 #include "ash/common/wm_lookup.h" | 19 #include "ash/common/wm_lookup.h" |
20 #include "ash/common/wm_root_window_controller.h" | |
21 #include "ash/common/wm_shell.h" | 20 #include "ash/common/wm_shell.h" |
22 #include "ash/common/wm_window.h" | 21 #include "ash/common/wm_window.h" |
23 #include "ash/public/cpp/shell_window_ids.h" | 22 #include "ash/public/cpp/shell_window_ids.h" |
| 23 #include "ash/root_window_controller.h" |
24 #include "base/i18n/time_formatting.h" | 24 #include "base/i18n/time_formatting.h" |
25 #include "ui/display/display.h" | 25 #include "ui/display/display.h" |
26 #include "ui/native_theme/native_theme_dark_aura.h" | 26 #include "ui/native_theme/native_theme_dark_aura.h" |
27 | 27 |
28 namespace ash { | 28 namespace ash { |
29 | 29 |
30 StatusAreaWidget::StatusAreaWidget(WmWindow* status_container, | 30 StatusAreaWidget::StatusAreaWidget(WmWindow* status_container, |
31 WmShelf* wm_shelf) | 31 WmShelf* wm_shelf) |
32 : status_area_widget_delegate_(new StatusAreaWidgetDelegate), | 32 : status_area_widget_delegate_(new StatusAreaWidgetDelegate), |
33 overview_button_tray_(nullptr), | 33 overview_button_tray_(nullptr), |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 ime_menu_tray_ = new ImeMenuTray(wm_shelf_); | 236 ime_menu_tray_ = new ImeMenuTray(wm_shelf_); |
237 status_area_widget_delegate_->AddTray(ime_menu_tray_); | 237 status_area_widget_delegate_->AddTray(ime_menu_tray_); |
238 } | 238 } |
239 | 239 |
240 void StatusAreaWidget::AddOverviewButtonTray() { | 240 void StatusAreaWidget::AddOverviewButtonTray() { |
241 overview_button_tray_ = new OverviewButtonTray(wm_shelf_); | 241 overview_button_tray_ = new OverviewButtonTray(wm_shelf_); |
242 status_area_widget_delegate_->AddTray(overview_button_tray_); | 242 status_area_widget_delegate_->AddTray(overview_button_tray_); |
243 } | 243 } |
244 | 244 |
245 } // namespace ash | 245 } // namespace ash |
OLD | NEW |