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

Remove unused function OverviewWindowDragController::GetGridBounds

Change-Id: I543f2206d7c3ab0ef32433f98139ea052bd93bd5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761318Reviewed-by: default avatarSammie Quon <sammiequon@chromium.org>
Commit-Queue: Avery Musbach <amusbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688283}
parent e2c214ab
......@@ -661,26 +661,6 @@ SplitViewController::SnapPosition OverviewWindowDragController::GetSnapPosition(
}
}
gfx::Rect OverviewWindowDragController::GetGridBounds(
SplitViewController::SnapPosition snap_position) {
aura::Window* pending_snapped_window = item_->GetWindow();
switch (snap_position) {
case SplitViewController::NONE:
return gfx::Rect(
screen_util::GetDisplayWorkAreaBoundsInParentForActiveDeskContainer(
pending_snapped_window));
case SplitViewController::LEFT:
return split_view_controller_->GetSnappedWindowBoundsInScreen(
pending_snapped_window, SplitViewController::RIGHT);
case SplitViewController::RIGHT:
return split_view_controller_->GetSnappedWindowBoundsInScreen(
pending_snapped_window, SplitViewController::LEFT);
}
NOTREACHED();
return gfx::Rect();
}
void OverviewWindowDragController::SnapWindow(
SplitViewController::SnapPosition snap_position) {
DCHECK_NE(snap_position, SplitViewController::NONE);
......
......@@ -111,9 +111,6 @@ class ASH_EXPORT OverviewWindowDragController {
SplitViewController::SnapPosition GetSnapPosition(
const gfx::PointF& location_in_screen) const;
// Returns the expected window grid bounds based on |snap_position|.
gfx::Rect GetGridBounds(SplitViewController::SnapPosition snap_position);
void SnapWindow(SplitViewController::SnapPosition snap_position);
OverviewSession* overview_session_;
......
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