Chromium Code Reviews| Index: ash/display/display_layout_store.cc |
| diff --git a/ash/display/display_layout_store.cc b/ash/display/display_layout_store.cc |
| index 466adbf4920b35c4f314cb77c7787d23e7524a58..5e905e2f93a608999954efc35af554ceee02a80b 100644 |
| --- a/ash/display/display_layout_store.cc |
| +++ b/ash/display/display_layout_store.cc |
| @@ -6,6 +6,8 @@ |
| #include "ash/ash_switches.h" |
| #include "ash/display/display_layout_store.h" |
| +#include "ash/display/display_manager.h" |
| +#include "ash/shell.h" |
| #include "base/command_line.h" |
| #include "base/logging.h" |
| #include "ui/gfx/display.h" |
| @@ -67,11 +69,14 @@ DisplayLayout DisplayLayoutStore::ComputeDisplayLayoutForDisplayIdPair( |
| pair.first == layout.primary_id) ? layout : layout.Invert(); |
| } |
| -void DisplayLayoutStore::UpdateMirrorStatus(const DisplayIdPair& pair, |
| - bool mirrored) { |
| +void DisplayLayoutStore::UpdateMultiDisplayState(const DisplayIdPair& pair, |
| + bool mirrored, |
| + bool default_unified) { |
| + LOG(ERROR) << "default unified:" << default_unified; |
|
Jun Mukai
2015/05/21 13:14:19
Remove this log
oshima
2015/05/21 16:35:04
Done.
|
| if (paired_layouts_.find(pair) == paired_layouts_.end()) |
| CreateDisplayLayout(pair); |
| paired_layouts_[pair].mirrored = mirrored; |
| + paired_layouts_[pair].default_unified = default_unified; |
| } |
| void DisplayLayoutStore::UpdatePrimaryDisplayId(const DisplayIdPair& pair, |
| @@ -84,6 +89,9 @@ void DisplayLayoutStore::UpdatePrimaryDisplayId(const DisplayIdPair& pair, |
| DisplayLayout DisplayLayoutStore::CreateDisplayLayout( |
| const DisplayIdPair& pair) { |
| DisplayLayout layout = default_display_layout_; |
| + layout.default_unified = |
| + Shell::GetInstance()->display_manager()->default_multi_display_mode() == |
| + DisplayManager::UNIFIED; |
| layout.primary_id = pair.first; |
| paired_layouts_[pair] = layout; |
| return layout; |