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 var localStrings = new LocalStrings(); | 8 var localStrings = new LocalStrings(); |
9 | 9 |
10 /** | 10 /** |
(...skipping 10 matching lines...) Expand all Loading... |
21 * Perform initial setup. | 21 * Perform initial setup. |
22 */ | 22 */ |
23 initialize: function() { | 23 initialize: function() { |
24 uber.onContentFrameLoaded(); | 24 uber.onContentFrameLoaded(); |
25 | 25 |
26 // Set the title. | 26 // Set the title. |
27 var title = localStrings.getString('helpTitle'); | 27 var title = localStrings.getString('helpTitle'); |
28 uber.invokeMethodOnParent('setTitle', {title: title}); | 28 uber.invokeMethodOnParent('setTitle', {title: title}); |
29 | 29 |
30 $('product-license').innerHTML = localStrings.getString('productLicense'); | 30 $('product-license').innerHTML = localStrings.getString('productLicense'); |
| 31 if (cr.isChromeOS) |
| 32 $('product-os-license').innerHTML = |
| 33 localStrings.getString('productOsLicense'); |
31 | 34 |
32 var productTOS = $('product-tos'); | 35 var productTOS = $('product-tos'); |
33 if (productTOS) | 36 if (productTOS) |
34 productTOS.innerHTML = localStrings.getString('productTOS'); | 37 productTOS.innerHTML = localStrings.getString('productTOS'); |
35 | 38 |
36 $('get-help').onclick = chrome.send.bind(chrome, 'openHelpPage'); | 39 $('get-help').onclick = chrome.send.bind(chrome, 'openHelpPage'); |
37 $('report-issue').onclick = | 40 $('report-issue').onclick = |
38 chrome.send.bind(chrome, 'openFeedbackDialog'); | 41 chrome.send.bind(chrome, 'openFeedbackDialog'); |
39 | 42 |
40 this.maybeSetOnClick_($('more-info-expander'), | 43 this.maybeSetOnClick_($('more-info-expander'), |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 HelpPage: HelpPage | 255 HelpPage: HelpPage |
253 }; | 256 }; |
254 }); | 257 }); |
255 | 258 |
256 /** | 259 /** |
257 * onload listener to initialize the HelpPage. | 260 * onload listener to initialize the HelpPage. |
258 */ | 261 */ |
259 window.onload = function() { | 262 window.onload = function() { |
260 help.HelpPage.getInstance().initialize(); | 263 help.HelpPage.getInstance().initialize(); |
261 }; | 264 }; |
OLD | NEW |