Searched refs:visible_area (Results 1 – 2 of 2) sorted by relevance
/external/chromium_org/ash/wm/ |
D | window_util.cc | 81 void AdjustBoundsToEnsureMinimumWindowVisibility(const gfx::Rect& visible_area, in AdjustBoundsToEnsureMinimumWindowVisibility() argument 84 visible_area, kMinimumOnScreenArea, kMinimumOnScreenArea, bounds); in AdjustBoundsToEnsureMinimumWindowVisibility() 87 void AdjustBoundsToEnsureWindowVisibility(const gfx::Rect& visible_area, in AdjustBoundsToEnsureWindowVisibility() argument 91 bounds->set_width(std::min(bounds->width(), visible_area.width())); in AdjustBoundsToEnsureWindowVisibility() 92 bounds->set_height(std::min(bounds->height(), visible_area.height())); in AdjustBoundsToEnsureWindowVisibility() 94 min_width = std::min(min_width, visible_area.width()); in AdjustBoundsToEnsureWindowVisibility() 95 min_height = std::min(min_height, visible_area.height()); in AdjustBoundsToEnsureWindowVisibility() 97 if (bounds->x() + min_width > visible_area.right()) { in AdjustBoundsToEnsureWindowVisibility() 98 bounds->set_x(visible_area.right() - min_width); in AdjustBoundsToEnsureWindowVisibility() 102 if (bounds->y() + min_height > visible_area.bottom()) { in AdjustBoundsToEnsureWindowVisibility() [all …]
|
D | window_util.h | 54 const gfx::Rect& visible_area, 61 const gfx::Rect& visible_area,
|