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

Side by Side Diff: ash/common/system/date/tray_date.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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/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
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
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
OLDNEW
« no previous file with comments | « ash/common/system/date/date_view.cc ('k') | ash/common/system/locale/locale_notification_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698