Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: ash/system/status_area_widget.cc

Issue 2036353002: mash: Move ash/common/wm/shelf to ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/status_area_widget.h ('k') | ash/system/status_area_widget_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/system/status_area_widget.h ('k') | ash/system/status_area_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698