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

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

Issue 140693017: Clean-up: Replaces obsolete Font/FontList methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 6 years, 10 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
« no previous file with comments | « ash/system/chromeos/network/tray_sms.cc ('k') | ash/system/logout_button/logout_button_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/date_view.h" 5 #include "ash/system/date/date_view.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/tray/system_tray_delegate.h" 8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "ash/system/tray/tray_constants.h" 9 #include "ash/system/tray/tray_constants.h"
10 #include "ash/system/tray/tray_utils.h" 10 #include "ash/system/tray/tray_utils.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 SetupLabel(vertical_label_minutes_.get()); 294 SetupLabel(vertical_label_minutes_.get());
295 vertical_label_minutes_->SetEnabledColor(kVerticalClockMinuteColor); 295 vertical_label_minutes_->SetEnabledColor(kVerticalClockMinuteColor);
296 // Pull the minutes up closer to the hours by using a negative top border. 296 // Pull the minutes up closer to the hours by using a negative top border.
297 vertical_label_minutes_->SetBorder(views::Border::CreateEmptyBorder( 297 vertical_label_minutes_->SetBorder(views::Border::CreateEmptyBorder(
298 kVerticalClockMinutesTopOffset, 0, 0, 0)); 298 kVerticalClockMinutesTopOffset, 0, 0, 0));
299 } 299 }
300 300
301 void TimeView::SetupLabel(views::Label* label) { 301 void TimeView::SetupLabel(views::Label* label) {
302 label->set_owned_by_client(); 302 label->set_owned_by_client();
303 SetupLabelForTray(label); 303 SetupLabelForTray(label);
304 label->SetFontList(label->font_list().DeriveFontListWithSizeDeltaAndStyle( 304 label->SetFontList(label->font_list().DeriveWithStyle(
305 0, label->font_list().GetFontStyle() & ~gfx::Font::BOLD)); 305 label->font_list().GetFontStyle() & ~gfx::Font::BOLD));
306 } 306 }
307 307
308 } // namespace tray 308 } // namespace tray
309 } // namespace internal 309 } // namespace internal
310 } // namespace ash 310 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/network/tray_sms.cc ('k') | ash/system/logout_button/logout_button_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698