Commit c368800d authored by Avery Musbach's avatar Avery Musbach Committed by Commit Bot

overview: Remove unused parameter

Bug: None
Change-Id: I0b5c75f9134472428d7510a1370388c63dd518e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2003926Reviewed-by: default avatarSammie Quon <sammiequon@chromium.org>
Commit-Queue: Avery Musbach <amusbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#732237}
parent f2545121
......@@ -1501,7 +1501,7 @@ int OverviewGrid::CalculateWidthAndMaybeSetUnclippedBounds(OverviewItem* item,
// Get the bounds of the window if there is a snapped window or a window
// about to be snapped.
base::Optional<gfx::RectF> split_view_bounds =
GetSplitviewBoundsMaintainingAspectRatio(item->GetWindow());
GetSplitviewBoundsMaintainingAspectRatio();
if (!split_view_bounds) {
item->set_unclipped_size(base::nullopt);
return width;
......
......@@ -376,8 +376,7 @@ gfx::Rect GetGridBoundsInScreen(
return bounds;
}
base::Optional<gfx::RectF> GetSplitviewBoundsMaintainingAspectRatio(
aura::Window* window) {
base::Optional<gfx::RectF> GetSplitviewBoundsMaintainingAspectRatio() {
if (!ShouldAllowSplitView())
return base::nullopt;
if (!Shell::Get()->tablet_mode_controller()->InTabletMode())
......
......@@ -102,8 +102,7 @@ gfx::Rect GetGridBoundsInScreen(
// Gets the bounds of a window if it were to be snapped or about to be snapped
// in splitview. Returns nothing if we are not in tablet mode, or if we aren't
// in splitview, or if we aren't showing a splitview preview.
base::Optional<gfx::RectF> GetSplitviewBoundsMaintainingAspectRatio(
aura::Window* window);
base::Optional<gfx::RectF> GetSplitviewBoundsMaintainingAspectRatio();
// Check if kNewOverviewLayout is enabled for tablet mode.
bool ShouldUseTabletModeGridLayout();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment