| 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/date/tray_date.h" | 5 #include "ash/common/system/date/tray_date.h" |
| 6 | 6 |
| 7 #include "ash/common/shelf/wm_shelf_util.h" | 7 #include "ash/common/shelf/wm_shelf_util.h" |
| 8 #include "ash/common/system/date/date_default_view.h" | 8 #include "ash/common/system/date/date_default_view.h" |
| 9 #include "ash/common/system/date/date_view.h" | 9 #include "ash/common/system/date/date_view.h" |
| 10 #include "ash/common/system/tray/system_tray_notifier.h" | 10 #include "ash/common/system/tray/system_tray_notifier.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 80 } |
| 81 | 81 |
| 82 void TrayDate::DestroyTrayView() { | 82 void TrayDate::DestroyTrayView() { |
| 83 time_tray_ = NULL; | 83 time_tray_ = NULL; |
| 84 } | 84 } |
| 85 | 85 |
| 86 void TrayDate::DestroyDefaultView() { | 86 void TrayDate::DestroyDefaultView() { |
| 87 default_view_ = NULL; | 87 default_view_ = NULL; |
| 88 } | 88 } |
| 89 | 89 |
| 90 void TrayDate::DestroyDetailedView() { | 90 void TrayDate::DestroyDetailedView() {} |
| 91 } | |
| 92 | 91 |
| 93 void TrayDate::UpdateAfterLoginStatusChange(LoginStatus status) {} | 92 void TrayDate::UpdateAfterLoginStatusChange(LoginStatus status) {} |
| 94 | 93 |
| 95 void TrayDate::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) { | 94 void TrayDate::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) { |
| 96 if (time_tray_) { | 95 if (time_tray_) { |
| 97 ClockLayout clock_layout = | 96 ClockLayout clock_layout = |
| 98 IsHorizontalAlignment(alignment) ? HORIZONTAL_CLOCK : VERTICAL_CLOCK; | 97 IsHorizontalAlignment(alignment) ? HORIZONTAL_CLOCK : VERTICAL_CLOCK; |
| 99 time_tray_->UpdateClockLayout(clock_layout); | 98 time_tray_->UpdateClockLayout(clock_layout); |
| 100 } | 99 } |
| 101 } | 100 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 122 can_set_time ? TrayDate::SET_SYSTEM_TIME : TrayDate::NONE); | 121 can_set_time ? TrayDate::SET_SYSTEM_TIME : TrayDate::NONE); |
| 123 } | 122 } |
| 124 } | 123 } |
| 125 | 124 |
| 126 void TrayDate::Refresh() { | 125 void TrayDate::Refresh() { |
| 127 if (time_tray_) | 126 if (time_tray_) |
| 128 time_tray_->UpdateText(); | 127 time_tray_->UpdateText(); |
| 129 } | 128 } |
| 130 | 129 |
| 131 } // namespace ash | 130 } // namespace ash |
| OLD | NEW |