Searched refs:vis_rect (Results 1 – 3 of 3) sorted by relevance
489 const gfx::Rect vis_rect = GetVisibleRect(); in ScrollContentsRegionToBeVisible() local490 if (vis_rect.Contains(gfx::Rect(x, y, max_x - x, max_y - y))) in ScrollContentsRegionToBeVisible()501 (vis_rect.x() > x) ? x : std::max(0, max_x - contents_viewport_->width()); in ScrollContentsRegionToBeVisible()503 (vis_rect.y() > y) ? y : std::max(0, max_y - in ScrollContentsRegionToBeVisible()
782 gfx::Rect vis_rect(GetVisibleBounds()); in SetSelectionModel() local787 vis_rect.set_y(start_y); in SetSelectionModel()788 vis_rect.set_height(end_y - start_y); in SetSelectionModel()789 ScrollRectToVisible(vis_rect); in SetSelectionModel()
209 gfx::Rect vis_rect = submenu_->GetVisibleBounds(); in Run() local213 vis_rect.set_y(is_scrolling_up_ ? in Run()215 std::min(submenu_->height() - vis_rect.height(), start_y_ + delta_y)); in Run()216 submenu_->ScrollRectToVisible(vis_rect); in Run()1392 gfx::Rect vis_rect = submenu->GetVisibleBounds(); in DoesSubmenuContainLocation() local1393 return vis_rect.Contains(view_loc.x(), view_loc.y()); in DoesSubmenuContainLocation()