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

1 2

  /external/chromium_org/ui/views/
button_drag_utils.cc 42 gfx::Size prefsize = button.GetPreferredSize(); local
43 button.SetBounds(0, 0, prefsize.width(), prefsize.height());
47 views::GetCanvasForDragImage(widget, prefsize));
49 drag_utils::SetDragImageOnDataObject(*canvas, prefsize,
50 gfx::Vector2d(prefsize.width() / 2, prefsize.height() / 2), data);
  /external/chromium_org/ui/views/controls/scrollbar/
bitmap_scroll_bar.cc 211 gfx::Size prefsize = prev_button_->GetPreferredSize(); local
212 return IsHorizontal() ? prefsize.height() : prefsize.width();
216 gfx::Size prefsize = prev_button_->GetPreferredSize(); local
219 prefsize.set_width(0);
221 std::max(0, width() - (prefsize.width() * 2));
222 gfx::Rect track_bounds(prefsize.width(), 0, new_width, prefsize.height());
226 prefsize.set_height(0);
227 gfx::Rect track_bounds(0, prefsize.height(), prefsize.width()
245 gfx::Size prefsize = prev_button_->GetPreferredSize(); local
    [all...]
base_scroll_bar_thumb.cc 32 gfx::Size prefsize = GetPreferredSize(); local
33 size = std::max(size, scroll_bar_->IsHorizontal() ? prefsize.width() :
34 prefsize.height());
  /external/chromium/chrome/browser/chromeos/status/
status_area_button.cc 88 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/
keyword_hint_view.cc 101 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_org/ui/views/controls/button/
text_button.cc 311 gfx::Size prefsize(std::max(max_text_size_.width(),
317 prefsize.set_width(std::min(max_width_, prefsize.width()));
319 prefsize.set_width(std::max(prefsize.width(), min_width_));
320 prefsize.set_height(std::max(prefsize.height(), min_height_));
322 return prefsize;
636 gfx::Size prefsize(TextButtonBase::GetPreferredSize());
637 prefsize.Enlarge(icon_.width(), 0)
    [all...]
menu_button.cc 163 gfx::Size prefsize = TextButton::GetPreferredSize(); local
165 prefsize.Enlarge(menu_marker_->width() + kMenuMarkerPaddingLeft +
169 return prefsize;
  /external/chromium_org/chrome/browser/ui/views/
find_bar_host.cc 265 gfx::Size prefsize = view()->GetPreferredSize();
268 if (widget_bounds.width() < prefsize.width())
269 prefsize.set_width(widget_bounds.width());
272 if (widget_bounds.height() < prefsize.height())
280 x += widget_bounds.width() - prefsize.width();
282 view_location.SetRect(x, y, prefsize.width(), prefsize.height());
find_bar_view.cc 346 gfx::Size prefsize = find_text_->GetPreferredSize(); local
347 prefsize.set_height(preferred_height_);
350 prefsize.Enlarge(kMarginLeftOfCloseButton + kMarginRightOfCloseButton +
353 prefsize.Enlarge(find_previous_button_->GetPreferredSize().width(), 0);
354 prefsize.Enlarge(find_next_button_->GetPreferredSize().width(), 0);
355 prefsize.Enlarge(close_button_->GetPreferredSize().width(), 0);
356 return prefsize;
  /external/chromium/chrome/browser/ui/views/download/
download_shelf_view.cc 210 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_org/chrome/browser/ui/views/download/
download_shelf_view.cc 195 gfx::Size prefsize(kRightPadding + kLeftPadding + kCloseAndLinkPadding, 0);
196 AdjustSize(close_button_, &prefsize);
197 AdjustSize(show_all_view_, &prefsize);
200 AdjustSize(*download_views_.begin(), &prefsize);
201 prefsize.Enlarge(kDownloadPadding, 0);
203 prefsize.Enlarge(0, kTopBottomPadding + kTopBottomPadding);
205 prefsize.set_height(static_cast<int>(
206 static_cast<double>(prefsize.height()) *
209 return prefsize;
  /external/chromium_org/chrome/browser/ui/views/website_settings/
permission_selector_view.cc 105 gfx::Size prefsize(text_size_.width() + insets.width(),
108 prefsize.set_width(std::min(max_width_, prefsize.width()));
110 prefsize.Enlarge(menu_marker()->width() +
115 return prefsize;
  /external/chromium/chrome/browser/ui/views/infobars/
infobar.cc 74 int InfoBar::OffsetY(const gfx::Size& prefsize) const {
76 std::max((bar_target_height_ - prefsize.height()) / 2, 0) -
infobar.h 69 // Given a control with size |prefsize|, returns the centered y position
72 int OffsetY(const gfx::Size& prefsize) const;
  /external/chromium_org/chrome/browser/infobars/
infobar.cc 118 int InfoBar::OffsetY(const gfx::Size& prefsize) const {
120 std::max((bar_target_height_ - prefsize.height()) / 2, 0) -
infobar.h 87 // Given a control with size |prefsize|, returns the centered y position
90 int OffsetY(const gfx::Size& prefsize) const;
  /external/chromium/chrome/browser/ui/views/
find_bar_host.cc 240 gfx::Size prefsize = view()->GetPreferredSize();
247 x += widget_bounds.width() - prefsize.width();
249 view_location.SetRect(x, y, prefsize.width(), prefsize.height());
find_bar_view.cc 394 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_org/ui/views/controls/menu/
menu_scroll_view_container.cc 254 gfx::Size prefsize = scroll_view_->GetContents()->GetPreferredSize(); local
256 prefsize.Enlarge(insets.width(), insets.height());
257 return prefsize;
  /external/chromium_org/ui/views/controls/
label.cc 217 gfx::Size prefsize(GetTextSize());
219 prefsize.Enlarge(insets.width(), insets.height());
220 return prefsize;
  /external/chromium/chrome/browser/ui/views/bookmarks/
bookmark_editor_view.cc 144 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());
bookmark_bar_view.cc 1632 gfx::Size prefsize; local
    [all...]
  /external/chromium/chrome/browser/ui/gtk/
find_bar_gtk.cc 431 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());
    [all...]
  /external/chromium_org/chrome/browser/ui/gtk/
find_bar_gtk.cc 442 gfx::Size prefsize(req.width, req.height);
445 ltr ? dialog_bounds.width() - prefsize.width() : dialog_bounds.x(),
446 dialog_bounds.y(), prefsize.width(), prefsize.height());
    [all...]
  /external/chromium_org/chrome/browser/ui/views/bookmarks/
bookmark_bar_view.cc 1719 gfx::Size prefsize; local
    [all...]

Completed in 486 milliseconds

1 2