TabletMode should default to mirror mode

Desktop / Chromium - Mitsuru Oshima [chromium.org] - 9 October 2017 10:18 EDT

- Enable mirror when switching to tablet mode This is done in DisplayConfigurationObserver so that we can safely disable saving to preference.
- Use mirror mode when an external display is added in tablet mode

Bug: 752181 Change-Id: I46dea6dd7ad0ac72234a4ab153f52ead21d80cc8 Reviewed-on: https://chromium-review.googlesource.com/690704 Commit-Queue: Mitsuru Oshima

3695b8be TabletMode should default to mirror mode
ash/display/display_manager_unittest.cc | 39 ++++++++++
ash/display/window_tree_host_manager.h | 5 +-
.../display/display_configuration_observer.cc | 34 ++++++++-
.../display/display_configuration_observer.h | 16 +++-
.../display/display_preferences_unittest.cc | 87 ++++++++++++++++++----
.../manager/chromeos/display_change_observer.cc | 8 +-
ui/display/manager/display_layout_store.cc | 6 ++
ui/display/manager/display_layout_store.h | 8 ++
8 files changed, 177 insertions(+), 26 deletions(-)

Upstream: git.chromium.org


  • Share