From 8b7ba87b074c458fe7b1b6aa3e4a2a663729621a Mon Sep 17 00:00:00 2001 From: "oshima@chromium.org" Date: Sat, 1 Sep 2012 00:40:40 +0000 Subject: Allow "snapping" while dragging a window to another display by reserving the corner that blocks pass through. Cleanup: Move the code that handle warp from DisplayCotnroller to MouseCursorEventFilter. Removed unnecesary namespace, dead code. BUG=143289 TEST=added new tests. manual=connect external monitor and drag a window to another display. a warp hole will be shown at the edge where you can drag a window into. Dragging to other place should start snapping operation. Review URL: https://chromiumcodereview.appspot.com/10899034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154551 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/shell.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ash/shell.cc') diff --git a/ash/shell.cc b/ash/shell.cc index 66b3328..19a612e 100644 --- a/ash/shell.cc +++ b/ash/shell.cc @@ -417,8 +417,7 @@ void Shell::Init() { AddEnvEventFilter(touch_observer_hud_.get()); } - mouse_cursor_filter_.reset( - new internal::MouseCursorEventFilter(display_controller_.get())); + mouse_cursor_filter_.reset(new internal::MouseCursorEventFilter()); AddEnvEventFilter(mouse_cursor_filter_.get()); // Create Controllers that may need root window. -- cgit v1.1