Searched refs:prefsize (Results 1 - 10 of 10) sorted by relevance

/external/chromium/chrome/browser/chromeos/status/
H A Dstatus_area_button.cc88 gfx::Size prefsize(icon_width() + insets.width(),
94 prefsize.SetSize(
95 std::max(prefsize.width(), menu_button_size.width()),
96 std::max(prefsize.height(), menu_button_size.height())
100 if ((prefsize.height() - menu_button_size.height()) % 2) {
107 prefsize.Enlarge(2 * horizontal_padding(), 0);
109 return prefsize;
/external/chromium/chrome/browser/ui/views/location_bar/
H A Dkeyword_hint_view.cc101 gfx::Size prefsize = leading_label_->GetPreferredSize(); local
102 int width = prefsize.width();
104 prefsize = trailing_label_->GetPreferredSize();
105 width += prefsize.width();
106 return gfx::Size(width, prefsize.height());
/external/chromium/chrome/browser/ui/views/download/
H A Ddownload_shelf_view.cc210 gfx::Size prefsize(kRightPadding + kLeftPadding + kCloseAndLinkPadding, 0);
211 AdjustSize(close_button_, &prefsize);
212 AdjustSize(show_all_view_, &prefsize);
215 AdjustSize(*download_views_.begin(), &prefsize);
216 prefsize.Enlarge(kDownloadPadding, 0);
218 prefsize.Enlarge(0, kTopBottomPadding + kTopBottomPadding);
220 prefsize.set_height(static_cast<int>(
221 static_cast<double>(prefsize.height()) *
224 return prefsize;
/external/chromium/chrome/browser/ui/views/infobars/
H A Dinfobar.cc74 int InfoBar::OffsetY(const gfx::Size& prefsize) const {
76 std::max((bar_target_height_ - prefsize.height()) / 2, 0) -
H A Dinfobar.h69 // Given a control with size |prefsize|, returns the centered y position
72 int OffsetY(const gfx::Size& prefsize) const;
/external/chromium/chrome/browser/ui/views/
H A Dfind_bar_host.cc240 gfx::Size prefsize = view()->GetPreferredSize();
247 x += widget_bounds.width() - prefsize.width();
249 view_location.SetRect(x, y, prefsize.width(), prefsize.height());
H A Dfind_bar_view.cc394 gfx::Size prefsize = find_text_->GetPreferredSize(); local
395 prefsize.set_height(kDialog_middle->height());
398 prefsize.Enlarge(kMarginLeftOfCloseButton + kMarginRightOfCloseButton +
401 prefsize.Enlarge(find_previous_button_->GetPreferredSize().width(), 0);
402 prefsize.Enlarge(find_next_button_->GetPreferredSize().width(), 0);
403 prefsize.Enlarge(close_button_->GetPreferredSize().width(), 0);
404 return prefsize;
/external/chromium/chrome/browser/ui/views/bookmarks/
H A Dbookmark_editor_view.cc144 gfx::Size prefsize = new_folder_button_->GetPreferredSize(); local
146 parent_bounds.bottom() - prefsize.height() - views::kButtonVEdgeMargin;
148 views::kPanelHorizMargin, button_y, prefsize.width(), prefsize.height());
H A Dbookmark_bar_view.cc1632 gfx::Size prefsize; local
1634 return prefsize;
1762 prefsize.set_width(x);
1766 prefsize.set_height(kBarHeight +
1770 prefsize.set_height(
1774 return prefsize;
/external/chromium/chrome/browser/ui/gtk/
H A Dfind_bar_gtk.cc431 gfx::Size prefsize(req.width, req.height);
434 ltr ? dialog_bounds.width() - prefsize.width() : dialog_bounds.x(),
435 dialog_bounds.y(), prefsize.width(), prefsize.height());

Completed in 317 milliseconds