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 <include src="../uber/uber_utils.js"> | 5 <include src="../uber/uber_utils.js"> |
6 | 6 |
7 cr.define('help', function() { | 7 cr.define('help', function() { |
8 /** | 8 /** |
9 * Encapsulated handling of the help page. | 9 * Encapsulated handling of the help page. |
10 */ | 10 */ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 * Perform initial setup. | 49 * Perform initial setup. |
50 */ | 50 */ |
51 initialize: function() { | 51 initialize: function() { |
52 help.HelpBasePage.prototype.initialize.call(this, 'help-page'); | 52 help.HelpBasePage.prototype.initialize.call(this, 'help-page'); |
53 | 53 |
54 var self = this; | 54 var self = this; |
55 | 55 |
56 uber.onContentFrameLoaded(); | 56 uber.onContentFrameLoaded(); |
57 | 57 |
58 // Set the title. | 58 // Set the title. |
59 uber.setTitle(loadTimeData.getString('helpTitle')); | 59 uber.setTitle(loadTimeData.getString('aboutTitle')); |
60 | 60 |
61 $('product-license').innerHTML = loadTimeData.getString('productLicense'); | 61 $('product-license').innerHTML = loadTimeData.getString('productLicense'); |
62 if (cr.isChromeOS) { | 62 if (cr.isChromeOS) { |
63 $('product-os-license').innerHTML = | 63 $('product-os-license').innerHTML = |
64 loadTimeData.getString('productOsLicense'); | 64 loadTimeData.getString('productOsLicense'); |
65 } | 65 } |
66 | 66 |
67 var productTOS = $('product-tos'); | 67 var productTOS = $('product-tos'); |
68 if (productTOS) | 68 if (productTOS) |
69 productTOS.innerHTML = loadTimeData.getString('productTOS'); | 69 productTOS.innerHTML = loadTimeData.getString('productTOS'); |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 HelpPage: HelpPage | 560 HelpPage: HelpPage |
561 }; | 561 }; |
562 }); | 562 }); |
563 | 563 |
564 /** | 564 /** |
565 * onload listener to initialize the HelpPage. | 565 * onload listener to initialize the HelpPage. |
566 */ | 566 */ |
567 window.onload = function() { | 567 window.onload = function() { |
568 help.HelpPage.getInstance().initialize(); | 568 help.HelpPage.getInstance().initialize(); |
569 }; | 569 }; |
OLD | NEW |