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

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

Issue 12088081: Allows to show display settings for 1-display of stumpy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « chrome/browser/resources/options/chromeos/display_options.js ('k') | no next file » | 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 00ad41e8775183ec68678194b5ff3a671ffd3aea..ef4240b2cc86f94d01cbee57a5a1c5b130a15469 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
@@ -137,10 +137,14 @@ void DisplayOptionsHandler::OnDisplayRemoved(const gfx::Display& old_display) {
void DisplayOptionsHandler::UpdateDisplaySectionVisibility(
size_t num_displays) {
+ DisplayManager* display_manager = GetDisplayManager();
+ size_t min_displays_to_show = display_manager->HasInternalDisplay() ? 2 : 1;
+
chromeos::OutputState output_state =
ash::Shell::GetInstance()->output_configurator()->output_state();
base::FundamentalValue show_options(
- num_displays > 1 || output_state == chromeos::STATE_DUAL_MIRROR);
+ num_displays >= min_displays_to_show ||
+ output_state == chromeos::STATE_DUAL_MIRROR);
web_ui()->CallJavascriptFunction(
"options.BrowserOptions.showDisplayOptions", show_options);
}
« no previous file with comments | « chrome/browser/resources/options/chromeos/display_options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698