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

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

Issue 12564007: Hook up system clock update dbus signal to chrome and ash tray ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser_tests by adding MockSystemClockClient. Created 7 years, 9 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 | Annotate | Revision Log
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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698