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

Side by Side Diff: chrome/browser/resources/help/help.js

Issue 9705092: Add IDS_ABOUT_CROS_VERSION_LICENSE support back to chrome://chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: retry Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/help/help.html ('k') | chrome/browser/ui/webui/help/help_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/help/help.html ('k') | chrome/browser/ui/webui/help/help_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698