summaryrefslogtreecommitdiffstats
path: root/ash/display/display_controller.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-12 09:39:49 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-12 09:39:49 +0000
commit8ab613cfc7adabea9130b758fa2e41d02f2fa767 (patch)
tree8d75a72a4acf9cd2ea422c08290f3f1120e9ec23 /ash/display/display_controller.cc
parentbbd72ec9ce65e9dd27dafaf446f250d67d4d7f6f (diff)
downloadchromium_src-8ab613cfc7adabea9130b758fa2e41d02f2fa767.zip
chromium_src-8ab613cfc7adabea9130b758fa2e41d02f2fa767.tar.gz
chromium_src-8ab613cfc7adabea9130b758fa2e41d02f2fa767.tar.bz2
Use native coordinates to warp the cursor to another display.
This is roughly how this works. - Takes the bounds of the edge indicator in screen coords and convert to native coords - If the location of mouse in native coords moves into this bounds, we need to warp the mouse. - Convert the current mouse location in screen coords to the destination window's host coords. Adjust so that the location is inside the host window's bounds. No flag. I'll simply flip the flag if I need to disable this on branch. BUG=321699,306632 TEST=TBD Review URL: https://codereview.chromium.org/270863005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/display/display_controller.cc')
-rw-r--r--ash/display/display_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index c8cad9e..498aef3 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -247,8 +247,6 @@ void DisplayController::Start() {
new VirtualKeyboardWindowController);
Shell::GetScreen()->AddObserver(this);
Shell::GetInstance()->display_manager()->set_delegate(this);
-
- FOR_EACH_OBSERVER(Observer, observers_, OnDisplaysInitialized());
}
void DisplayController::Shutdown() {
@@ -294,6 +292,8 @@ void DisplayController::InitDisplays() {
}
}
UpdateHostWindowNames();
+
+ FOR_EACH_OBSERVER(Observer, observers_, OnDisplaysInitialized());
}
void DisplayController::AddObserver(Observer* observer) {