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

Unified Diff: ui/views/controls/styled_label.h

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: ui/views/controls/styled_label.h
diff --git a/ui/views/controls/styled_label.h b/ui/views/controls/styled_label.h
index ee0780e494d44cf08a7ed05b03bdd1f1f09a721b..08829780f8b2bdecc700cc566772fdf12eb0c227 100644
--- a/ui/views/controls/styled_label.h
+++ b/ui/views/controls/styled_label.h
@@ -41,9 +41,12 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener {
static RangeStyleInfo CreateForLink();
// The font style that will be applied to the range. Should be a bitmask of
- // values defined in gfx::Font::FontStyle (BOLD, ITALIC, UNDERLINE).
+ // values defined in gfx::Font::FontStyle (ITALIC, UNDERLINE).
int font_style;
+ // The font weight to be applied to the range. Default is WEIGHT_NORMAL.
+ gfx::Font::FontWeight weight;
+
// The text color for the range. Default is SK_ColorTRANSPARENT, indicating
// the theme's default color should be used.
SkColor color;

Powered by Google App Engine
This is Rietveld 408576698