Home
last modified time | relevance | path

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

12

/external/chromium_org/ui/views/controls/scrollbar/
Dbitmap_scroll_bar.cc211 gfx::Size prefsize = prev_button_->GetPreferredSize(); in GetLayoutSize() local
212 return IsHorizontal() ? prefsize.height() : prefsize.width(); in GetLayoutSize()
216 gfx::Size prefsize = prev_button_->GetPreferredSize(); in GetTrackBounds() local
219 prefsize.set_width(0); in GetTrackBounds()
221 std::max(0, width() - (prefsize.width() * 2)); in GetTrackBounds()
222 gfx::Rect track_bounds(prefsize.width(), 0, new_width, prefsize.height()); in GetTrackBounds()
226 prefsize.set_height(0); in GetTrackBounds()
227 gfx::Rect track_bounds(0, prefsize.height(), prefsize.width(), in GetTrackBounds()
228 std::max(0, height() - (prefsize.height() * 2))); in GetTrackBounds()
245 gfx::Size prefsize = prev_button_->GetPreferredSize(); in Layout() local
[all …]
Dbase_scroll_bar_thumb.cc32 gfx::Size prefsize = GetPreferredSize(); in SetSize() local
33 size = std::max(size, scroll_bar_->IsHorizontal() ? prefsize.width() : in SetSize()
34 prefsize.height()); in SetSize()
/external/chromium_org/ui/views/
Dbutton_drag_utils.cc42 gfx::Size prefsize = button.GetPreferredSize(); in SetURLAndDragImage() local
43 button.SetBounds(0, 0, prefsize.width(), prefsize.height()); in SetURLAndDragImage()
47 views::GetCanvasForDragImage(widget, prefsize)); in SetURLAndDragImage()
49 drag_utils::SetDragImageOnDataObject(*canvas, prefsize, in SetURLAndDragImage()
50 gfx::Vector2d(prefsize.width() / 2, prefsize.height() / 2), data); in SetURLAndDragImage()
/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_org/ui/views/controls/button/
Dtext_button.cc315 gfx::Size prefsize(std::max(max_text_size_.width(), in GetPreferredSize() local
321 prefsize.set_width(std::min(max_width_, prefsize.width())); in GetPreferredSize()
323 prefsize.set_width(std::max(prefsize.width(), min_width_)); in GetPreferredSize()
324 prefsize.set_height(std::max(prefsize.height(), min_height_)); in GetPreferredSize()
326 return prefsize; in GetPreferredSize()
646 gfx::Size prefsize(TextButtonBase::GetPreferredSize()); in GetPreferredSize() local
647 prefsize.Enlarge(icon_.width(), 0); in GetPreferredSize()
648 prefsize.set_height(std::max(prefsize.height(), icon_.height())); in GetPreferredSize()
652 prefsize.Enlarge(icon_text_spacing_, 0); in GetPreferredSize()
655 prefsize.set_width(std::min(max_width_, prefsize.width())); in GetPreferredSize()
[all …]
Dmenu_button.cc150 gfx::Size prefsize = TextButton::GetPreferredSize(); in GetPreferredSize() local
152 prefsize.Enlarge(menu_marker_->width() + kMenuMarkerPaddingLeft + in GetPreferredSize()
156 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_org/chrome/browser/ui/views/
Dfind_bar_host.cc271 gfx::Size prefsize = view()->GetPreferredSize(); local
274 if (widget_bounds.width() < prefsize.width())
275 prefsize.set_width(widget_bounds.width());
278 if (widget_bounds.height() < prefsize.height())
286 x += widget_bounds.width() - prefsize.width();
288 view_location.SetRect(x, y, prefsize.width(), prefsize.height());
Dfind_bar_view.cc353 gfx::Size prefsize = find_text_->GetPreferredSize(); in GetPreferredSize() local
354 prefsize.set_height(preferred_height_); in GetPreferredSize()
357 prefsize.Enlarge(kMarginLeftOfCloseButton + kMarginRightOfCloseButton + in GetPreferredSize()
360 prefsize.Enlarge(find_previous_button_->GetPreferredSize().width(), 0); in GetPreferredSize()
361 prefsize.Enlarge(find_next_button_->GetPreferredSize().width(), 0); in GetPreferredSize()
362 prefsize.Enlarge(close_button_->GetPreferredSize().width(), 0); in GetPreferredSize()
363 return prefsize; in GetPreferredSize()
/external/chromium_org/chrome/browser/ui/views/download/
Ddownload_shelf_view.cc169 gfx::Size prefsize(kRightPadding + kLeftPadding + kCloseAndLinkPadding, 0); in GetPreferredSize() local
170 AdjustSize(close_button_, &prefsize); in GetPreferredSize()
171 AdjustSize(show_all_view_, &prefsize); in GetPreferredSize()
174 AdjustSize(*download_views_.begin(), &prefsize); in GetPreferredSize()
175 prefsize.Enlarge(kDownloadPadding, 0); in GetPreferredSize()
177 prefsize.Enlarge(0, kTopBottomPadding + kTopBottomPadding); in GetPreferredSize()
179 prefsize.set_height(static_cast<int>( in GetPreferredSize()
180 static_cast<double>(prefsize.height()) * in GetPreferredSize()
183 return prefsize; 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_org/chrome/browser/ui/views/website_settings/
Dpermission_selector_view.cc105 gfx::Size prefsize(text_size_.width() + insets.width(), in GetPreferredSize() local
108 prefsize.set_width(std::min(max_width_, prefsize.width())); in GetPreferredSize()
110 prefsize.Enlarge(menu_marker()->width() + in GetPreferredSize()
115 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_org/ui/views/controls/menu/
Dmenu_scroll_view_container.cc250 gfx::Size prefsize = scroll_view_->GetContents()->GetPreferredSize(); in GetPreferredSize() local
252 prefsize.Enlarge(insets.width(), insets.height()); in GetPreferredSize()
253 return prefsize; in GetPreferredSize()
/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_org/ui/views/controls/
Dlabel.cc234 gfx::Size prefsize(GetTextSize()); in GetPreferredSize() local
236 prefsize.Enlarge(insets.width(), insets.height()); in GetPreferredSize()
237 return prefsize; in GetPreferredSize()
/external/chromium_org/chrome/browser/ui/views/infobars/
Dinfobar_view.h93 int OffsetY(const gfx::Size& prefsize) const;
Dinfobar_view.cc335 int InfoBarView::OffsetY(const gfx::Size& prefsize) const { in OffsetY()
337 std::max((bar_target_height() - prefsize.height()) / 2, 0) - in OffsetY()
/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()
/external/chromium_org/chrome/browser/ui/gtk/
Dfind_bar_gtk.cc456 gfx::Size prefsize(req.width, req.height); in GetDialogPosition() local
459 ltr ? dialog_bounds.width() - prefsize.width() : dialog_bounds.x(), in GetDialogPosition()
460 dialog_bounds.y(), prefsize.width(), prefsize.height()); in GetDialogPosition()
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_bar_view.cc1718 gfx::Size prefsize; in LayoutItems() local
1720 return prefsize; in LayoutItems()
1836 prefsize.set_width(x); in LayoutItems()
1840 prefsize.set_height( in LayoutItems()
1846 prefsize.set_height(static_cast<int>(chrome::kBookmarkBarHeight * in LayoutItems()
1850 return prefsize; in LayoutItems()

12