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

Unified Diff: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc

Issue 12254041: Reconfigure displays even if the output count didn't change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
« no previous file with comments | « ash/system/chromeos/tray_display.cc ('k') | chromeos/display/output_configurator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
index 7fcbc34126c8d1b62c10deac650392dc2b3812f9..d452b69064f40a0730fa9904c286b5b639b0ca93 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
@@ -181,10 +181,8 @@ void DisplayOptionsHandler::SendDisplayInfo(
}
void DisplayOptionsHandler::OnFadeOutForMirroringFinished(bool is_mirroring) {
- // We use 'PRIMARY_ONLY' for non-mirroring state for now.
- // TODO(mukai): fix this and support multiple display modes.
chromeos::OutputState new_state =
- is_mirroring ? STATE_DUAL_MIRROR : STATE_DUAL_PRIMARY_ONLY;
+ is_mirroring ? STATE_DUAL_MIRROR : STATE_DUAL_EXTENDED;
ash::Shell::GetInstance()->output_configurator()->SetDisplayMode(new_state);
SendAllDisplayInfo();
// Not necessary to start fade-in animation. OutputConfigurator will do that.
« no previous file with comments | « ash/system/chromeos/tray_display.cc ('k') | chromeos/display/output_configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698