Chromium Code Reviews| 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 * childUser: (boolean|undefined), | 9 * childUser: (boolean|undefined), |
| 10 * hasError: (boolean|undefined), | 10 * hasError: (boolean|undefined), |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 427 this.updateAccountPicture_(); | 427 this.updateAccountPicture_(); |
| 428 | 428 |
| 429 $('account-picture').onclick = this.showImagerPickerOverlay_; | 429 $('account-picture').onclick = this.showImagerPickerOverlay_; |
| 430 $('change-picture-caption').onclick = this.showImagerPickerOverlay_; | 430 $('change-picture-caption').onclick = this.showImagerPickerOverlay_; |
| 431 | 431 |
| 432 $('manage-accounts-button').onclick = function(event) { | 432 $('manage-accounts-button').onclick = function(event) { |
| 433 PageManager.showPageByName('accounts'); | 433 PageManager.showPageByName('accounts'); |
| 434 chrome.send('coreOptionsUserMetricsAction', | 434 chrome.send('coreOptionsUserMetricsAction', |
| 435 ['Options_ManageAccounts']); | 435 ['Options_ManageAccounts']); |
| 436 }; | 436 }; |
| 437 | |
| 438 if (loadTimeData.getBoolean('showQuickUnlockSettings')) { | |
| 439 $('manage-screenlock').onclick = function(event) { | |
| 440 settings.navigateTo(settings.Route.LOCK_SCREEN); | |
|
jdufault
2016/08/11 18:34:10
nit: indentation
xiaoyinh(OOO Sep 11-29)
2016/08/11 23:59:50
Done.
| |
| 441 PageManager.showPageByName('quickUnlockConfigureOverlay'); | |
| 442 }; | |
| 443 $('manage-screenlock').hidden = false; | |
| 444 } | |
| 437 } else { | 445 } else { |
| 438 $('import-data').onclick = function(event) { | 446 $('import-data').onclick = function(event) { |
| 439 ImportDataOverlay.show(); | 447 ImportDataOverlay.show(); |
| 440 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); | 448 chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']); |
| 441 }; | 449 }; |
| 442 | 450 |
| 443 if ($('themes-native-button')) { | 451 if ($('themes-native-button')) { |
| 444 $('themes-native-button').onclick = function(event) { | 452 $('themes-native-button').onclick = function(event) { |
| 445 chrome.send('themesSetNative'); | 453 chrome.send('themesSetNative'); |
| 446 }; | 454 }; |
| (...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2451 | 2459 |
| 2452 settings.hidden = !isVisible; | 2460 settings.hidden = !isVisible; |
| 2453 }; | 2461 }; |
| 2454 } | 2462 } |
| 2455 | 2463 |
| 2456 // Export | 2464 // Export |
| 2457 return { | 2465 return { |
| 2458 BrowserOptions: BrowserOptions | 2466 BrowserOptions: BrowserOptions |
| 2459 }; | 2467 }; |
| 2460 }); | 2468 }); |
| OLD | NEW |