Lines Matching full:bounds
198 const gfx::Rect& bounds) {
201 params.bounds = bounds;
216 const gfx::Rect& bounds) {
221 params.bounds = bounds;
235 const gfx::Rect& bounds) {
240 params.bounds = bounds;
367 // Initialize the window's title before setting the window's initial bounds;
371 SetInitialBounds(params.bounds);
378 SetInitialBoundsForFramelessWindow(params.bounds);
503 void Widget::SetBounds(const gfx::Rect& bounds) {
504 native_widget_->SetBounds(bounds);
515 void Widget::SetBoundsConstrained(const gfx::Rect& bounds) {
518 bounds.origin()).work_area();
520 SetBounds(bounds);
524 work_area.AdjustToFit(bounds);
632 // call SetBounds()with the restored bounds to set the correct size. This
1423 gfx::Rect bounds;
1424 native_widget_->GetWindowPlacement(&bounds, &show_state);
1425 widget_delegate_->SaveWindowPlacement(bounds, show_state);
1428 void Widget::SetInitialBounds(const gfx::Rect& bounds) {
1436 // bounds. That way we avoid a noticeable resize.
1439 // If the saved bounds are valid, use them.
1443 if (bounds.IsEmpty()) {
1444 // No initial bounds supplied, so size the window to its content and
1448 // Use the supplied initial bounds.
1449 SetBoundsConstrained(bounds);
1454 void Widget::SetInitialBoundsForFramelessWindow(const gfx::Rect& bounds) {
1455 if (bounds.IsEmpty()) {
1458 // No initial bounds supplied, so size the window to its content and
1464 // Use the supplied initial bounds.
1465 SetBoundsConstrained(bounds);
1469 bool Widget::GetSavedWindowPlacement(gfx::Rect* bounds,
1479 if (widget_delegate_->GetSavedWindowPlacement(this, bounds, show_state)) {
1481 bounds->set_size(non_client_view_->GetPreferredSize());
1484 // Make sure the bounds are at least the minimum size.
1485 if (bounds->width() < minimum_size.width())
1486 bounds->set_width(minimum_size.width());
1488 if (bounds->height() < minimum_size.height())
1489 bounds->set_height(minimum_size.height());