OLD | NEW |
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 Loading... |
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 Loading... |
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 }); |
OLD | NEW |