Home
last modified time | relevance | path

Searched refs:GetStringWidth (Results 1 – 25 of 70) sorted by relevance

123

/external/chromium_org/ui/views/corewm/
Dtooltip_aura_unittest.cc35 int error_in_pixel_width = font.GetStringWidth(ASCIIToUTF16("tooltip")); in TEST_F()
41 for (; font.GetStringWidth(tooltip) <= (expect_lines - 1) * max_pixel_width;) in TEST_F()
53 for (; font.GetStringWidth(tooltip) <= (expect_lines - 1) * max_pixel_width;) in TEST_F()
63 for (; font.GetStringWidth(tooltip) <= (expect_lines - 2) * max_pixel_width;) in TEST_F()
91 EXPECT_EQ(font.GetStringWidth(ASCIIToUTF16("Small Tooltip")), width); in TEST_F()
100 int expected_width = font.GetStringWidth(ASCIIToUTF16("Multi line")); in TEST_F()
102 font.GetStringWidth(ASCIIToUTF16("Tooltip"))); in TEST_F()
112 EXPECT_EQ(font.GetStringWidth(ASCIIToUTF16("Small Tool t\tip")), width); in TEST_F()
Dtooltip_aura.cc118 int word_width = font.GetStringWidth(word); in TrimTooltipToFit()
147 int line_width = font.GetStringWidth(*l); in TrimTooltipToFit()
/external/chromium_org/ui/gfx/
Dfont_unittest.cc120 EXPECT_EQ(cf.GetStringWidth(base::string16()), 0); in TEST_F()
121 EXPECT_GT(cf.GetStringWidth(ASCIIToUTF16("a")), in TEST_F()
122 cf.GetStringWidth(base::string16())); in TEST_F()
123 EXPECT_GT(cf.GetStringWidth(ASCIIToUTF16("ab")), in TEST_F()
124 cf.GetStringWidth(ASCIIToUTF16("a"))); in TEST_F()
125 EXPECT_GT(cf.GetStringWidth(ASCIIToUTF16("abc")), in TEST_F()
126 cf.GetStringWidth(ASCIIToUTF16("ab"))); in TEST_F()
Dcanvas_unittest.cc16 int GetStringWidth(const char *text) { in GetStringWidth() function in gfx::CanvasTest
17 return Canvas::GetStringWidth(UTF8ToUTF16(text), font_); in GetStringWidth()
34 EXPECT_GT(GetStringWidth("Test"), 0); in TEST_F()
38 EXPECT_EQ(0, GetStringWidth("")); in TEST_F()
Dtext_utils_skia.cc11 int GetStringWidth(const base::string16& text, const FontList& font_list) { in GetStringWidth() function
12 return Canvas::GetStringWidth(text, font_list); in GetStringWidth()
Dfont.cc65 int Font::GetStringWidth(const base::string16& text) const { in GetStringWidth() function in gfx::Font
66 return platform_font_->GetStringWidth(text); in GetStringWidth()
Dtext_utils_android.cc11 int GetStringWidth(const base::string16& text, const FontList& font_list) { in GetStringWidth() function
Dtext_utils.h27 GFX_EXPORT int GetStringWidth(const base::string16& text,
Dplatform_font_pango.cc201 int PlatformFontPango::GetStringWidth(const base::string16& text) const { in GetStringWidth() function in gfx::PlatformFontPango
202 return Canvas::GetStringWidth(text, in GetStringWidth()
394 const int text_width_pixels = GetStringWidth( in InitPangoMetrics()
Dplatform_font.h53 virtual int GetStringWidth(const base::string16& text) const = 0;
Dfont.h89 int GetStringWidth(const base::string16& text) const;
Dtext_utils_ios.mm16 int GetStringWidth(const base::string16& text, const FontList& font_list) {
Dplatform_font_mac.h27 virtual int GetStringWidth(const base::string16& text) const OVERRIDE;
Dfont_list.h99 int GetStringWidth(const base::string16& text) const;
Dplatform_font_ios.h25 virtual int GetStringWidth(const base::string16& text) const OVERRIDE;
Dfont_list.cc207 int FontList::GetStringWidth(const base::string16& text) const { in GetStringWidth() function in gfx::FontList
217 return GetPrimaryFont().GetStringWidth(text); in GetStringWidth()
Dcanvas.h152 static int GetStringWidth(const base::string16& text,
155 static int GetStringWidth(const base::string16& text, const Font& font);
Dplatform_font_mac.mm112 int PlatformFontMac::GetStringWidth(const base::string16& text) const {
113 return Canvas::GetStringWidth(text,
/external/chromium_org/ui/views/touchui/
Dtouch_selection_controller_impl_unittest.cc288 int x = font.GetStringWidth(ASCIIToUTF16("ld ")); in TEST_F()
300 x = font.GetStringWidth(ASCIIToUTF16("textfield with ")); in TEST_F()
306 x = font.GetStringWidth(ASCIIToUTF16("with selected ")); in TEST_F()
327 int x = font.GetStringWidth(WideToUTF16(L"\x05e3")); in TEST_F()
333 x = font.GetStringWidth(WideToUTF16(L"b")); in TEST_F()
344 x = font.GetStringWidth(WideToUTF16(L"\x05e3")); in TEST_F()
350 x = font.GetStringWidth(WideToUTF16(L"b")); in TEST_F()
376 x = font.GetStringWidth(WideToUTF16(L"d")); in TEST_F()
395 x = font.GetStringWidth(WideToUTF16(L"d")); in TEST_F()
406 x = font.GetStringWidth(WideToUTF16(L"c")); in TEST_F()
[all …]
/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()
28 ellipsis_pixels_ = gfx::GetStringWidth(UTF8ToUTF16("\xE2\x80\xA6"), in BoundedLabelTest()
/external/chromium_org/ui/views/controls/table/
Dtable_utils.cc24 width = header_font.GetStringWidth(column.title) + header_padding; in WidthForContent()
28 content_font.GetStringWidth(model->GetText(i, column.id)); in WidthForContent()
52 content_widths[i] = header_font.GetStringWidth(column.title) + padding + in CalculateTableColumnSizes()
/external/chromium_org/chrome/browser/ui/views/autofill/
Dautofill_popup_view_views.cc255 int value_text_width = controller_->GetNameFontForRow(index).GetStringWidth( in DrawAutofillEntry()
266 canvas->GetStringWidth(controller_->names()[index], in DrawAutofillEntry()
292 x_align_left -= canvas->GetStringWidth(controller_->subtexts()[index], in DrawAutofillEntry()
302 canvas->GetStringWidth(controller_->subtexts()[index], in DrawAutofillEntry()
/external/chromium/chrome/browser/ui/views/
Dtheme_install_bubble_view.cc92 return gfx::Size(views::Label::font().GetStringWidth(text_) + in GetPreferredSize()
133 int text_width = views::Label::font().GetStringWidth(text_); in OnPaint()
/external/chromium_org/ui/views/controls/button/
Dlabel_button_unittest.cc54 const int short_text_width = gfx::Canvas::GetStringWidth(short_text, font); in TEST_F()
55 const int long_text_width = gfx::Canvas::GetStringWidth(long_text, font); in TEST_F()
115 const int text_width = gfx::Canvas::GetStringWidth(text, font); in TEST_F()
/external/chromium_org/chrome/browser/ui/autofill/
Dautofill_popup_controller_impl.cc143 int name_width = GetNameFontForRow(i).GetStringWidth(names_[i]); in Show()
144 int subtext_width = subtext_font().GetStringWidth(subtexts_[i]); in Show()
606 int row_size = name_font_.GetStringWidth(names()[i]) + in GetDesiredPopupWidth()
607 subtext_font_.GetStringWidth(subtexts()[i]) + in GetDesiredPopupWidth()

123