/external/chromium_org/ui/views/corewm/ |
D | tooltip_aura_unittest.cc | 35 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()
|
D | tooltip_aura.cc | 118 int word_width = font.GetStringWidth(word); in TrimTooltipToFit() 147 int line_width = font.GetStringWidth(*l); in TrimTooltipToFit()
|
/external/chromium_org/ui/gfx/ |
D | font_unittest.cc | 120 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()
|
D | canvas_unittest.cc | 16 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()
|
D | text_utils_skia.cc | 11 int GetStringWidth(const base::string16& text, const FontList& font_list) { in GetStringWidth() function 12 return Canvas::GetStringWidth(text, font_list); in GetStringWidth()
|
D | font.cc | 65 int Font::GetStringWidth(const base::string16& text) const { in GetStringWidth() function in gfx::Font 66 return platform_font_->GetStringWidth(text); in GetStringWidth()
|
D | text_utils_android.cc | 11 int GetStringWidth(const base::string16& text, const FontList& font_list) { in GetStringWidth() function
|
D | text_utils.h | 27 GFX_EXPORT int GetStringWidth(const base::string16& text,
|
D | platform_font_pango.cc | 201 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()
|
D | platform_font.h | 53 virtual int GetStringWidth(const base::string16& text) const = 0;
|
D | font.h | 89 int GetStringWidth(const base::string16& text) const;
|
D | text_utils_ios.mm | 16 int GetStringWidth(const base::string16& text, const FontList& font_list) {
|
D | platform_font_mac.h | 27 virtual int GetStringWidth(const base::string16& text) const OVERRIDE;
|
D | font_list.h | 99 int GetStringWidth(const base::string16& text) const;
|
D | platform_font_ios.h | 25 virtual int GetStringWidth(const base::string16& text) const OVERRIDE;
|
D | font_list.cc | 207 int FontList::GetStringWidth(const base::string16& text) const { in GetStringWidth() function in gfx::FontList 217 return GetPrimaryFont().GetStringWidth(text); in GetStringWidth()
|
D | canvas.h | 152 static int GetStringWidth(const base::string16& text, 155 static int GetStringWidth(const base::string16& text, const Font& font);
|
D | platform_font_mac.mm | 112 int PlatformFontMac::GetStringWidth(const base::string16& text) const { 113 return Canvas::GetStringWidth(text,
|
/external/chromium_org/ui/views/touchui/ |
D | touch_selection_controller_impl_unittest.cc | 288 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/ |
D | bounded_label_unittest.cc | 26 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/ |
D | table_utils.cc | 24 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/ |
D | autofill_popup_view_views.cc | 255 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/ |
D | theme_install_bubble_view.cc | 92 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/ |
D | label_button_unittest.cc | 54 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/ |
D | autofill_popup_controller_impl.cc | 143 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()
|