summaryrefslogtreecommitdiffstats
path: root/ash/shell.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-01 00:40:40 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-01 00:40:40 +0000
commit8b7ba87b074c458fe7b1b6aa3e4a2a663729621a (patch)
treefee2d4aa25547fef5a42fa340dd8e7ea7023092e /ash/shell.cc
parenteb7956341bd8835c5f9254e62638f8635f7c268f (diff)
downloadchromium_src-8b7ba87b074c458fe7b1b6aa3e4a2a663729621a.zip
chromium_src-8b7ba87b074c458fe7b1b6aa3e4a2a663729621a.tar.gz
chromium_src-8b7ba87b074c458fe7b1b6aa3e4a2a663729621a.tar.bz2
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
Diffstat (limited to 'ash/shell.cc')
-rw-r--r--ash/shell.cc3
1 files changed, 1 insertions, 2 deletions
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.