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

Side by Side Diff: chrome/browser/resources/settings/device_page/display.js

Issue 2643483002: MD Settings > Display: Hide arrangement text for single display (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/settings/device_page/display.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-display' is the settings subpage for display settings. 7 * 'settings-display' is the settings subpage for display settings.
8 */ 8 */
9 9
10 cr.define('settings.display', function() { 10 cr.define('settings.display', function() {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 showTouchCalibrationSetting_: function(display) { 177 showTouchCalibrationSetting_: function(display) {
178 return !display.isInternal && display.hasTouchSupport && 178 return !display.isInternal && display.hasTouchSupport &&
179 loadTimeData.getBoolean('enableTouchCalibrationSetting'); 179 loadTimeData.getBoolean('enableTouchCalibrationSetting');
180 }, 180 },
181 181
182 /** 182 /**
183 * @param {!Array<!chrome.system.display.DisplayUnitInfo>} displays 183 * @param {!Array<!chrome.system.display.DisplayUnitInfo>} displays
184 * @return {boolean} 184 * @return {boolean}
185 * @private 185 * @private
186 */ 186 */
187 showDisplayTabMenu_: function(displays) { 187 hasMultipleDisplays_: function(displays) {
188 return displays.length > 1; 188 return displays.length > 1;
189 }, 189 },
190 190
191 /** 191 /**
192 * Returns false if the display select menu has to be hidden. 192 * Returns false if the display select menu has to be hidden.
193 * @param {!Array<!chrome.system.display.DisplayUnitInfo>} displays 193 * @param {!Array<!chrome.system.display.DisplayUnitInfo>} displays
194 * @param {!chrome.system.display.DisplayUnitInfo} selectedDisplay 194 * @param {!chrome.system.display.DisplayUnitInfo} selectedDisplay
195 * @return {boolean} 195 * @return {boolean}
196 * @private 196 * @private
197 */ 197 */
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 }, 434 },
435 435
436 /** @private */ 436 /** @private */
437 setPropertiesCallback_: function() { 437 setPropertiesCallback_: function() {
438 if (chrome.runtime.lastError) { 438 if (chrome.runtime.lastError) {
439 console.error( 439 console.error(
440 'setDisplayProperties Error: ' + chrome.runtime.lastError.message); 440 'setDisplayProperties Error: ' + chrome.runtime.lastError.message);
441 } 441 }
442 }, 442 },
443 }); 443 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/device_page/display.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698