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

Unified Diff: ash/display/display_manager.cc

Issue 12505005: Store rotation/ui scale to local state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « ash/display/display_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager.cc
diff --git a/ash/display/display_manager.cc b/ash/display/display_manager.cc
index de75d8346353ad23a6e1ebd1ccab139fc3d81b3d..685c9bb87e4975e0b73c62648202ebbc20c8e48d 100644
--- a/ash/display/display_manager.cc
+++ b/ash/display/display_manager.cc
@@ -338,6 +338,17 @@ void DisplayManager::OnNativeDisplaysChanged(
}
void DisplayManager::UpdateDisplays() {
+#if defined(OS_CHROMEOS)
+ if (displays_.size() > 0 && base::chromeos::IsRunningOnChromeOS()) {
+ const DisplayLayout& layout = Shell::GetInstance()->
+ display_controller()->GetCurrentDisplayLayout();
+ if (layout.mirrored) {
+ Shell::GetInstance()->output_configurator()->
+ SetDisplayMode(chromeos::STATE_DUAL_MIRROR);
+ }
+ return;
+ }
+#endif
DisplayInfoList display_info_list;
for (DisplayList::const_iterator iter = displays_.begin();
iter != displays_.end(); ++iter) {
« no previous file with comments | « ash/display/display_controller.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698