| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 /** @private */ | 75 /** @private */ |
| 76 unifiedDesktopAvailable_: { | 76 unifiedDesktopAvailable_: { |
| 77 type: Boolean, | 77 type: Boolean, |
| 78 value: function() { | 78 value: function() { |
| 79 return loadTimeData.getBoolean('unifiedDesktopAvailable'); | 79 return loadTimeData.getBoolean('unifiedDesktopAvailable'); |
| 80 } | 80 } |
| 81 }, | 81 }, |
| 82 | 82 |
| 83 /** @private */ | 83 /** @private */ |
| 84 nightLightFeatureEnabled_: { |
| 85 type: Boolean, |
| 86 value: function() { |
| 87 return loadTimeData.getBoolean('nightLightFeatureEnabled'); |
| 88 } |
| 89 }, |
| 90 |
| 91 /** @private */ |
| 84 unifiedDesktopMode_: { | 92 unifiedDesktopMode_: { |
| 85 type: Boolean, | 93 type: Boolean, |
| 86 value: false, | 94 value: false, |
| 87 }, | 95 }, |
| 88 }, | 96 }, |
| 89 | 97 |
| 90 /** @private {number} Selected mode index received from chrome. */ | 98 /** @private {number} Selected mode index received from chrome. */ |
| 91 currentSelectedModeIndex_: -1, | 99 currentSelectedModeIndex_: -1, |
| 92 | 100 |
| 93 /** | 101 /** |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 }, | 526 }, |
| 519 | 527 |
| 520 /** @private */ | 528 /** @private */ |
| 521 setPropertiesCallback_: function() { | 529 setPropertiesCallback_: function() { |
| 522 if (chrome.runtime.lastError) { | 530 if (chrome.runtime.lastError) { |
| 523 console.error( | 531 console.error( |
| 524 'setDisplayProperties Error: ' + chrome.runtime.lastError.message); | 532 'setDisplayProperties Error: ' + chrome.runtime.lastError.message); |
| 525 } | 533 } |
| 526 }, | 534 }, |
| 527 }); | 535 }); |
| OLD | NEW |