| 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/status_area_widget.h" | 5 #include "ash/system/status_area_widget.h" |
| 6 | 6 |
| 7 #include "ash/common/shell_window_ids.h" | 7 #include "ash/common/shell_window_ids.h" |
| 8 #include "ash/common/wm_root_window_controller.h" | 8 #include "ash/common/wm_root_window_controller.h" |
| 9 #include "ash/common/wm_window.h" | 9 #include "ash/common/wm_window.h" |
| 10 #include "ash/shelf/shelf_layout_manager.h" | 10 #include "ash/shelf/shelf_layout_manager.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 virtual_keyboard_tray_ = new VirtualKeyboardTray(this); | 167 virtual_keyboard_tray_ = new VirtualKeyboardTray(this); |
| 168 status_area_widget_delegate_->AddTray(virtual_keyboard_tray_); | 168 status_area_widget_delegate_->AddTray(virtual_keyboard_tray_); |
| 169 } | 169 } |
| 170 #endif | 170 #endif |
| 171 | 171 |
| 172 void StatusAreaWidget::AddOverviewButtonTray() { | 172 void StatusAreaWidget::AddOverviewButtonTray() { |
| 173 overview_button_tray_ = new OverviewButtonTray(this); | 173 overview_button_tray_ = new OverviewButtonTray(this); |
| 174 status_area_widget_delegate_->AddTray(overview_button_tray_); | 174 status_area_widget_delegate_->AddTray(overview_button_tray_); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void StatusAreaWidget::SetShelfAlignment(wm::ShelfAlignment alignment) { | 177 void StatusAreaWidget::SetShelfAlignment(ShelfAlignment alignment) { |
| 178 status_area_widget_delegate_->set_alignment(alignment); | 178 status_area_widget_delegate_->set_alignment(alignment); |
| 179 if (system_tray_) | 179 if (system_tray_) |
| 180 system_tray_->SetShelfAlignment(alignment); | 180 system_tray_->SetShelfAlignment(alignment); |
| 181 if (web_notification_tray_) | 181 if (web_notification_tray_) |
| 182 web_notification_tray_->SetShelfAlignment(alignment); | 182 web_notification_tray_->SetShelfAlignment(alignment); |
| 183 #if defined(OS_CHROMEOS) | 183 #if defined(OS_CHROMEOS) |
| 184 if (logout_button_tray_) | 184 if (logout_button_tray_) |
| 185 logout_button_tray_->SetShelfAlignment(alignment); | 185 logout_button_tray_->SetShelfAlignment(alignment); |
| 186 if (virtual_keyboard_tray_) | 186 if (virtual_keyboard_tray_) |
| 187 virtual_keyboard_tray_->SetShelfAlignment(alignment); | 187 virtual_keyboard_tray_->SetShelfAlignment(alignment); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 207 web_notification_tray_->UpdateAfterLoginStatusChange(login_status); | 207 web_notification_tray_->UpdateAfterLoginStatusChange(login_status); |
| 208 #if defined(OS_CHROMEOS) | 208 #if defined(OS_CHROMEOS) |
| 209 if (logout_button_tray_) | 209 if (logout_button_tray_) |
| 210 logout_button_tray_->UpdateAfterLoginStatusChange(login_status); | 210 logout_button_tray_->UpdateAfterLoginStatusChange(login_status); |
| 211 #endif | 211 #endif |
| 212 if (overview_button_tray_) | 212 if (overview_button_tray_) |
| 213 overview_button_tray_->UpdateAfterLoginStatusChange(login_status); | 213 overview_button_tray_->UpdateAfterLoginStatusChange(login_status); |
| 214 } | 214 } |
| 215 | 215 |
| 216 } // namespace ash | 216 } // namespace ash |
| OLD | NEW |