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 var title = loadTimeData.getString('helpTitle'); | 59 uber.setTitle(loadTimeData.getString('helpTitle')); |
60 uber.invokeMethodOnParent('setTitle', {title: title}); | |
61 | 60 |
62 $('product-license').innerHTML = loadTimeData.getString('productLicense'); | 61 $('product-license').innerHTML = loadTimeData.getString('productLicense'); |
63 if (cr.isChromeOS) { | 62 if (cr.isChromeOS) { |
64 $('product-os-license').innerHTML = | 63 $('product-os-license').innerHTML = |
65 loadTimeData.getString('productOsLicense'); | 64 loadTimeData.getString('productOsLicense'); |
66 } | 65 } |
67 | 66 |
68 var productTOS = $('product-tos'); | 67 var productTOS = $('product-tos'); |
69 if (productTOS) | 68 if (productTOS) |
70 productTOS.innerHTML = loadTimeData.getString('productTOS'); | 69 productTOS.innerHTML = loadTimeData.getString('productTOS'); |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 HelpPage: HelpPage | 560 HelpPage: HelpPage |
562 }; | 561 }; |
563 }); | 562 }); |
564 | 563 |
565 /** | 564 /** |
566 * onload listener to initialize the HelpPage. | 565 * onload listener to initialize the HelpPage. |
567 */ | 566 */ |
568 window.onload = function() { | 567 window.onload = function() { |
569 help.HelpPage.getInstance().initialize(); | 568 help.HelpPage.getInstance().initialize(); |
570 }; | 569 }; |
OLD | NEW |