Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: chrome/browser/resources/options/supervised_user_learn_more.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 7
8 /** 8 /**
9 * SupervisedUserLearnMore class. 9 * SupervisedUserLearnMore class.
10 * Encapsulated handling of the 'Learn more...' overlay page. 10 * Encapsulated handling of the 'Learn more...' overlay page.
11 * @constructor 11 * @constructor
12 * @extends {cr.ui.pageManager.Page} 12 * @extends {cr.ui.pageManager.Page}
13 */ 13 */
14 function SupervisedUserLearnMoreOverlay() { 14 function SupervisedUserLearnMoreOverlay() {
15 Page.call(this, 'supervisedUserLearnMore', 15 Page.call(
16 loadTimeData.getString('supervisedUserLearnMoreTitle'), 16 this, 'supervisedUserLearnMore',
17 'supervised-user-learn-more'); 17 loadTimeData.getString('supervisedUserLearnMoreTitle'),
18 'supervised-user-learn-more');
18 } 19 }
19 20
20 cr.addSingletonGetter(SupervisedUserLearnMoreOverlay); 21 cr.addSingletonGetter(SupervisedUserLearnMoreOverlay);
21 22
22 SupervisedUserLearnMoreOverlay.prototype = { 23 SupervisedUserLearnMoreOverlay.prototype = {
23 // Inherit from Page. 24 // Inherit from Page.
24 __proto__: Page.prototype, 25 __proto__: Page.prototype,
25 26
26 /** @override */ 27 /** @override */
27 initializePage: function() { 28 initializePage: function() {
28 Page.prototype.initializePage.call(this); 29 Page.prototype.initializePage.call(this);
29 30
30 $('supervised-user-learn-more-done').onclick = function(event) { 31 $('supervised-user-learn-more-done').onclick = function(event) {
31 cr.ui.pageManager.PageManager.closeOverlay(); 32 cr.ui.pageManager.PageManager.closeOverlay();
32 }; 33 };
33 }, 34 },
34 }; 35 };
35 36
36 // Export 37 // Export
37 return { 38 return {
38 SupervisedUserLearnMoreOverlay: SupervisedUserLearnMoreOverlay, 39 SupervisedUserLearnMoreOverlay: SupervisedUserLearnMoreOverlay,
39 }; 40 };
40 }); 41 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698