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

Unified Diff: ui/gfx/font_list.h

Issue 142523003: Renames gfx::FontList::Derive* family. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. 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/base/resource/resource_bundle.cc ('k') | ui/gfx/font_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font_list.h
diff --git a/ui/gfx/font_list.h b/ui/gfx/font_list.h
index c70c37f6cdec1a1113eebe30e18abf055ac2d4bc..fd27f62bbe55d7816584c8ba05c62b11241fc78d 100644
--- a/ui/gfx/font_list.h
+++ b/ui/gfx/font_list.h
@@ -66,21 +66,23 @@ class GFX_EXPORT FontList {
// is changed.
static void SetDefaultFontDescription(const std::string& font_description);
- // Returns a new FontList with the given |font_style| flags.
- FontList DeriveFontList(int font_style) const;
-
- // Returns a new FontList with the same font names and style but with the
- // given font |size| in pixels.
- FontList DeriveFontListWithSize(int size) const;
-
- // Returns a new FontList with the same font names and style but resized.
- // |size_delta| is the size in pixels to add to the current font size.
- FontList DeriveFontListWithSizeDelta(int size_delta) const;
-
// Returns a new FontList with the same font names but resized and the given
// style. |size_delta| is the size in pixels to add to the current font size.
// |font_style| specifies the new style, which is a bitmask of the values:
// Font::BOLD, Font::ITALIC and Font::UNDERLINE.
+ FontList Derive(int size_delta, int font_style) const;
+
+ // Returns a new FontList with the same font names and style but resized.
+ // |size_delta| is the size in pixels to add to the current font size.
+ FontList DeriveWithSizeDelta(int size_delta) const;
+
+ // Returns a new FontList with the same font names and size but the given
+ // style. |font_style| specifies the new style, which is a bitmask of the
+ // values: Font::BOLD, Font::ITALIC and Font::UNDERLINE.
+ FontList DeriveWithStyle(int font_style) const;
+
+ // Obsolete versions. Use the abolve methods instead.
+ FontList DeriveFontListWithSizeDelta(int size_delta) const;
FontList DeriveFontListWithSizeDeltaAndStyle(int size_delta,
int font_style) const;
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/gfx/font_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698