Lines Matching refs:image_size
67 void ImageView::SetImageSize(const gfx::Size& image_size) {
69 image_size_ = image_size;
73 bool ImageView::GetImageSize(gfx::Size* image_size) const {
74 DCHECK(image_size);
76 *image_size = image_size_;
81 gfx::Size image_size(image_size_set_ ?
83 return gfx::Rect(ComputeImageOrigin(image_size), image_size);
97 gfx::Size image_size;
98 GetImageSize(&image_size);
99 image_size.Enlarge(insets.width(), insets.height());
100 return image_size;
117 gfx::Point ImageView::ComputeImageOrigin(const gfx::Size& image_size) const {
130 case TRAILING: x = width() - insets.right() - image_size.width(); break;
131 case CENTER: x = (width() - image_size.width()) / 2; break;
138 case TRAILING: y = height() - insets.bottom() - image_size.height(); break;
139 case CENTER: y = (height() - image_size.height()) / 2; break;