| 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/date/tray_date.h" | 5 #include "ash/system/date/tray_date.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/system/date/date_view.h" | 8 #include "ash/system/date/date_view.h" |
| 9 #include "ash/system/tray/system_tray.h" | 9 #include "ash/system/tray/system_tray.h" |
| 10 #include "ash/system/tray/system_tray_delegate.h" | 10 #include "ash/system/tray/system_tray_delegate.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 HORIZONTAL_CLOCK : VERTICAL_CLOCK; | 181 HORIZONTAL_CLOCK : VERTICAL_CLOCK; |
| 182 time_tray_->UpdateClockLayout(clock_layout); | 182 time_tray_->UpdateClockLayout(clock_layout); |
| 183 } | 183 } |
| 184 } | 184 } |
| 185 | 185 |
| 186 void TrayDate::OnDateFormatChanged() { | 186 void TrayDate::OnDateFormatChanged() { |
| 187 if (time_tray_) | 187 if (time_tray_) |
| 188 time_tray_->UpdateTimeFormat(); | 188 time_tray_->UpdateTimeFormat(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 void TrayDate::OnSystemClockTimeUpdated() { |
| 192 if (time_tray_) |
| 193 time_tray_->UpdateTimeFormat(); |
| 194 } |
| 195 |
| 191 void TrayDate::Refresh() { | 196 void TrayDate::Refresh() { |
| 192 if (time_tray_) | 197 if (time_tray_) |
| 193 time_tray_->UpdateText(); | 198 time_tray_->UpdateText(); |
| 194 } | 199 } |
| 195 | 200 |
| 196 } // namespace internal | 201 } // namespace internal |
| 197 } // namespace ash | 202 } // namespace ash |
| OLD | NEW |