HomeSort by relevance Sort by last modified time
    Searched defs:text_width (Results 1 - 24 of 24) sorted by null

  /external/chromium/chrome/common/
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/ui/views/controls/button/
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);
text_button.cc 361 int text_width = width(); local
364 if (text_width != 0) {
366 text_width = text_bounds.width();
368 CalculateTextSize(&text_size_, text_width);
372 if (!multi_line_ || text_width != 0) {
  /external/chromium/chrome/browser/ui/views/
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());
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/chrome/browser/chromeos/login/
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/
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/chrome/common/
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/app_list/views/
folder_header_view.cc 119 int text_width = folder_name_view_->GetPreferredSize().width(); local
120 text_bounds.set_x(back_bounds.x() + (rect.width() - text_width) / 2);
121 text_bounds.set_width(text_width);
  /external/chromium_org/ui/message_center/views/
bounded_label.cc 94 int text_width = std::max(width - owner_->GetInsets().width(), 0); local
95 lines = GetWrappedText(text_width, lines).size();
108 int text_width = (width < 0) ? std::numeric_limits<int>::max() : local
111 std::vector<string16> wrapped = GetWrappedText(text_width, lines);
113 &text_width, &text_height, local
116 size.set_width(text_width + insets.width());
  /external/chromium_org/ui/views/controls/tree/
tree_view.h 198 int text_width() const { return text_width_; } function in class:views::TreeView::InternalNode
254 // Sets |node|s text_width.
  /external/chromium/chrome/browser/ui/gtk/bookmarks/
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/
bookmark_utils_gtk.cc 153 int text_width = allocation.width - text_x; local
157 text_x, 0, text_width, allocation.height,
  /external/chromium_org/chrome/browser/ui/views/omnibox/
omnibox_result_view.cc 578 int text_width = width() - text_x - edge_item_padding_; local
588 text_width = kw_x - text_x - item_padding_;
596 text_bounds_.SetRect(text_x, 0, std::max(text_width, 0), height());
  /external/chromium/chrome/browser/autocomplete/
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 -
autocomplete_edit_view_gtk.cc 835 gint text_width = first_char_start < last_char_start ? local
838 return text_width + horizontal_border_size;
    [all...]
  /external/chromium_org/chrome/browser/ui/gtk/omnibox/
omnibox_popup_view_gtk.cc 676 int text_width = window_rect.width() - (kIconAreaWidth + kRightPadding); local
678 static_cast<int>(text_width * kContentWidthPercentage) : text_width;
705 (text_width - actual_content_width),
712 (text_width - actual_content_width) * PANGO_SCALE);
731 (text_width - actual_content_width -
omnibox_view_gtk.cc 762 gint text_width = first_char_start < last_char_start ? local
765 return text_width + horizontal_border_size;
    [all...]
  /external/chromium_org/chrome/browser/ui/views/
avatar_menu_bubble_view.cc 300 int text_width = std::max(name_label_->GetPreferredSize().width(), local
302 text_width = std::max(edit_link_->GetPreferredSize().width(), text_width);
303 text_width = std::min(kMaxItemTextWidth, text_width);
304 return gfx::Size(profiles::kAvatarIconWidth + kIconMarginX + text_width,
status_bubble_views.cc 442 int text_width = std::min( local
448 std::max(0, text_width),
666 int text_width = static_cast<int>(popup_bounds.width() - local
668 url_text_ = gfx::ElideUrl(url, view_->Label::font_list(), text_width,
  /external/chromium_org/chrome/browser/ui/views/frame/
opaque_browser_frame_view_layout.cc 348 int text_width = std::max( local
353 text_width, window_icon_bounds_.height());
354 leading_button_start_ += text_width + kIconTitleSpacing;
  /external/chromium_org/ui/views/controls/combobox/
combobox.cc 649 int text_width = font.GetStringWidth(text); local
650 if ((text_width + insets.width()) > disclosure_arrow_offset)
651 text_width = disclosure_arrow_offset - insets.width();
653 gfx::Rect text_bounds(x, y, text_width, text_height);
  /external/chromium/chrome/browser/ui/gtk/
location_bar_view_gtk.cc 1160 int text_width = location_entry_->TextWidth(); local
    [all...]
  /external/chromium_org/chrome/browser/ui/gtk/
location_bar_view_gtk.cc 1453 int text_width = omnibox_view_->GetTextWidth(); local
    [all...]

Completed in 660 milliseconds