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

Unified Diff: app/gfx/font.h

Issue 341045: Fix up extension badge text drawing.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « no previous file | app/gfx/font_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/font.h
===================================================================
--- app/gfx/font.h (revision 30614)
+++ app/gfx/font.h (working copy)
@@ -97,7 +97,7 @@
// Font Name.
// It is actually a font family name, because Skia expects a family name
// and not a font name.
- std::wstring FontName();
+ const std::wstring& FontName() const;
// Font Size.
int FontSize();
@@ -175,6 +175,7 @@
int ave_char_width() const { return ave_char_width_; }
int style() const { return style_; }
int dlu_base_x() const { return dlu_base_x_; }
+ const std::wstring& font_name() const { return font_name_; }
private:
const HFONT hfont_;
@@ -184,6 +185,7 @@
const int style_;
// Constants used in converting dialog units to pixels.
const int dlu_base_x_;
+ const std::wstring font_name_;
DISALLOW_COPY_AND_ASSIGN(HFontRef);
};
« no previous file with comments | « no previous file | app/gfx/font_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698