Home
last modified time | relevance | path

Searched refs:font_list_ (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/ui/message_center/views/
Dbounded_label_unittest.cc26 digit_pixels_ = gfx::GetStringWidth(UTF8ToUTF16("0"), font_list_); in BoundedLabelTest()
27 space_pixels_ = gfx::GetStringWidth(UTF8ToUTF16(" "), font_list_); in BoundedLabelTest()
29 font_list_); in BoundedLabelTest()
67 label_->SetBounds(0, 0, width, font_list_.GetHeight() * lines_); in GetLinesForWidth()
76 label_.reset(new BoundedLabel(text, font_list_)); in Label()
83 gfx::FontList font_list_; member in message_center::test::BoundedLabelTest
/external/chromium_org/ui/views/controls/
Dlabel.cc66 font_list_ = font_list; in SetFontList()
73 return font_list_.GetPrimaryFont(); in font()
192 label_width = std::max(label_width, gfx::GetStringWidth(*iter, font_list_)); in SizeToFit()
222 return GetInsets().top() + font_list_.GetBaseline(); in GetBaseline()
254 int h = font_list_.GetHeight(); in GetHeightForWidth()
256 gfx::Canvas::SizeStringInt(text_, font_list_, &w, &h, line_height_, flags); in GetHeightForWidth()
317 canvas->DrawStringRectWithShadows(text, font_list_, in PaintText()
336 int h = font_list_.GetHeight(); in GetTextSize()
342 gfx::Canvas::SizeStringInt(text_, font_list_, &w, &h, line_height_, flags); in GetTextSize()
373 font_list_ = font_list; in Init()
[all …]
Dlabel.h62 const gfx::FontList& font_list() const { return font_list_; } in font_list()
241 gfx::FontList font_list_; variable
/external/chromium_org/ui/views/examples/
Dtext_example.cc97 canvas->DrawFadeTruncatingStringRect(text_, fade_mode_, font_list_, in OnPaint()
100 canvas->DrawStringRectWithHalo(text_, font_list_, SK_ColorDKGRAY, in OnPaint()
103 canvas->DrawStringRectWithFlags(text_, font_list_, SK_ColorDKGRAY, bounds, in OnPaint()
124 return font_list_.GetFontStyle(); in GetFontStyle()
127 font_list_ = font_list_.DeriveFontList(style); in SetFontStyle()
132 gfx::FontList font_list_; member in views::examples::TextExample::TextExampleView
/external/chromium_org/chrome/browser/ui/views/download/
Ddownload_item_view.cc194 font_list_ = rb.GetFontList(ui::ResourceBundle::BaseFont); in DownloadItemView()
195 box_height_ = std::max<int>(2 * kVerticalPadding + font_list_.GetHeight() + in DownloadItemView()
196 kVerticalTextPadding + font_list_.GetHeight(), in DownloadItemView()
303 base::string16 new_tip = model_.GetTooltipText(font_list_, kTooltipMaxWidth); in OnDownloadUpdated()
363 height = 2 * kVerticalPadding + 2 * font_list_.GetHeight() + in GetPreferredSize()
661 int y = box_y_ + kVerticalPadding + font_list_.GetHeight() + in OnPaintBackground()
675 canvas->DrawStringRect(status_text_, font_list_, file_name_color, in OnPaintBackground()
677 font_list_.GetHeight())); in OnPaintBackground()
768 font_list_, kTextWidth); in OnPaintBackground()
774 int status_string_width = font_list_.GetStringWidth(status_string); in OnPaintBackground()
[all …]
Ddownload_item_view.h248 gfx::FontList font_list_; variable
/external/chromium_org/ui/views/controls/textfield/
Dtextfield.cc62 font_list_(GetDefaultFontList()), in Textfield()
90 font_list_(GetDefaultFontList()), in Textfield()
262 font_list_ = font_list; in SetFontList()
269 return font_list_.GetPrimaryFont(); in GetPrimaryFont()
432 native_wrapper_->GetTextfieldBaseline() : font_list_.GetBaseline(); in GetBaseline()
440 font_list_.GetHeight(); in GetPreferredSize()
Dtextfield.h144 const gfx::FontList& font_list() const { return font_list_; } in font_list()
297 gfx::FontList font_list_; variable
/external/chromium_org/ui/gfx/
Dtext_elider.cc802 : font_list_(font_list), in RectangleText()
856 const FontList& font_list_; member in gfx::__anon51dfd0430211::RectangleText
929 const float line_width = GetStringWidthF(line, font_list_); in AddLine()
970 ElideText(text, font_list_, available_pixel_width_, in WrapWord()
1004 ElideText(word, font_list_, available_pixel_width_, elide_behavior); in AddWordOverflow()
1016 const float trimmed_width = GetStringWidthF(trimmed, font_list_); in AddWord()
1031 AddToCurrentLineWithWidth(text, GetStringWidthF(text, font_list_)); in AddToCurrentLine()
Drender_text.h170 const FontList& font_list() const { return font_list_; } in font_list()
581 FontList font_list_; variable
Drender_text.cc380 font_list_ = font_list; in SetFontList()
391 SetFontList(font_list_.DeriveFontListWithSize(size)); in SetFontSize()
395 return font_list_.GetPrimaryFont(); in GetPrimaryFont()
/external/chromium_org/chrome/browser/ui/cocoa/download/
Ddownload_item_controller.h67 scoped_ptr<gfx::FontList> font_list_; variable
Ddownload_item_controller.mm112 font_list_.reset(new gfx::FontList(
151 downloadModel->GetWarningText(*font_list_, kTextWidth));
270 bridge_->download_model()->GetTooltipText(*font_list_, kToolTipMaxWidth);
/external/chromium_org/chrome/browser/ui/views/omnibox/
Domnibox_result_view.h151 const gfx::FontList font_list_; variable
Domnibox_popup_contents_view.cc70 font_list_(font_list), in OmniboxPopupContentsView()
88 OmniboxResultView* result_view = CreateResultView(this, i, font_list_); in Init()
Domnibox_popup_contents_view.h148 gfx::FontList font_list_; variable
Domnibox_result_view.cc116 font_list_(font_list), in OmniboxResultView()
407 render_text->SetFontList(font_list_); in DrawString()