| OLD | NEW |
| 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('help', function() { | 5 cr.define('help', function() { |
| 6 var Page = cr.ui.pageManager.Page; | 6 var Page = cr.ui.pageManager.Page; |
| 7 var PageManager = cr.ui.pageManager.PageManager; | 7 var PageManager = cr.ui.pageManager.PageManager; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Encapsulated handling of the About page. Called 'help' internally to avoid | 10 * Encapsulated handling of the About page. Called 'help' internally to avoid |
| 11 * confusion with generic AboutUI (about:memory, about:sandbox, etc.). | 11 * confusion with generic AboutUI (about:version, about:sandbox, etc.). |
| 12 */ | 12 */ |
| 13 function HelpPage() { | 13 function HelpPage() { |
| 14 var id = loadTimeData.valueExists('aboutOverlayTabTitle') ? | 14 var id = loadTimeData.valueExists('aboutOverlayTabTitle') ? |
| 15 'aboutOverlayTabTitle' : 'aboutTitle'; | 15 'aboutOverlayTabTitle' : 'aboutTitle'; |
| 16 Page.call(this, 'help', loadTimeData.getString(id), 'help-page'); | 16 Page.call(this, 'help', loadTimeData.getString(id), 'help-page'); |
| 17 } | 17 } |
| 18 | 18 |
| 19 cr.addSingletonGetter(HelpPage); | 19 cr.addSingletonGetter(HelpPage); |
| 20 | 20 |
| 21 HelpPage.prototype = { | 21 HelpPage.prototype = { |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 HelpPage.setRegulatoryLabelText = function(text) { | 712 HelpPage.setRegulatoryLabelText = function(text) { |
| 713 assert(cr.isChromeOS); | 713 assert(cr.isChromeOS); |
| 714 HelpPage.getInstance().setRegulatoryLabelText_(text); | 714 HelpPage.getInstance().setRegulatoryLabelText_(text); |
| 715 }; | 715 }; |
| 716 | 716 |
| 717 // Export | 717 // Export |
| 718 return { | 718 return { |
| 719 HelpPage: HelpPage | 719 HelpPage: HelpPage |
| 720 }; | 720 }; |
| 721 }); | 721 }); |
| OLD | NEW |