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

Unified Diff: ui/views/controls/label.cc

Issue 119273002: Clean-up: Retires obsolete methods in views::Label and views::TextButtonBase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged. Created 6 years, 11 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
« no previous file with comments | « ui/views/controls/label.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/label.cc
diff --git a/ui/views/controls/label.cc b/ui/views/controls/label.cc
index dcd33f6b8e69da9b332ef2acdb60e3bc453d4e2d..0a7362d41d6c15a9d016915967e3a25ef495971c 100644
--- a/ui/views/controls/label.cc
+++ b/ui/views/controls/label.cc
@@ -29,11 +29,6 @@ namespace {
const int kCachedSizeLimit = 10;
-gfx::FontList GetDefaultFontList() {
- return ui::ResourceBundle::GetSharedInstance().GetFontList(
- ui::ResourceBundle::BaseFont);
-}
-
} // namespace
namespace views {
@@ -43,21 +38,17 @@ const char Label::kViewClassName[] = "Label";
const int Label::kFocusBorderPadding = 1;
Label::Label() {
- Init(base::string16(), GetDefaultFontList());
+ Init(base::string16(), gfx::FontList());
sadrul 2014/01/06 18:41:04 Is this gfx::FontList() equivalent to the default
Yuki 2014/01/07 02:28:36 Yes, it's now equivalent.
sadrul 2014/01/07 02:35:32 Considering crbug.com/330975, if we get the FontLi
Yuki 2014/01/07 02:41:32 That's a good point. Let me address the issue fir
Yuki 2014/01/07 13:00:53 Just FYI, I've sent out a CL: http://crrev.com/124
}
Label::Label(const base::string16& text) {
- Init(text, GetDefaultFontList());
+ Init(text, gfx::FontList());
}
Label::Label(const base::string16& text, const gfx::FontList& font_list) {
Init(text, font_list);
}
-Label::Label(const base::string16& text, const gfx::Font& font) {
- Init(text, gfx::FontList(font));
-}
-
Label::~Label() {
}
@@ -68,14 +59,6 @@ void Label::SetFontList(const gfx::FontList& font_list) {
SchedulePaint();
}
-const gfx::Font& Label::font() const {
- return font_list_.GetPrimaryFont();
-}
-
-void Label::SetFont(const gfx::Font& font) {
- SetFontList(gfx::FontList(font));
-}
-
void Label::SetText(const base::string16& text) {
if (text == text_)
return;
« no previous file with comments | « ui/views/controls/label.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698