Home
last modified time | relevance | path

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

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