/external/chromium/chrome/common/ |
H A D | badge_util.cc | 69 SkScalar text_width = paint->measureText(badge_text.c_str(), local 72 if (SkScalarRound(text_width) > (icon.width() - kMinPadding * 2)) { 75 text_width = paint->measureText(badge_text.c_str(), badge_text.size()); 82 if ((SkScalarRound(text_width) % 1) != (badge_width % 1)) 93 SkScalar x = (badge_width - text_width)/2;
|
/external/chromium_org/chrome/common/ |
H A D | badge_util.cc | 109 SkScalar text_width = paint->measureText(badge_text.c_str(), local 112 if (SkScalarRound(text_width) > (icon.width() - kMinPadding * 2)) { 115 text_width = paint->measureText(badge_text.c_str(), badge_text.size()); 122 if ((SkScalarRound(text_width) % 1) != (badge_width % 1)) 133 SkScalar x = (badge_width - text_width)/2; 168 int text_width = std::min(kMaxTextWidth, SkScalarFloor(sk_text_width)); local 172 int badge_width = text_width + kPadding * 2; 223 static_cast<float>(rect.width() - text_width) / 2),
|
/external/chromium_org/ui/views/controls/button/ |
H A D | label_button_unittest.cc | 115 const int text_width = gfx::Canvas::GetStringWidth(text, font); local 122 EXPECT_LT(button.GetPreferredSize().width(), text_width); 126 EXPECT_GT(button.GetPreferredSize().width(), text_width); 128 EXPECT_LT(button.GetPreferredSize().width(), text_width + image_size); 131 EXPECT_GT(button.GetPreferredSize().width(), text_width + image_size); 150 EXPECT_GT(button.GetPreferredSize().width(), text_width + image_size); 153 EXPECT_GT(button.GetPreferredSize().width(), text_width + image_size); 162 EXPECT_LT(button.GetPreferredSize().width(), text_width);
|
H A D | text_button.cc | 357 int text_width = width(); local 360 if (text_width != 0) { 362 text_width = text_bounds.width(); 364 CalculateTextSize(&text_size_, text_width); 368 if (!multi_line_ || text_width != 0) {
|
/external/chromium/chrome/browser/chromeos/login/ |
H A D | username_view.cc | 116 int text_height, text_width; local 118 &text_width, &text_height, 120 text_width += margin_width_; 123 bool use_fading_for_text = text_width + margin_width_ >= bounds.width(); 132 text_width;
|
/external/chromium/chrome/common/extensions/ |
H A D | extension_action.cc | 128 SkScalar text_width = text_paint->measureText(text.c_str(), text.size()); local 129 text_width = SkIntToScalar( 130 std::min(kMaxTextWidth, SkScalarFloor(text_width))); 134 int badge_width = SkScalarFloor(text_width) + kPadding * 2; 190 rect.fLeft + (rect.width() - text_width) / 2,
|
/external/chromium_org/ui/message_center/views/ |
H A D | bounded_label.cc | 95 int text_width = std::max(width - owner_->GetInsets().width(), 0); local 96 lines = GetWrappedText(text_width, lines).size(); 109 int text_width = (width < 0) ? std::numeric_limits<int>::max() : local 112 std::vector<string16> wrapped = GetWrappedText(text_width, lines); 114 &text_width, &text_height, local 117 size.set_width(text_width + insets.width());
|
/external/chromium/chrome/browser/ui/views/ |
H A D | theme_install_bubble_view.cc | 133 int text_width = views::Label::font().GetStringWidth(text_); local 134 gfx::Rect body_bounds(kTextHorizPadding / 2, 0, text_width, height());
|
H A D | status_bubble_views.cc | 431 int text_width = std::min( local 437 std::max(0, text_width), 650 int text_width = static_cast<int>(popup_bounds.width() - local 653 text_width, UTF16ToUTF8(languages));
|
/external/chromium_org/ui/views/controls/combobox/ |
H A D | native_combobox_views.cc | 361 int text_width = font.GetStringWidth(text); local 362 if ((text_width + insets.width()) > disclosure_arrow_offset) 363 text_width = disclosure_arrow_offset - insets.width(); 365 gfx::Rect text_bounds(x, y, text_width, text_height);
|
/external/chromium/chrome/browser/autocomplete/ |
H A D | autocomplete_popup_view_gtk.cc | 633 int text_width = window_rect.width() - (kIconAreaWidth + kRightPadding); local 635 static_cast<int>(text_width * kContentWidthPercentage) : text_width; 661 (text_width - actual_content_width), 666 (text_width - actual_content_width) * PANGO_SCALE); 683 (text_width - actual_content_width -
|
H A D | autocomplete_edit_view_gtk.cc | 835 gint text_width = first_char_start < last_char_start ? local 838 return text_width + horizontal_border_size;
|
/external/chromium_org/chrome/browser/ui/gtk/omnibox/ |
H A D | omnibox_popup_view_gtk.cc | 652 int text_width = window_rect.width() - (kIconAreaWidth + kRightPadding); local 654 static_cast<int>(text_width * kContentWidthPercentage) : text_width; 681 (text_width - actual_content_width), 688 (text_width - actual_content_width) * PANGO_SCALE); 707 (text_width - actual_content_width -
|
H A D | omnibox_view_gtk.cc | 776 gint text_width = first_char_start < last_char_start ? local 779 return text_width + horizontal_border_size;
|
/external/chromium_org/chrome/browser/ui/views/omnibox/ |
H A D | omnibox_result_view.cc | 578 int text_width; local 588 text_width = kw_x - text_x - item_padding_; 594 text_width = width() - text_x - edge_item_padding_; 598 std::max(text_width, 0), text_height);
|
/external/chromium_org/chrome/browser/ui/views/ |
H A D | avatar_menu_bubble_view.cc | 295 int text_width = std::max(name_label_->GetPreferredSize().width(), local 297 text_width = std::max(edit_link_->GetPreferredSize().width(), text_width); 298 text_width = std::min(kMaxItemTextWidth, text_width); 299 return gfx::Size(profiles::kAvatarIconWidth + kIconMarginX + text_width,
|
H A D | status_bubble_views.cc | 437 int text_width = std::min( local 443 std::max(0, text_width), 664 int text_width = static_cast<int>(popup_bounds.width() - local 666 url_text_ = ui::ElideUrl(url, view_->Label::font(), text_width, languages);
|
/external/chromium/chrome/browser/ui/gtk/bookmarks/ |
H A D | bookmark_utils_gtk.cc | 139 int text_width = sender->allocation.width - text_x; local 143 text_x, 0, text_width, sender->allocation.height);
|
/external/chromium_org/chrome/browser/ui/gtk/bookmarks/ |
H A D | bookmark_utils_gtk.cc | 150 int text_width = allocation.width - text_x; local 154 text_x, 0, text_width, allocation.height,
|
/external/chromium_org/ui/views/controls/tree/ |
H A D | tree_view.h | 194 int text_width() const { return text_width_; } function in class:views::TreeView::InternalNode 250 // Sets |node|s text_width.
|
H A D | tree_view.cc | 456 int old_width = node->text_width(); 458 if (old_width != node->text_width() && 855 text_offset_ + node->text_width() +
|
/external/chromium_org/ui/base/text/ |
H A D | text_elider.cc | 827 // |AddToCurrentLine()| when |text_width| is already known. 828 void AddToCurrentLineWithWidth(const string16& text, int text_width); 1016 int text_width) { 1022 current_width_ += text_width; 1015 AddToCurrentLineWithWidth(const string16& text, int text_width) argument
|
/external/chromium_org/ui/gfx/ |
H A D | render_text.cc | 881 const int text_width = GetStringSize().width(); local 885 if (text_width <= display_width)
|
/external/chromium/chrome/browser/ui/gtk/ |
H A D | location_bar_view_gtk.cc | 1160 int text_width = location_entry_->TextWidth(); local 1161 int available_width = entry_box_width_ - text_width - kInnerPadding;
|
/external/chromium_org/chrome/browser/ui/gtk/ |
H A D | location_bar_view_gtk.cc | 1617 int text_width = location_entry_->TextWidth(); local 1618 int available_width = entry_box_width_ - text_width - InnerPadding();
|