Searched refs:style_info (Results 1 – 3 of 3) sorted by relevance
29 const StyledLabel::RangeStyleInfo& style_info, in CreateLabelRange() argument33 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() argument105 style_ranges_.push(StyleRange(range, style_info)); in AddStyleRange()[all …]
65 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
164 StyledLabel::RangeStyleInfo style_info; in TEST_F() local165 style_info.disable_line_wrapping = true; in TEST_F()168 style_info); in TEST_F()188 StyledLabel::RangeStyleInfo style_info; in TEST_F() local189 style_info.font_style = gfx::Font::UNDERLINE; in TEST_F()192 style_info); in TEST_F()210 StyledLabel::RangeStyleInfo style_info; in TEST_F() local211 style_info.font_style = gfx::Font::BOLD; in TEST_F()212 styled()->AddStyleRange(gfx::Range(0, bold_text.size()), style_info); in TEST_F()