Searched refs:text_width (Results 1 - 9 of 9) sorted by relevance

/external/chromium/chrome/common/
H A Dbadge_util.cc69 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/chrome/browser/chromeos/login/
H A Dusername_view.cc116 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 Dextension_action.cc128 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/chrome/browser/ui/views/
H A Dtheme_install_bubble_view.cc133 int text_width = views::Label::font().GetStringWidth(text_); local
134 gfx::Rect body_bounds(kTextHorizPadding / 2, 0, text_width, height());
H A Dstatus_bubble_views.cc431 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/chrome/browser/autocomplete/
H A Dautocomplete_popup_view_gtk.cc633 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 Dautocomplete_edit_view_gtk.cc835 gint text_width = first_char_start < last_char_start ? local
838 return text_width + horizontal_border_size;
/external/chromium/chrome/browser/ui/gtk/bookmarks/
H A Dbookmark_utils_gtk.cc139 int text_width = sender->allocation.width - text_x; local
143 text_x, 0, text_width, sender->allocation.height);
/external/chromium/chrome/browser/ui/gtk/
H A Dlocation_bar_view_gtk.cc1160 int text_width = location_entry_->TextWidth(); local
1161 int available_width = entry_box_width_ - text_width - kInnerPadding;

Completed in 1128 milliseconds