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

Unified Diff: ash/system/date/tray_date.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/date/tray_date.h ('k') | ash/system/ime/tray_ime_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/date/tray_date.cc
diff --git a/ash/system/date/tray_date.cc b/ash/system/date/tray_date.cc
index 078024911a5a354af20daeebf8a6f9c5ae41e9a9..e593e5d0ba115b6db143bcdeaff6e685419d8e9e 100644
--- a/ash/system/date/tray_date.cc
+++ b/ash/system/date/tray_date.cc
@@ -4,7 +4,7 @@
#include "ash/system/date/tray_date.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/shell.h"
#include "ash/system/date/date_default_view.h"
@@ -55,7 +55,7 @@ views::View* TrayDate::CreateDefaultViewForTesting(user::LoginStatus status) {
views::View* TrayDate::CreateTrayView(user::LoginStatus status) {
CHECK(time_tray_ == NULL);
ClockLayout clock_layout =
- system_tray()->shelf_alignment() == wm::SHELF_ALIGNMENT_BOTTOM
+ system_tray()->shelf_alignment() == SHELF_ALIGNMENT_BOTTOM
? HORIZONTAL_CLOCK
: VERTICAL_CLOCK;
time_tray_ = new tray::TimeView(clock_layout);
@@ -94,11 +94,10 @@ void TrayDate::DestroyDetailedView() {
void TrayDate::UpdateAfterLoginStatusChange(user::LoginStatus status) {
}
-void TrayDate::UpdateAfterShelfAlignmentChange(wm::ShelfAlignment alignment) {
+void TrayDate::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
if (time_tray_) {
- ClockLayout clock_layout = wm::IsHorizontalAlignment(alignment)
- ? HORIZONTAL_CLOCK
- : VERTICAL_CLOCK;
+ ClockLayout clock_layout =
+ IsHorizontalAlignment(alignment) ? HORIZONTAL_CLOCK : VERTICAL_CLOCK;
time_tray_->UpdateClockLayout(clock_layout);
}
}
« no previous file with comments | « ash/system/date/tray_date.h ('k') | ash/system/ime/tray_ime_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698