| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 option.selected = true; | 205 option.selected = true; |
| 206 } | 206 } |
| 207 }, | 207 }, |
| 208 | 208 |
| 209 /** | 209 /** |
| 210 * @private | 210 * @private |
| 211 */ | 211 */ |
| 212 setReleaseChannel_: function(channel) { | 212 setReleaseChannel_: function(channel) { |
| 213 chrome.send('setReleaseTrack', [channel]); | 213 chrome.send('setReleaseTrack', [channel]); |
| 214 }, | 214 }, |
| 215 |
| 216 /** |
| 217 * Sets the value of the "Last Updated" field of the "More Info" section. |
| 218 * @param {String} lastUpdated The date of the last update. |
| 219 * @private |
| 220 */ |
| 221 setLastUpdated_: function(lastUpdated) { |
| 222 $('last-updated').textContent = lastUpdated; |
| 223 }, |
| 215 }; | 224 }; |
| 216 | 225 |
| 217 HelpPage.setUpdateStatus = function(status, message) { | 226 HelpPage.setUpdateStatus = function(status, message) { |
| 218 HelpPage.getInstance().setUpdateStatus_(status, message); | 227 HelpPage.getInstance().setUpdateStatus_(status, message); |
| 219 }; | 228 }; |
| 220 | 229 |
| 221 HelpPage.setProgress = function(progress) { | 230 HelpPage.setProgress = function(progress) { |
| 222 HelpPage.getInstance().setProgress_(progress); | 231 HelpPage.getInstance().setProgress_(progress); |
| 223 }; | 232 }; |
| 224 | 233 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 243 }; | 252 }; |
| 244 | 253 |
| 245 HelpPage.updateEnableReleaseChannel = function(enabled) { | 254 HelpPage.updateEnableReleaseChannel = function(enabled) { |
| 246 HelpPage.getInstance().updateEnableReleaseChannel_(enabled); | 255 HelpPage.getInstance().updateEnableReleaseChannel_(enabled); |
| 247 }; | 256 }; |
| 248 | 257 |
| 249 HelpPage.setReleaseChannel = function(channel) { | 258 HelpPage.setReleaseChannel = function(channel) { |
| 250 HelpPage.getInstance().setReleaseChannel_(channel); | 259 HelpPage.getInstance().setReleaseChannel_(channel); |
| 251 }; | 260 }; |
| 252 | 261 |
| 262 HelpPage.setLastUpdated = function(lastUpdated) { |
| 263 HelpPage.getInstance().setLastUpdated_(lastUpdated); |
| 264 } |
| 265 |
| 253 // Export | 266 // Export |
| 254 return { | 267 return { |
| 255 HelpPage: HelpPage | 268 HelpPage: HelpPage |
| 256 }; | 269 }; |
| 257 }); | 270 }); |
| 258 | 271 |
| 259 /** | 272 /** |
| 260 * onload listener to initialize the HelpPage. | 273 * onload listener to initialize the HelpPage. |
| 261 */ | 274 */ |
| 262 window.onload = function() { | 275 window.onload = function() { |
| 263 help.HelpPage.getInstance().initialize(); | 276 help.HelpPage.getInstance().initialize(); |
| 264 }; | 277 }; |
| OLD | NEW |