| 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.define('options', function() { | 5 cr.define('options', function() { |
| 6 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
| 7 var Page = cr.ui.pageManager.Page; | 7 var Page = cr.ui.pageManager.Page; |
| 8 var PageManager = cr.ui.pageManager.PageManager; | 8 var PageManager = cr.ui.pageManager.PageManager; |
| 9 var ArrayDataModel = cr.ui.ArrayDataModel; | 9 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 10 var RepeatingButton = cr.ui.RepeatingButton; | 10 var RepeatingButton = cr.ui.RepeatingButton; |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 PageManager.showPageByName('consumer-management-overlay'); | 462 PageManager.showPageByName('consumer-management-overlay'); |
| 463 }; | 463 }; |
| 464 } | 464 } |
| 465 | 465 |
| 466 // Easy Unlock section. | 466 // Easy Unlock section. |
| 467 if (loadTimeData.getBoolean('easyUnlockAllowed')) { | 467 if (loadTimeData.getBoolean('easyUnlockAllowed')) { |
| 468 $('easy-unlock-section').hidden = false; | 468 $('easy-unlock-section').hidden = false; |
| 469 $('easy-unlock-setup-button').onclick = function(event) { | 469 $('easy-unlock-setup-button').onclick = function(event) { |
| 470 chrome.send('launchEasyUnlockSetup'); | 470 chrome.send('launchEasyUnlockSetup'); |
| 471 }; | 471 }; |
| 472 $('easy-unlock-turn-off-button').onclick = function(event) { |
| 473 PageManager.showPageByName('easyUnlockTurnOffOverlay'); |
| 474 }; |
| 472 } | 475 } |
| 473 | 476 |
| 474 // Website Settings section. | 477 // Website Settings section. |
| 475 if (loadTimeData.getBoolean('websiteSettingsManagerEnabled')) { | 478 if (loadTimeData.getBoolean('websiteSettingsManagerEnabled')) { |
| 476 $('website-settings-section').hidden = false; | 479 $('website-settings-section').hidden = false; |
| 477 $('website-management-button').onclick = function(event) { | 480 $('website-management-button').onclick = function(event) { |
| 478 PageManager.showPageByName('websiteSettings'); | 481 PageManager.showPageByName('websiteSettings'); |
| 479 }; | 482 }; |
| 480 } | 483 } |
| 481 | 484 |
| (...skipping 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1910 BrowserOptions.getLoggedInUsername = function() { | 1913 BrowserOptions.getLoggedInUsername = function() { |
| 1911 return BrowserOptions.getInstance().username_; | 1914 return BrowserOptions.getInstance().username_; |
| 1912 }; | 1915 }; |
| 1913 } | 1916 } |
| 1914 | 1917 |
| 1915 // Export | 1918 // Export |
| 1916 return { | 1919 return { |
| 1917 BrowserOptions: BrowserOptions | 1920 BrowserOptions: BrowserOptions |
| 1918 }; | 1921 }; |
| 1919 }); | 1922 }); |
| OLD | NEW |