Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3241)

Unified Diff: ash/display/display_controller.cc

Issue 948583005: Add more tests for mouse rotation,scale&position after display change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/display/display_controller.cc
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index 7a3b6f9959daef8f7b0067eec767a425a89924be..d2cf71c8beb554e0affef234f604e47de119121a 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -536,7 +536,7 @@ void DisplayController::SetPrimaryDisplay(
GetDisplayManager()->set_force_bounds_changed(false);
}
-void DisplayController::EnsurePointerInDisplays() {
+void DisplayController::UpdateMouseLocationAfterDisplayChange() {
pkotwicz 2015/02/24 18:38:08 I renamed this method because you mentioned in htt
// If the mouse is currently on a display in native location,
// use the same native location. Otherwise find the display closest
// to the current cursor location in screen coordinates.
@@ -751,7 +751,7 @@ void DisplayController::PostDisplayConfigurationChange() {
}
FOR_EACH_OBSERVER(Observer, observers_, OnDisplayConfigurationChanged());
UpdateHostWindowNames();
- EnsurePointerInDisplays();
+ UpdateMouseLocationAfterDisplayChange();
}
AshWindowTreeHost* DisplayController::AddWindowTreeHostForDisplay(

Powered by Google App Engine
This is Rietveld 408576698