Home
last modified time | relevance | path

Searched refs:style_info (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/ui/views/controls/
Dstyled_label.cc29 const StyledLabel::RangeStyleInfo& style_info, in CreateLabelRange() argument
33 if (style_info.is_link) { in CreateLabelRange()
36 link->SetUnderline((style_info.font_style & gfx::Font::UNDERLINE) != 0); in CreateLabelRange()
47 result->SetEnabledColor(style_info.color); in CreateLabelRange()
49 if (!style_info.tooltip.empty()) in CreateLabelRange()
50 result->SetTooltipText(style_info.tooltip); in CreateLabelRange()
51 if (style_info.font_style != gfx::Font::NORMAL) in CreateLabelRange()
52 result->SetFont(result->font().DeriveFont(0, style_info.font_style)); in CreateLabelRange()
100 const RangeStyleInfo& style_info) { in AddStyleRange() argument
105 style_ranges_.push(StyleRange(range, style_info)); in AddStyleRange()
[all …]
Dstyled_label.h65 void AddStyleRange(const gfx::Range& range, const RangeStyleInfo& style_info);
69 void SetDefaultStyle(const RangeStyleInfo& style_info);
95 const RangeStyleInfo& style_info) in StyleRange()
97 style_info(style_info) { in StyleRange()
104 RangeStyleInfo style_info; member
Dstyled_label_unittest.cc164 StyledLabel::RangeStyleInfo style_info; in TEST_F() local
165 style_info.disable_line_wrapping = true; in TEST_F()
168 style_info); in TEST_F()
188 StyledLabel::RangeStyleInfo style_info; in TEST_F() local
189 style_info.font_style = gfx::Font::UNDERLINE; in TEST_F()
192 style_info); in TEST_F()
210 StyledLabel::RangeStyleInfo style_info; in TEST_F() local
211 style_info.font_style = gfx::Font::BOLD; in TEST_F()
212 styled()->AddStyleRange(gfx::Range(0, bold_text.size()), style_info); in TEST_F()