Move login windows to/from unified desktop. This is necessary because in Unified...
commit022a9548a7eb8dd937c27e604d8916ffaf3f3740
authoroshima <oshima@chromium.org>
Fri, 1 May 2015 00:15:02 +0000 (30 17:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 1 May 2015 00:15:34 +0000 (1 00:15 +0000)
tree1be4e7ca9af8b7622472598c3f75a27fa09f1111
parentfd2c19309ad364b7a5697f0a502667ae575c2e04
Move login windows to/from unified desktop. This is necessary because in Unified desktop mode, the WTF for primary display gets recreated.

A few cleanups:
* Removed DisplayManager::multi_display_mode() and use IsInUnifiedMode() instead. It simply meant that it will use UNIFIED mode when there are two displays, and it's hard to use it correctly.

* Moved software_mirroring_enabled() to private, and changed clients to use SoftwareMirroringEnable() instead.

* Moved SetDefaultMultiDisplayMode to test api

* Removed unused function decl and unnecessary comment.

BUG=365662
TEST=RootWindowControllerTest.MoveWindows_LockWindowsInUnified

Review URL: https://codereview.chromium.org/1120563002

Cr-Commit-Position: refs/heads/master@{#327842}
13 files changed:
ash/display/display_controller.cc
ash/display/display_manager.cc
ash/display/display_manager.h
ash/display/display_manager_unittest.cc
ash/display/mirror_window_controller.cc
ash/display/unified_mouse_warp_controller_unittest.cc
ash/root_window_controller.cc
ash/root_window_controller.h
ash/root_window_controller_unittest.cc
ash/test/display_manager_test_api.cc
ash/test/display_manager_test_api.h
ash/touch/touch_transformer_controller.cc
ash/wm/lock_window_state.cc