Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / resources / options / managed_user_learn_more.js
blobab9d76ddd781ae8798bb0cfba0597fa443f8b50d
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.
5 cr.define('options', function() {
6   var OptionsPage = options.OptionsPage;
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   };
20   cr.addSingletonGetter(ManagedUserLearnMoreOverlay);
22   ManagedUserLearnMoreOverlay.prototype = {
23     // Inherit from OptionsPage.
24     __proto__: OptionsPage.prototype,
26     /**
27      * Initialize the page.
28      */
29     initializePage: function() {
30       OptionsPage.prototype.initializePage.call(this);
32       $('managed-user-learn-more-done').onclick = function(event) {
33         OptionsPage.closeOverlay();
34       };
35     },
36   };
38   // Export
39   return {
40     ManagedUserLearnMoreOverlay: ManagedUserLearnMoreOverlay,
41   };
42 });