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

Unified Diff: views/controls/label.cc

Issue 113441: ChromeFont->gfx::Font... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | « views/controls/label.h ('k') | views/controls/label_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/label.cc
===================================================================
--- views/controls/label.cc (revision 16106)
+++ views/controls/label.cc (working copy)
@@ -32,11 +32,11 @@
Init(text, GetDefaultFont());
}
-Label::Label(const std::wstring& text, const ChromeFont& font) {
+Label::Label(const std::wstring& text, const gfx::Font& font) {
Init(text, font);
}
-void Label::Init(const std::wstring& text, const ChromeFont& font) {
+void Label::Init(const std::wstring& text, const gfx::Font& font) {
contains_mouse_ = false;
font_ = font;
text_size_valid_ = false;
@@ -175,13 +175,13 @@
bg->Paint(canvas, this);
}
-void Label::SetFont(const ChromeFont& font) {
+void Label::SetFont(const gfx::Font& font) {
font_ = font;
text_size_valid_ = false;
SchedulePaint();
}
-ChromeFont Label::GetFont() const {
+gfx::Font Label::GetFont() const {
return font_;
}
@@ -354,7 +354,7 @@
}
// static
-ChromeFont Label::GetDefaultFont() {
+gfx::Font Label::GetDefaultFont() {
return ResourceBundle::GetSharedInstance().GetFont(ResourceBundle::BaseFont);
}
« no previous file with comments | « views/controls/label.h ('k') | views/controls/label_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698