Searched refs:text_width (Results 1 - 25 of 25) 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_org/chrome/common/
H A Dbadge_util.cc109 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 Dlabel_button_unittest.cc115 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 Dtext_button.cc357 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 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_org/ui/message_center/views/
H A Dbounded_label.cc95 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 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_org/ui/views/controls/combobox/
H A Dnative_combobox_views.cc361 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 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_org/chrome/browser/ui/gtk/omnibox/
H A Domnibox_popup_view_gtk.cc652 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 Domnibox_view_gtk.cc776 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 Domnibox_result_view.cc578 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 Davatar_menu_bubble_view.cc295 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 Dstatus_bubble_views.cc437 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 Dbookmark_utils_gtk.cc139 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 Dbookmark_utils_gtk.cc150 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 Dtree_view.h194 int text_width() const { return text_width_; } function in class:views::TreeView::InternalNode
250 // Sets |node|s text_width.
H A Dtree_view.cc456 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 Dtext_elider.cc827 // |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 Drender_text.cc881 const int text_width = GetStringSize().width(); local
885 if (text_width <= display_width)
/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;
/external/chromium_org/chrome/browser/ui/gtk/
H A Dlocation_bar_view_gtk.cc1617 int text_width = location_entry_->TextWidth(); local
1618 int available_width = entry_box_width_ - text_width - InnerPadding();

Completed in 1106 milliseconds