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

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: Add a lost comment and modify a render text unittest to not test black because of test env font con… Created 4 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 | « ui/views/controls/button/label_button_unittest.cc ('k') | ui/views/controls/styled_label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..075827796428dc46e18332ac7f869acdb03255f7 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::Weight weight;
+
// The text color for the range. Default is SK_ColorTRANSPARENT, indicating
// the theme's default color should be used.
SkColor color;
« no previous file with comments | « ui/views/controls/button/label_button_unittest.cc ('k') | ui/views/controls/styled_label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698