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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 loadTimeData.getString('productOsLicense'); | 65 loadTimeData.getString('productOsLicense'); |
66 } | 66 } |
67 | 67 |
68 var productTOS = $('product-tos'); | 68 var productTOS = $('product-tos'); |
69 if (productTOS) | 69 if (productTOS) |
70 productTOS.innerHTML = loadTimeData.getString('productTOS'); | 70 productTOS.innerHTML = loadTimeData.getString('productTOS'); |
71 | 71 |
72 $('get-help').onclick = function() { | 72 $('get-help').onclick = function() { |
73 chrome.send('openHelpPage'); | 73 chrome.send('openHelpPage'); |
74 }; | 74 }; |
75 <if expr="pp_ifdef('_google_chrome')"> | 75 <if expr="_google_chrome"> |
76 $('report-issue').onclick = function() { | 76 $('report-issue').onclick = function() { |
77 chrome.send('openFeedbackDialog'); | 77 chrome.send('openFeedbackDialog'); |
78 }; | 78 }; |
79 </if> | 79 </if> |
80 | 80 |
81 this.maybeSetOnClick_($('more-info-expander'), | 81 this.maybeSetOnClick_($('more-info-expander'), |
82 this.toggleMoreInfo_.bind(this)); | 82 this.toggleMoreInfo_.bind(this)); |
83 | 83 |
84 this.maybeSetOnClick_($('promote'), function() { | 84 this.maybeSetOnClick_($('promote'), function() { |
85 chrome.send('promoteUpdater'); | 85 chrome.send('promoteUpdater'); |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 HelpPage: HelpPage | 561 HelpPage: HelpPage |
562 }; | 562 }; |
563 }); | 563 }); |
564 | 564 |
565 /** | 565 /** |
566 * onload listener to initialize the HelpPage. | 566 * onload listener to initialize the HelpPage. |
567 */ | 567 */ |
568 window.onload = function() { | 568 window.onload = function() { |
569 help.HelpPage.getInstance().initialize(); | 569 help.HelpPage.getInstance().initialize(); |
570 }; | 570 }; |
OLD | NEW |