Home | History | Annotate | Download | only in ui

Lines Matching refs:work_area

28                                   gfx::Rect* work_area) const {
63 work_area->SetRect(work_area_left, work_area_top,
201 gfx::Rect work_area = monitor_info_provider_->GetPrimaryMonitorWorkArea();
205 int default_width = std::min(work_area.width() - 2 * kWindowTilePixels, 1050);
206 int default_height = work_area.height() - 2 * kWindowTilePixels;
219 work_area.width() > kMinScreenWidthForWindowHalving) {
223 default_width = static_cast<int>(work_area.width() / 2. -
226 default_bounds->SetRect(kWindowTilePixels + work_area.x(),
227 kWindowTilePixels + work_area.y(),
235 gfx::Rect work_area = monitor_info_provider_->GetWorkAreaAt(i);
238 if (position >= work_area.y())
242 if (position >= work_area.x())
246 if (position <= work_area.bottom())
250 if (position <= work_area.right())
274 gfx::Rect work_area =
290 if (bounds->y() < work_area.y())
291 bounds->set_y(work_area.y());
297 saved_work_area != work_area &&
298 !work_area.Contains(*bounds)) {
299 bounds->set_width(std::min(bounds->width(), work_area.width()));
300 bounds->set_height(std::min(bounds->height(), work_area.height()));
302 std::max(work_area.x(),
303 std::min(bounds->x(), work_area.right() - bounds->width())));
305 std::max(work_area.y(),
306 std::min(bounds->y(), work_area.bottom() - bounds->height())));
315 bounds->set_height(std::min(work_area.height(), bounds->height()));
320 if (bounds->x() < work_area.x() || bounds->right() > work_area.right())
321 bounds->set_x(work_area.x());
325 if (bounds->y() < work_area.y() || bounds->bottom() > work_area.bottom())
326 bounds->set_y(work_area.y());
330 const int min_y = work_area.y() + kMinVisibleHeight - bounds->height();
331 const int min_x = work_area.x() + kMinVisibleWidth - bounds->width();
332 const int max_y = work_area.bottom() - kMinVisibleHeight;
333 const int max_x = work_area.right() - kMinVisibleWidth;