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

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

Issue 342833002: [Password Generation] Update Aura UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Coments Created 6 years, 5 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 4c599a0d438c5de58e98cd5cde3927a8ccdb7e86..ce1004c0b4bb860bcec3cc72eed1eb1c63c08820 100644
--- a/ui/views/controls/styled_label.h
+++ b/ui/views/controls/styled_label.h
@@ -73,6 +73,11 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener {
// a range set by AddStyleRange.
void SetDefaultStyle(const RangeStyleInfo& style_info);
+ // Get or set the distance in pixels between baselines of multi-line text.
+ // Default is 0, indicating the distance between lines should be the standard
+ // one for the label's text, font list, and platform.
+ void SetLineHeight(int height);
+
// Sets the color of the background on which the label is drawn. This won't
// be explicitly drawn, but the label will force the text color to be
// readable over it.
@@ -122,6 +127,9 @@ class VIEWS_EXPORT StyledLabel : public View, public LinkListener {
// Fonts used to display text. Can be augmented by RangeStyleInfo.
gfx::FontList font_list_;
+ // Line height.
+ int specified_line_height_;
+
// The default style to use for any part of the text that isn't within
// a range in |style_ranges_|.
RangeStyleInfo default_style_info_;
« no previous file with comments | « chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc ('k') | ui/views/controls/styled_label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698