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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 loadTimeData.getString('productOsLicense'); | 63 loadTimeData.getString('productOsLicense'); |
64 } | 64 } |
65 | 65 |
66 var productTOS = $('product-tos'); | 66 var productTOS = $('product-tos'); |
67 if (productTOS) | 67 if (productTOS) |
68 productTOS.innerHTML = loadTimeData.getString('productTOS'); | 68 productTOS.innerHTML = loadTimeData.getString('productTOS'); |
69 | 69 |
70 $('get-help').onclick = function() { | 70 $('get-help').onclick = function() { |
71 chrome.send('openHelpPage'); | 71 chrome.send('openHelpPage'); |
72 }; | 72 }; |
| 73 <if expr="pp_ifdef('_google_chrome')"> |
73 $('report-issue').onclick = function() { | 74 $('report-issue').onclick = function() { |
74 chrome.send('openFeedbackDialog'); | 75 chrome.send('openFeedbackDialog'); |
75 }; | 76 }; |
| 77 </if> |
76 | 78 |
77 this.maybeSetOnClick_($('more-info-expander'), | 79 this.maybeSetOnClick_($('more-info-expander'), |
78 this.toggleMoreInfo_.bind(this)); | 80 this.toggleMoreInfo_.bind(this)); |
79 | 81 |
80 this.maybeSetOnClick_($('promote'), function() { | 82 this.maybeSetOnClick_($('promote'), function() { |
81 chrome.send('promoteUpdater'); | 83 chrome.send('promoteUpdater'); |
82 }); | 84 }); |
83 this.maybeSetOnClick_($('relaunch'), function() { | 85 this.maybeSetOnClick_($('relaunch'), function() { |
84 chrome.send('relaunchNow'); | 86 chrome.send('relaunchNow'); |
85 }); | 87 }); |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 }); | 535 }); |
534 | 536 |
535 /** | 537 /** |
536 * onload listener to initialize the HelpPage. | 538 * onload listener to initialize the HelpPage. |
537 */ | 539 */ |
538 window.onload = function() { | 540 window.onload = function() { |
539 help.HelpPage.getInstance().initialize(); | 541 help.HelpPage.getInstance().initialize(); |
540 if (cr.isChromeOS) | 542 if (cr.isChromeOS) |
541 help.ChannelChangePage.getInstance().initialize(); | 543 help.ChannelChangePage.getInstance().initialize(); |
542 }; | 544 }; |
OLD | NEW |