HomeSort by relevance Sort by last modified time
    Searched refs:text_width (Results 1 - 25 of 31) sorted by null

1 2

  /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/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/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 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/
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/ui/message_center/views/
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/
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_org/ui/views/controls/combobox/
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/
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 -
  /external/chromium_org/chrome/browser/ui/gtk/omnibox/
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 -
  /external/chromium_org/chrome/browser/ui/views/omnibox/
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);
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/
fancy_getopt.py 354 text_width = line_width - opt_width
363 text = wrap_text(help, text_width)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/
fancy_getopt.py 354 text_width = line_width - opt_width
363 text = wrap_text(help, text_width)
  /external/chromium_org/chrome/browser/ui/views/
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,
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/
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 150 int text_width = allocation.width - text_x; local
154 text_x, 0, text_width, allocation.height,
  /external/chromium_org/ui/views/controls/tree/
tree_view.h 194 int text_width() const { return text_width_; } function in class:views::TreeView::InternalNode
250 // Sets |node|s text_width.
tree_view.cc 456 int old_width = node->text_width();
458 if (old_width != node->text_width() &&
855 text_offset_ + node->text_width() +
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/idlelib/
AutoCompleteWindow.py 226 text_width, text_height = text.winfo_width(), text.winfo_height()
227 new_x = text.winfo_rootx() + min(x, max(0, text_width - acw_width))
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/idlelib/
AutoCompleteWindow.py 226 text_width, text_height = text.winfo_width(), text.winfo_height()
227 new_x = text.winfo_rootx() + min(x, max(0, text_width - acw_width))
  /external/chromium_org/ui/base/text/
text_elider.cc 827 // |AddToCurrentLine()| when |text_width| is already known.
828 void AddToCurrentLineWithWidth(const string16& text, int text_width);
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
argparse.py 321 text_width = self._width - self._current_indent
322 if len(prefix) + len(usage) > text_width:
342 if line_len + 1 + len(part) > text_width:
355 if len(prefix) + len(prog) <= 0.75 * text_width:
481 text_width = self._width - self._current_indent
483 return self._fill_text(text, text_width, indent) + '\n\n'
    [all...]

Completed in 411 milliseconds

1 2