| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 cr.define('options', function() { | |
| 6 var OptionsPage = options.OptionsPage; | |
| 7 | |
| 8 /** | |
| 9 * ManagedUserLearnMore class. | |
| 10 * Encapsulated handling of the 'Learn more...' overlay page. | |
| 11 * @constructor | |
| 12 * @class | |
| 13 */ | |
| 14 function ManagedUserLearnMoreOverlay() { | |
| 15 OptionsPage.call(this, 'managedUserLearnMore', | |
| 16 loadTimeData.getString('managedUserLearnMoreTitle'), | |
| 17 'managed-user-learn-more'); | |
| 18 }; | |
| 19 | |
| 20 cr.addSingletonGetter(ManagedUserLearnMoreOverlay); | |
| 21 | |
| 22 ManagedUserLearnMoreOverlay.prototype = { | |
| 23 // Inherit from OptionsPage. | |
| 24 __proto__: OptionsPage.prototype, | |
| 25 | |
| 26 /** @override */ | |
| 27 initializePage: function() { | |
| 28 OptionsPage.prototype.initializePage.call(this); | |
| 29 | |
| 30 $('managed-user-learn-more-done').onclick = function(event) { | |
| 31 OptionsPage.closeOverlay(); | |
| 32 }; | |
| 33 }, | |
| 34 }; | |
| 35 | |
| 36 // Export | |
| 37 return { | |
| 38 ManagedUserLearnMoreOverlay: ManagedUserLearnMoreOverlay, | |
| 39 }; | |
| 40 }); | |
| OLD | NEW |