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

Unified Diff: ash/wm/overview/window_selector_item.cc

Issue 23228004: Prepare to use gfx::RenderText in views::Label. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix OnBoundsChanged handling. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/overview/window_selector_item.cc
diff --git a/ash/wm/overview/window_selector_item.cc b/ash/wm/overview/window_selector_item.cc
index cd3bbaf2a4013d28915a7d4cce7e89f802499589..9245f210097fff78ccda1d20c10390867de80d45 100644
--- a/ash/wm/overview/window_selector_item.cc
+++ b/ash/wm/overview/window_selector_item.cc
@@ -94,8 +94,10 @@ views::Widget* CreateWindowLabel(aura::Window* root_window,
views::Label* label = new views::Label;
label->SetEnabledColor(kLabelColor);
label->SetBackgroundColor(kLabelBackground);
- label->set_shadows(gfx::ShadowValues(1, gfx::ShadowValue(
- gfx::Point(0, kVerticalShadowOffset), kShadowBlur, kLabelShadow)));
+ label->SetShadows(gfx::ShadowValues(
+ 1,
+ gfx::ShadowValue(
+ gfx::Point(0, kVerticalShadowOffset), kShadowBlur, kLabelShadow)));
ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
label->SetFontList(bundle.GetFontList(ui::ResourceBundle::BoldFont));
label->SetText(title);
@@ -327,8 +329,10 @@ void WindowSelectorItem::CreateWindowLabel(const base::string16& title) {
window_label_view_ = new views::Label;
window_label_view_->SetEnabledColor(kLabelColor);
window_label_view_->SetBackgroundColor(kLabelBackground);
- window_label_view_->set_shadows(gfx::ShadowValues(1, gfx::ShadowValue(
- gfx::Point(0, kVerticalShadowOffset), kShadowBlur, kLabelShadow)));
+ window_label_view_->SetShadows(gfx::ShadowValues(
+ 1,
+ gfx::ShadowValue(
+ gfx::Point(0, kVerticalShadowOffset), kShadowBlur, kLabelShadow)));
ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
window_label_view_->SetFontList(
bundle.GetFontList(ui::ResourceBundle::BoldFont));

Powered by Google App Engine
This is Rietveld 408576698