Lines Matching full:bounds
81 // use window's bounds instead.
83 gfx::Rect work_area = gfx::Rect(window->parent()->bounds().size());
92 // Move the given |bounds| on the available |work_area| in the direction
97 gfx::Rect* bounds) {
99 if (work_area.right() > bounds->right()) {
100 bounds->set_x(work_area.right() - bounds->width());
104 if (work_area.x() < bounds->x()) {
105 bounds->set_x(work_area.x());
112 // Move a |window| to new |bounds|. Animate if desired by user.
116 const gfx::Rect& bounds,
124 gfx::Rect child_bounds = transient_child->bounds();
133 new_child_bounds.set_x(work_area.right() - bounds.width());
141 window->SetBounds(bounds);
148 window->SetBounds(bounds);
151 // Move a |window| to new |bounds|. Animate if desired by user.
152 // Note: The function will do nothing if the bounds did not change.
154 const gfx::Rect& bounds,
157 if (bounds == old_bounds)
159 gfx::Vector2d offset(bounds.origin() - old_bounds.origin());
160 SetBoundsAndOffsetTransientChildren(window, bounds, work_area, offset);
167 gfx::Rect bounds = window->bounds();
171 bounds = *user_defined_area;
172 ash::wm::AdjustBoundsToEnsureMinimumWindowVisibility(work_area, &bounds);
175 bounds.set_x(work_area.x() + (work_area.width() - bounds.width()) / 2);
179 SetBoundsAnimated(window, bounds, work_area);
181 window->SetBounds(bounds);
266 // Use adjusted saved bounds, if there is one.
289 // For a maximized window ignore the real bounds of the top level window
290 // and use its restore bounds instead. Offset the bounds to prevent the
298 // Use adjusted saved bounds or restore bounds, if there is one.
342 gfx::Rect bounds = added_window->bounds();
343 gfx::Rect new_bounds = bounds;
346 if (new_bounds != bounds)
366 gfx::Rect other_bounds = other_shown_window->bounds();
381 // Don't override pre auto managed bounds as the current bounds
395 gfx::Rect added_bounds = added_window->bounds();
523 regions.push_back(&windows[i]->bounds());