OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:GetStringWidth
(Results
1 - 25
of
63
) sorted by null
1
2
3
/external/chromium_org/ui/gfx/
canvas_unittest.cc
16
int
GetStringWidth
(const char *text) {
17
return Canvas::
GetStringWidth
(UTF8ToUTF16(text), font_);
34
EXPECT_GT(
GetStringWidth
("Test"), 0);
38
EXPECT_EQ(0,
GetStringWidth
(""));
font_unittest.cc
106
ASSERT_EQ(cf.
GetStringWidth
(base::string16()), 0);
107
ASSERT_GT(cf.
GetStringWidth
(ASCIIToUTF16("a")),
108
cf.
GetStringWidth
(base::string16()));
109
ASSERT_GT(cf.
GetStringWidth
(ASCIIToUTF16("ab")),
110
cf.
GetStringWidth
(ASCIIToUTF16("a")));
111
ASSERT_GT(cf.
GetStringWidth
(ASCIIToUTF16("abc")),
112
cf.
GetStringWidth
(ASCIIToUTF16("ab")));
platform_font.h
50
virtual int
GetStringWidth
(const base::string16& text) const = 0;
53
// specified length of characters. Call
GetStringWidth
() to retrieve the
font.cc
61
int Font::
GetStringWidth
(const base::string16& text) const {
62
return platform_font_->
GetStringWidth
(text);
font.h
77
int
GetStringWidth
(const base::string16& text) const;
80
// specified length of characters. Call
GetStringWidth
() to retrieve the
platform_font_ios.h
24
virtual int
GetStringWidth
(const base::string16& text) const OVERRIDE;
platform_font_mac.h
25
virtual int
GetStringWidth
(const base::string16& text) const OVERRIDE;
font_list.h
85
int
GetStringWidth
(const base::string16& text) const;
88
// specified length of characters. Call
GetStringWidth
() to retrieve the
platform_font_pango.h
46
virtual int
GetStringWidth
(const base::string16& text) const OVERRIDE;
platform_font_win.h
61
virtual int
GetStringWidth
(const base::string16& text) const OVERRIDE;
platform_font_pango.cc
201
int PlatformFontPango::
GetStringWidth
(const base::string16& text) const {
202
return Canvas::
GetStringWidth
(text,
361
const int text_width_pixels =
GetStringWidth
(
font_list.cc
180
int FontList::
GetStringWidth
(const base::string16& text) const {
185
// client code should call Canvas::
GetStringWidth
(text, font_list) directly.
187
// 1. Introduce the FontList version of Canvas::
GetStringWidth
().
188
// 2. Make client code call Canvas::
GetStringWidth
().
189
// 3. Retire {Font,FontList}::
GetStringWidth
().
190
return GetPrimaryFont().
GetStringWidth
(text);
/external/chromium_org/ui/views/touchui/
touch_selection_controller_impl_unittest.cc
288
int x = font.
GetStringWidth
(ASCIIToUTF16("ld "));
300
x = font.
GetStringWidth
(ASCIIToUTF16("textfield with "));
306
x = font.
GetStringWidth
(ASCIIToUTF16("with selected "));
327
int x = font.
GetStringWidth
(WideToUTF16(L"\x05e3"));
333
x = font.
GetStringWidth
(WideToUTF16(L"b"));
344
x = font.
GetStringWidth
(WideToUTF16(L"\x05e3"));
350
x = font.
GetStringWidth
(WideToUTF16(L"b"));
369
x = font.
GetStringWidth
(WideToUTF16(L"\x05e2"));
376
x = font.
GetStringWidth
(WideToUTF16(L"d"));
388
x = font.
GetStringWidth
(WideToUTF16(L"\x05e2"))
[
all
...]
/external/chromium_org/ui/message_center/views/
bounded_label_unittest.cc
25
digit_pixels_ = font_.
GetStringWidth
(UTF8ToUTF16("0"));
26
space_pixels_ = font_.
GetStringWidth
(UTF8ToUTF16(" "));
27
ellipsis_pixels_ = font_.
GetStringWidth
(UTF8ToUTF16("\xE2\x80\xA6"));
/external/chromium_org/ui/base/text/
text_elider.cc
139
if (available_pixel_width >= font.
GetStringWidth
(elided_path))
152
if (font.
GetStringWidth
(email) <= available_pixel_width)
169
available_pixel_width -= font.
GetStringWidth
(kAtSignUTF16);
173
const int full_username_width = font.
GetStringWidth
(username);
177
font.
GetStringWidth
(username.substr(0, 1) + kEllipsisUTF16));
178
if (font.
GetStringWidth
(domain) > available_domain_width) {
201
available_pixel_width - font.
GetStringWidth
(domain),
229
const int pixel_width_url_string = font.
GetStringWidth
(url_string);
242
if (available_pixel_width >= font.
GetStringWidth
(url_minus_query))
291
const int pixel_width_url_host = font.
GetStringWidth
(url_host)
[
all
...]
text_elider_unittest.cc
51
font.
GetStringWidth
(UTF8ToUTF16(testcases[i].output)),
116
font.
GetStringWidth
(expected_output)));
181
int available_width = font.
GetStringWidth
(
188
ASSERT_GT(font.
GetStringWidth
(UTF8ToUTF16(kEllipsisStr + "/" + kEllipsisStr)),
189
font.
GetStringWidth
(UTF8ToUTF16("d" + kEllipsisStr)));
321
font.
GetStringWidth
(UTF8ToUTF16(testcases[i].output))));
327
const int kTestWidth = font.
GetStringWidth
(ASCIIToUTF16("Test"));
350
const int kTestWidth = font.
GetStringWidth
(ASCIIToUTF16("Test"));
352
const int kEllipsisWidth = font.
GetStringWidth
(UTF8ToUTF16(kEllipsis));
399
const int kTestStringWidth = font.
GetStringWidth
(kTestString)
[
all
...]
/external/chromium_org/ui/views/controls/table/
table_utils.cc
24
width = header_font.
GetStringWidth
(column.title) + header_padding;
28
content_font.
GetStringWidth
(model->GetText(i, column.id));
52
content_widths[i] = header_font.
GetStringWidth
(column.title) + padding +
/external/chromium_org/ui/views/corewm/
tooltip_controller_unittest.cc
226
int error_in_pixel_width = font.
GetStringWidth
(ASCIIToUTF16("tooltip"));
232
for (; font.
GetStringWidth
(tooltip) <= (expect_lines - 1) * max_pixel_width;)
245
for (; font.
GetStringWidth
(tooltip) <= (expect_lines - 1) * max_pixel_width;)
256
for (; font.
GetStringWidth
(tooltip) <= (expect_lines - 2) * max_pixel_width;)
287
EXPECT_EQ(font.
GetStringWidth
(ASCIIToUTF16("Small Tooltip")), width);
297
int expected_width = font.
GetStringWidth
(ASCIIToUTF16("Multi line"));
299
font.
GetStringWidth
(ASCIIToUTF16("Tooltip")));
310
EXPECT_EQ(font.
GetStringWidth
(ASCIIToUTF16("Small Tool t\tip")), width);
/external/chromium_org/chrome/browser/ui/views/autofill/
autofill_popup_view_views.cc
177
int value_text_width = controller_->GetNameFontForRow(index).
GetStringWidth
(
188
canvas->
GetStringWidth
(controller_->names()[index],
213
x_align_left -= canvas->
GetStringWidth
(controller_->subtexts()[index],
223
canvas->
GetStringWidth
(controller_->subtexts()[index],
/external/chromium_org/ui/views/widget/
tooltip_manager.cc
57
*max_width = std::max(*max_width, font.
GetStringWidth
(elided_text));
/external/chromium/chrome/browser/ui/views/
theme_install_bubble_view.cc
92
return gfx::Size(views::Label::font().
GetStringWidth
(text_) +
133
int text_width = views::Label::font().
GetStringWidth
(text_);
/external/chromium_org/ui/views/controls/button/
label_button_unittest.cc
54
const int short_text_width = gfx::Canvas::
GetStringWidth
(short_text, font);
55
const int long_text_width = gfx::Canvas::
GetStringWidth
(long_text, font);
115
const int text_width = gfx::Canvas::
GetStringWidth
(text, font);
/external/chromium_org/ash/shell/
lock_view.cc
45
int string_width = font_.
GetStringWidth
(text);
/external/chromium/chrome/browser/ui/views/autocomplete/
autocomplete_result_view.cc
118
ellipsis_width_(font.
GetStringWidth
(string16(kEllipsis))),
347
current_data->font->
GetStringWidth
(current_data->text);
472
j->pixel_width = j->font->
GetStringWidth
(elided_text);
/external/chromium_org/ash/accelerators/
exit_warning_handler.cc
64
text_width_ = font_.
GetStringWidth
(text_);
Completed in 544 milliseconds
1
2
3