Searched refs:preferred_size (Results 1 – 6 of 6) sorted by relevance
66 gfx::Size preferred_size = TextButton::GetPreferredSize(); in GetPreferredSize() local68 if (preferred_size.width() < login::kButtonMinWidth) in GetPreferredSize()69 preferred_size.set_width(login::kButtonMinWidth); in GetPreferredSize()70 return preferred_size; in GetPreferredSize()
223 gfx::Size preferred_size = NativeButton::GetPreferredSize(); in GetPreferredSize() local225 if (preferred_size.width() < kButtonMinWidth) in GetPreferredSize()226 preferred_size.set_width(kButtonMinWidth); in GetPreferredSize()227 return preferred_size; in GetPreferredSize()
115 gfx::Size preferred_size(views::ImageView::GetPreferredSize()); in GetPreferredSize() local117 preferred_size.set_width(preferred_size.width() + visible_text_size_); in GetPreferredSize()118 return preferred_size; in GetPreferredSize()
127 gfx::Size preferred_size(views::View::GetPreferredSize()); in GetPreferredSize() local130 (kMinMultiLineContentsWidth > preferred_size.width())) ? in GetPreferredSize()131 kMinMultiLineContentsWidth : preferred_size.width(); in GetPreferredSize()132 preferred_size.set_width(std::min(preferred_width, kMaxContentsWidth)); in GetPreferredSize()133 return preferred_size; in GetPreferredSize()
74 gfx::Size preferred_size(link_.GetPreferredSize()); in GetPreferredSize() local75 preferred_size.Enlarge(kPaddingPixels * 2, kPaddingPixels * 2); in GetPreferredSize()76 return preferred_size; in GetPreferredSize()
150 gfx::Size preferred_size = GetPreferredSize(); in UpdatePreferredSize() local151 if (new_size != preferred_size) in UpdatePreferredSize()