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

Unified Diff: ash/display/display_configuration_controller.cc

Issue 1952353003: Show message to indicate that mirriring with more than 3 display is not supported. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/ash_chromeos_strings.grdp ('k') | ash/display/display_error_observer_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_configuration_controller.cc
diff --git a/ash/display/display_configuration_controller.cc b/ash/display/display_configuration_controller.cc
index 24385e54e6ba3ab46f4a2fa51acfa43c691e38ce..971660192a86ccd9c652bb035fd959b72259dc76 100644
--- a/ash/display/display_configuration_controller.cc
+++ b/ash/display/display_configuration_controller.cc
@@ -6,6 +6,7 @@
#include "ash/display/display_animator.h"
#include "ash/display/display_manager.h"
+#include "ash/display/display_util.h"
#include "ash/rotator/screen_rotation_animator.h"
#include "ash/screen_util.h"
#include "base/time/time.h"
@@ -14,6 +15,7 @@
#if defined(OS_CHROMEOS)
#include "ash/display/display_animator_chromeos.h"
#include "base/sys_info.h"
+#include "grit/ash_strings.h"
#endif
namespace {
@@ -81,6 +83,13 @@ void DisplayConfigurationController::SetDisplayLayout(
void DisplayConfigurationController::SetMirrorMode(bool mirror,
bool user_action) {
+ if (display_manager_->num_connected_displays() > 2) {
+#if defined(OS_CHROMEOS)
+ if (user_action)
+ ShowDisplayErrorNotification(IDS_ASH_DISPLAY_MIRRORING_NOT_SUPPORTED);
+#endif
+ return;
+ }
if (display_manager_->num_connected_displays() <= 1 ||
display_manager_->IsInMirrorMode() == mirror || IsLimited()) {
return;
« no previous file with comments | « ash/ash_chromeos_strings.grdp ('k') | ash/display/display_error_observer_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698