Commit 40e265cc authored by Nick Diego Yamane's avatar Nick Diego Yamane Committed by Commit Bot

ash: Remove MouseWarpMode leftover from drag_window_resizer.cc

MouseWarpMode was removed in http://crrev.com/1082423006, so remove its
leftovers from drag_window_resizer.cc.

R=oshima@chromium.org

Bug: None
Change-Id: I0e98ff77e847c4a2ee638dfb4944ceeb254fa759
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391646
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Auto-Submit: Nick Yamane <nickdiego@igalia.com>
Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#804260}
parent 411b556e
......@@ -92,16 +92,14 @@ DragWindowResizer::DragWindowResizer(
next_window_resizer_(std::move(next_window_resizer)) {
// The pointer should be confined in one display during resizing a window
// because the window cannot span two displays at the same time anyway. The
// exception is window/tab dragging operation. During that operation,
// |mouse_warp_mode_| should be set to WARP_DRAG so that the user could move a
// window/tab to another display.
// exception is window/tab dragging operation. During that operation, mouse
// warp is set so that the user can move a window/tab to another display.
MouseCursorEventFilter* mouse_cursor_filter =
Shell::Get()->mouse_cursor_filter();
mouse_cursor_filter->set_mouse_warp_enabled(ShouldAllowMouseWarp());
if (ShouldAllowMouseWarp())
mouse_cursor_filter->ShowSharedEdgeIndicator(GetTarget()->GetRootWindow());
Shell::Get()->shadow_controller()->UpdateShadowForWindow(
window_state->window());
Shell::Get()->shadow_controller()->UpdateShadowForWindow(GetTarget());
instance_ = this;
}
......
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