Lines Matching refs:bounds
48 gfx::Rect frame_bounds = this->bounds();
65 // The rectangle will be intersected with the bounds, so the correct half
85 gfx::Rect bounds = GetContentsBounds();
87 PaintUsername(bounds);
89 DCHECK(bounds.size() ==
91 canvas->DrawBitmapInt(*text_image_, bounds.x(), bounds.y());
106 void UsernameView::PaintUsername(const gfx::Rect& bounds) {
107 margin_width_ = bounds.height() * kMarginRatio;
108 gfx::CanvasSkia canvas(bounds.width(), bounds.height(), false);
123 bool use_fading_for_text = text_width + margin_width_ >= bounds.width();
131 bounds.width() - bounds.height() - margin_width_ :
133 int gradient_end = std::min(gradient_start + bounds.height(),
134 bounds.width() - margin_width_);
163 kInvisibleHaloColor, bounds.x() + margin_width_,
164 bounds.y(), bounds.width() - 2 * margin_width_,
165 bounds.height(), flags);