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

Unified Diff: ash/system/tray/tray_image_item.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray/tray_image_item.h ('k') | ash/system/tray/tray_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_image_item.cc
diff --git a/ash/system/tray/tray_image_item.cc b/ash/system/tray/tray_image_item.cc
index 4b42984767464efa7f7196b404c2baeec35eb044..b08a4360bbb25be5de566a8c00a9382d17fd21e1 100644
--- a/ash/system/tray/tray_image_item.cc
+++ b/ash/system/tray/tray_image_item.cc
@@ -4,7 +4,7 @@
#include "ash/system/tray/tray_image_item.h"
-#include "ash/common/wm/shelf/wm_shelf_util.h"
+#include "ash/common/shelf/wm_shelf_util.h"
#include "ash/shelf/shelf_util.h"
#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/tray_item_view.h"
@@ -58,8 +58,7 @@ views::View* TrayImageItem::CreateDetailedView(user::LoginStatus status) {
void TrayImageItem::UpdateAfterLoginStatusChange(user::LoginStatus status) {
}
-void TrayImageItem::UpdateAfterShelfAlignmentChange(
- wm::ShelfAlignment alignment) {
+void TrayImageItem::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
SetTrayImageItemBorder(tray_view_, alignment);
SetItemAlignment(alignment);
}
@@ -74,9 +73,9 @@ void TrayImageItem::DestroyDefaultView() {
void TrayImageItem::DestroyDetailedView() {
}
-void TrayImageItem::SetItemAlignment(wm::ShelfAlignment alignment) {
+void TrayImageItem::SetItemAlignment(ShelfAlignment alignment) {
// Center the item dependent on the orientation of the shelf.
- views::BoxLayout::Orientation layout = wm::IsHorizontalAlignment(alignment)
+ views::BoxLayout::Orientation layout = IsHorizontalAlignment(alignment)
? views::BoxLayout::kHorizontal
: views::BoxLayout::kVertical;
tray_view_->SetLayoutManager(new views::BoxLayout(layout, 0, 0, 0));
« no previous file with comments | « ash/system/tray/tray_image_item.h ('k') | ash/system/tray/tray_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698