Home
last modified time | relevance | path

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

/external/chromium_org/ui/views/
Dbutton_drag_utils.cc62 gfx::Size prefsize = button.GetPreferredSize(); in SetDragImage() local
63 button.SetBounds(0, 0, prefsize.width(), prefsize.height()); in SetDragImage()
69 press_point = gfx::Vector2d(prefsize.width() / 2, prefsize.height() / 2); in SetDragImage()
73 views::GetCanvasForDragImage(widget, prefsize)); in SetDragImage()
Dview.cc382 gfx::Size prefsize = GetPreferredSize(); in SizeToPreferredSize() local
383 if ((prefsize.width() != width()) || (prefsize.height() != height())) in SizeToPreferredSize()
384 SetBounds(x(), y(), prefsize.width(), prefsize.height()); in SizeToPreferredSize()
/external/chromium_org/chrome/browser/ui/views/
Dfind_bar_host.cc270 gfx::Size prefsize = view()->GetPreferredSize(); local
273 if (widget_bounds.width() < prefsize.width())
274 prefsize.set_width(widget_bounds.width());
277 if (widget_bounds.height() < prefsize.height())
285 x += widget_bounds.width() - prefsize.width();
287 view_location.SetRect(x, y, prefsize.width(), prefsize.height());
Dfind_bar_view.cc348 gfx::Size prefsize = find_text_->GetPreferredSize(); in GetPreferredSize() local
349 prefsize.set_height(preferred_height_); in GetPreferredSize()
352 prefsize.Enlarge(kMarginLeftOfCloseButton + kMarginRightOfCloseButton + in GetPreferredSize()
356 prefsize.Enlarge(find_previous_button_->GetPreferredSize().width(), 0); in GetPreferredSize()
357 prefsize.Enlarge(find_next_button_->GetPreferredSize().width(), 0); in GetPreferredSize()
358 prefsize.Enlarge(close_button_->GetPreferredSize().width(), 0); in GetPreferredSize()
359 return prefsize; in GetPreferredSize()
/external/chromium_org/chrome/browser/ui/views/download/
Ddownload_shelf_view.cc173 gfx::Size prefsize(kRightPadding + kLeftPadding + kCloseAndLinkPadding, 0); in GetPreferredSize() local
174 AdjustSize(close_button_, &prefsize); in GetPreferredSize()
175 AdjustSize(show_all_view_, &prefsize); in GetPreferredSize()
178 AdjustSize(*download_views_.begin(), &prefsize); in GetPreferredSize()
179 prefsize.Enlarge(kDownloadPadding, 0); in GetPreferredSize()
181 prefsize.Enlarge(0, kTopBottomPadding + kTopBottomPadding); in GetPreferredSize()
183 prefsize.set_height(static_cast<int>( in GetPreferredSize()
184 static_cast<double>(prefsize.height()) * in GetPreferredSize()
187 return prefsize; in GetPreferredSize()
/external/chromium_org/ui/views/controls/scrollbar/
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/controls/button/
Dmenu_button.cc159 gfx::Size prefsize = LabelButton::GetPreferredSize(); in GetPreferredSize() local
161 prefsize.Enlarge(menu_marker_->width() + kMenuMarkerPaddingLeft + in GetPreferredSize()
165 return prefsize; in GetPreferredSize()
/external/chromium_org/ui/views/controls/menu/
Dmenu_scroll_view_container.cc247 gfx::Size prefsize = scroll_view_->GetContents()->GetPreferredSize(); in GetPreferredSize() local
249 prefsize.Enlarge(insets.width(), insets.height()); in GetPreferredSize()
250 return prefsize; in GetPreferredSize()
/external/chromium_org/chrome/browser/ui/views/bookmarks/
Dbookmark_bar_view.cc718 gfx::Size prefsize; in GetPreferredSize() local
720 prefsize.set_height( in GetPreferredSize()
726 prefsize.set_height(static_cast<int>(chrome::kBookmarkBarHeight * in GetPreferredSize()
729 return prefsize; in GetPreferredSize()