OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 cr.exportPath('options'); | 5 cr.exportPath('options'); |
6 | 6 |
7 /** | 7 /** |
8 * @typedef {{actionLinkText: (string|undefined), | 8 * @typedef {{actionLinkText: (string|undefined), |
9 * hasError: (boolean|undefined), | 9 * hasError: (boolean|undefined), |
10 * hasUnrecoverableError: (boolean|undefined), | 10 * hasUnrecoverableError: (boolean|undefined), |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 // Easy Unlock section. | 534 // Easy Unlock section. |
535 if (loadTimeData.getBoolean('easyUnlockAllowed')) { | 535 if (loadTimeData.getBoolean('easyUnlockAllowed')) { |
536 $('easy-unlock-section').hidden = false; | 536 $('easy-unlock-section').hidden = false; |
537 $('easy-unlock-setup-button').onclick = function(event) { | 537 $('easy-unlock-setup-button').onclick = function(event) { |
538 chrome.send('launchEasyUnlockSetup'); | 538 chrome.send('launchEasyUnlockSetup'); |
539 }; | 539 }; |
540 $('easy-unlock-turn-off-button').onclick = function(event) { | 540 $('easy-unlock-turn-off-button').onclick = function(event) { |
541 PageManager.showPageByName('easyUnlockTurnOffOverlay'); | 541 PageManager.showPageByName('easyUnlockTurnOffOverlay'); |
542 }; | 542 }; |
543 } | 543 } |
| 544 $('easy-unlock-enable-proximity-detection').hidden = |
| 545 !loadTimeData.getBoolean('easyUnlockProximityDetectionAllowed'); |
544 | 546 |
545 // Website Settings section. | 547 // Website Settings section. |
546 if (loadTimeData.getBoolean('websiteSettingsManagerEnabled')) { | 548 if (loadTimeData.getBoolean('websiteSettingsManagerEnabled')) { |
547 $('website-settings-section').hidden = false; | 549 $('website-settings-section').hidden = false; |
548 $('website-management-button').onclick = function(event) { | 550 $('website-management-button').onclick = function(event) { |
549 PageManager.showPageByName('websiteSettings'); | 551 PageManager.showPageByName('websiteSettings'); |
550 }; | 552 }; |
551 } | 553 } |
552 | 554 |
553 // Web Content section. | 555 // Web Content section. |
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2142 } | 2144 } |
2143 button.textContent = loadTimeData.getString(strId); | 2145 button.textContent = loadTimeData.getString(strId); |
2144 }; | 2146 }; |
2145 } | 2147 } |
2146 | 2148 |
2147 // Export | 2149 // Export |
2148 return { | 2150 return { |
2149 BrowserOptions: BrowserOptions | 2151 BrowserOptions: BrowserOptions |
2150 }; | 2152 }; |
2151 }); | 2153 }); |
OLD | NEW |