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

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

Issue 423533003: Use PageManager in About page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 cr.define('help', function() {
6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager;
6 8
7 cr.define('help', function() {
8 /** 9 /**
9 * Encapsulated handling of the help page. 10 * Encapsulated handling of the About page. Called 'help' internally to avoid
11 * confusion with generic AboutUI (about:memory, about:sandbox, etc.).
10 */ 12 */
11 function HelpPage() {} 13 function HelpPage() {
14 Page.call(this, 'help', loadTimeData.getString('aboutTitle'),
15 'help-page');
16 }
12 17
13 cr.addSingletonGetter(HelpPage); 18 cr.addSingletonGetter(HelpPage);
14 19
15 HelpPage.prototype = { 20 HelpPage.prototype = {
16 __proto__: help.HelpBasePage.prototype, 21 __proto__: Page.prototype,
17 22
18 /** 23 /**
19 * True if after update powerwash button should be displayed. 24 * True if after update powerwash button should be displayed.
20 * @private 25 * @private
21 */ 26 */
22 powerwashAfterUpdate_: false, 27 powerwashAfterUpdate_: false,
23 28
24 /** 29 /**
25 * List of the channels names. 30 * List of the channel names.
26 * @private 31 * @private
27 */ 32 */
28 channelList_: ['dev-channel', 'beta-channel', 'stable-channel'], 33 channelList_: ['dev-channel', 'beta-channel', 'stable-channel'],
29 34
30 /** 35 /**
31 * Bubble for error messages and notifications.
32 * @private
33 */
34 bubble_: null,
35
36 /**
37 * Name of the channel the device is currently on. 36 * Name of the channel the device is currently on.
38 * @private 37 * @private
39 */ 38 */
40 currentChannel_: null, 39 currentChannel_: null,
41 40
42 /** 41 /**
43 * Name of the channel the device is supposed to be on. 42 * Name of the channel the device is supposed to be on.
44 * @private 43 * @private
45 */ 44 */
46 targetChannel_: null, 45 targetChannel_: null,
47 46
48 /** 47 /** @override */
49 * Perform initial setup. 48 initializePage: function() {
50 */ 49 Page.prototype.initializePage.call(this);
51 initialize: function() {
52 help.HelpBasePage.prototype.initialize.call(this, 'help-page');
53
54 var self = this;
55
56 uber.onContentFrameLoaded();
57
58 // Set the title.
59 uber.setTitle(loadTimeData.getString('aboutTitle'));
60 50
61 $('product-license').innerHTML = loadTimeData.getString('productLicense'); 51 $('product-license').innerHTML = loadTimeData.getString('productLicense');
62 if (cr.isChromeOS) { 52 if (cr.isChromeOS) {
63 $('product-os-license').innerHTML = 53 $('product-os-license').innerHTML =
64 loadTimeData.getString('productOsLicense'); 54 loadTimeData.getString('productOsLicense');
65 } 55 }
66 56
67 var productTOS = $('product-tos'); 57 var productTOS = $('product-tos');
68 if (productTOS) 58 if (productTOS)
69 productTOS.innerHTML = loadTimeData.getString('productTOS'); 59 productTOS.innerHTML = loadTimeData.getString('productTOS');
(...skipping 16 matching lines...) Expand all
86 this.maybeSetOnClick_($('relaunch'), function() { 76 this.maybeSetOnClick_($('relaunch'), function() {
87 chrome.send('relaunchNow'); 77 chrome.send('relaunchNow');
88 }); 78 });
89 if (cr.isChromeOS) { 79 if (cr.isChromeOS) {
90 this.maybeSetOnClick_($('relaunch-and-powerwash'), function() { 80 this.maybeSetOnClick_($('relaunch-and-powerwash'), function() {
91 chrome.send('relaunchAndPowerwash'); 81 chrome.send('relaunchAndPowerwash');
92 }); 82 });
93 83
94 this.channelTable_ = { 84 this.channelTable_ = {
95 'stable-channel': { 85 'stable-channel': {
96 'name': loadTimeData.getString('stable'), 86 'name': loadTimeData.getString('stable'),
97 'label': loadTimeData.getString('currentChannelStable'), 87 'label': loadTimeData.getString('currentChannelStable'),
98 }, 88 },
99 'beta-channel': { 89 'beta-channel': {
100 'name': loadTimeData.getString('beta'), 90 'name': loadTimeData.getString('beta'),
101 'label': loadTimeData.getString('currentChannelBeta') 91 'label': loadTimeData.getString('currentChannelBeta')
102 }, 92 },
103 'dev-channel': { 93 'dev-channel': {
104 'name': loadTimeData.getString('dev'), 94 'name': loadTimeData.getString('dev'),
105 'label': loadTimeData.getString('currentChannelDev') 95 'label': loadTimeData.getString('currentChannelDev')
106 } 96 }
107 }; 97 };
108 } 98 }
109 99
100 var self = this;
110 var channelChanger = $('channel-changer'); 101 var channelChanger = $('channel-changer');
111 if (channelChanger) { 102 if (channelChanger) {
112 channelChanger.onchange = function(event) { 103 channelChanger.onchange = function(event) {
113 self.setChannel_(event.target.value, false); 104 self.setChannel_(event.target.value, false);
114 }; 105 };
115 } 106 }
116 107
117 if (cr.isChromeOS) { 108 if (cr.isChromeOS) {
118 help.ChannelChangePage.getInstance().initialize(); 109 // Add event listener for the close button when shown as an overlay.
119 this.registerOverlay(help.ChannelChangePage.getInstance()); 110 if ($('about-done')) {
111 $('about-done').addEventListener('click', function() {
112 PageManager.closeOverlay();
113 });
114 }
120 115
121 cr.ui.overlay.setupOverlay($('overlay-container'));
122 cr.ui.overlay.globalInitialization();
123 $('overlay-container').addEventListener('cancelOverlay', function() {
124 self.closeOverlay();
125 });
126 $('change-channel').onclick = function() { 116 $('change-channel').onclick = function() {
127 self.showOverlay('channel-change-page'); 117 PageManager.showPageByName('channel-change-page', false);
128 }; 118 };
129 119
130 var channelChangeDisallowedError = document.createElement('div'); 120 var channelChangeDisallowedError = document.createElement('div');
131 channelChangeDisallowedError.className = 'channel-change-error-bubble'; 121 channelChangeDisallowedError.className = 'channel-change-error-bubble';
132 122
133 var channelChangeDisallowedIcon = document.createElement('div'); 123 var channelChangeDisallowedIcon = document.createElement('div');
134 channelChangeDisallowedIcon.classList.add('help-page-icon-large'); 124 channelChangeDisallowedIcon.classList.add('help-page-icon-large');
135 channelChangeDisallowedIcon.classList.add('channel-change-error-icon'); 125 channelChangeDisallowedIcon.classList.add('channel-change-error-icon');
136 channelChangeDisallowedError.appendChild(channelChangeDisallowedIcon); 126 channelChangeDisallowedError.appendChild(channelChangeDisallowedIcon);
137 127
138 var channelChangeDisallowedText = document.createElement('div'); 128 var channelChangeDisallowedText = document.createElement('div');
139 channelChangeDisallowedText.className = 'channel-change-error-text'; 129 channelChangeDisallowedText.className = 'channel-change-error-text';
140 channelChangeDisallowedText.textContent = 130 channelChangeDisallowedText.textContent =
141 loadTimeData.getString('channelChangeDisallowedMessage'); 131 loadTimeData.getString('channelChangeDisallowedMessage');
142 channelChangeDisallowedError.appendChild(channelChangeDisallowedText); 132 channelChangeDisallowedError.appendChild(channelChangeDisallowedText);
143 133
144 $('channel-change-disallowed-icon').onclick = function() { 134 $('channel-change-disallowed-icon').onclick = function() {
145 self.showBubble_(channelChangeDisallowedError, 135 PageManager.showBubble(channelChangeDisallowedError,
146 $('help-container'), 136 $('channel-change-disallowed-icon'),
147 $('channel-change-disallowed-icon'), 137 $('help-container'),
148 cr.ui.ArrowLocation.TOP_END); 138 cr.ui.ArrowLocation.TOP_END);
149 }; 139 };
150 } 140 }
151 141
152 cr.ui.FocusManager.disableMouseFocusOnButtons();
153 help.HelpFocusManager.getInstance().initialize();
154
155 // Attempt to update. 142 // Attempt to update.
156 chrome.send('onPageLoaded'); 143 chrome.send('onPageLoaded');
157 }, 144 },
158 145
159 /** 146 /** @override */
160 * Shows the bubble. 147 didHidePage: function() {
161 * @param {HTMLDivElement} content The content of the bubble. 148 if ($('more-info-container').className == 'visible')
Dan Beam 2014/08/06 18:30:54 nit: $('more-info-container').classList.contains('
michaelpg 2014/08/06 21:58:18 Done.
162 * @param {HTMLElement} target The element at which the bubble points. 149 this.toggleMoreInfo_();
163 * @param {HTMLElement} domSibling The element after which the bubble is
164 * added to the DOM.
165 * @param {cr.ui.ArrowLocation} location The arrow location.
166 * @private
167 */
168 showBubble_: function(content, domSibling, target, location) {
169 if (!cr.isChromeOS)
170 return;
171 this.hideBubble_();
172 var bubble = new cr.ui.AutoCloseBubble;
173 bubble.anchorNode = target;
174 bubble.domSibling = domSibling;
175 bubble.arrowLocation = location;
176 bubble.content = content;
177 bubble.show();
178 this.bubble_ = bubble;
179 }, 150 },
180 151
181 /** 152 /**
182 * Hides the bubble.
183 * @private
184 */
185 hideBubble_: function() {
186 if (!cr.isChromeOS)
187 return;
188 if (this.bubble_)
189 this.bubble_.hide();
190 },
191
192 /**
193 * Toggles the visible state of the 'More Info' section. 153 * Toggles the visible state of the 'More Info' section.
194 * @private 154 * @private
195 */ 155 */
196 toggleMoreInfo_: function() { 156 toggleMoreInfo_: function() {
197 var moreInfo = $('more-info-container'); 157 var moreInfo = $('more-info-container');
198 var visible = moreInfo.className == 'visible'; 158 var visible = moreInfo.className == 'visible';
199 moreInfo.className = visible ? '' : 'visible'; 159 moreInfo.className = visible ? '' : 'visible';
200 moreInfo.style.height = visible ? '' : moreInfo.scrollHeight + 'px'; 160 moreInfo.style.height = visible ? '' : moreInfo.scrollHeight + 'px';
201 moreInfo.addEventListener('webkitTransitionEnd', function(event) { 161 moreInfo.addEventListener('webkitTransitionEnd', function(event) {
202 $('more-info-expander').textContent = visible ? 162 $('more-info-expander').textContent = visible ?
203 loadTimeData.getString('showMoreInfo') : 163 loadTimeData.getString('showMoreInfo') :
204 loadTimeData.getString('hideMoreInfo'); 164 loadTimeData.getString('hideMoreInfo');
205 }); 165 });
206 }, 166 },
207 167
208 /** 168 /**
209 * Assigns |method| to the onclick property of |el| if |el| exists. 169 * Assigns |method| to the onclick property of |el| if |el| exists.
170 * @param {HTMLElement} el The element on which to set the click handler.
171 * @param {function} method The click handler.
210 * @private 172 * @private
211 */ 173 */
212 maybeSetOnClick_: function(el, method) { 174 maybeSetOnClick_: function(el, method) {
213 if (el) 175 if (el)
214 el.onclick = method; 176 el.onclick = method;
215 }, 177 },
216 178
217 /** 179 /**
218 * @private 180 * @param {string} state The state of the update.
181 * private
219 */ 182 */
220 setUpdateImage_: function(state) { 183 setUpdateImage_: function(state) {
221 $('update-status-icon').className = 'help-page-icon ' + state; 184 $('update-status-icon').className = 'help-page-icon ' + state;
222 }, 185 },
223 186
224 /** 187 /**
225 * @return {boolean} True, if new channel switcher UI is used, 188 * @return {boolean} True, if new channel switcher UI is used,
226 * false otherwise. 189 * false otherwise.
227 * @private 190 * @private
228 */ 191 */
229 isNewChannelSwitcherUI_: function() { 192 isNewChannelSwitcherUI_: function() {
230 return !loadTimeData.valueExists('disableNewChannelSwitcherUI'); 193 return !loadTimeData.valueExists('disableNewChannelSwitcherUI');
231 }, 194 },
232 195
233 /** 196 /**
234 * @return {boolean} True if target and current channels are not 197 * @return {boolean} True if target and current channels are not null and
235 * null and not equals 198 * not equal.
236 * @private 199 * @private
237 */ 200 */
238 channelsDiffer_: function() { 201 channelsDiffer_: function() {
239 var current = this.currentChannel_; 202 var current = this.currentChannel_;
240 var target = this.targetChannel_; 203 var target = this.targetChannel_;
241 return (current != null && target != null && current != target); 204 return (current != null && target != null && current != target);
242 }, 205 },
243 206
244 /** 207 /**
208 * @param {string} status The status of the update.
209 * @param {string} message Failure message to display.
245 * @private 210 * @private
246 */ 211 */
247 setUpdateStatus_: function(status, message) { 212 setUpdateStatus_: function(status, message) {
248 if (cr.isMac && 213 if (cr.isMac &&
249 $('update-status-message') && 214 $('update-status-message') &&
250 $('update-status-message').hidden) { 215 $('update-status-message').hidden) {
251 // Chrome has reached the end of the line on this system. The 216 // Chrome has reached the end of the line on this system. The
252 // update-obsolete-system message is displayed. No other auto-update 217 // update-obsolete-system message is displayed. No other auto-update
253 // status should be displayed. 218 // status should be displayed.
254 return; 219 return;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 container.hidden = status == 'disabled'; 269 container.hidden = status == 'disabled';
305 $('relaunch').hidden = 270 $('relaunch').hidden =
306 (status != 'nearly_updated') || !relaunchAndPowerwashHidden; 271 (status != 'nearly_updated') || !relaunchAndPowerwashHidden;
307 272
308 if (!cr.isMac) 273 if (!cr.isMac)
309 $('update-percentage').hidden = status != 'updating'; 274 $('update-percentage').hidden = status != 'updating';
310 } 275 }
311 }, 276 },
312 277
313 /** 278 /**
279 * @param {number} progress The percent completion.
314 * @private 280 * @private
315 */ 281 */
316 setProgress_: function(progress) { 282 setProgress_: function(progress) {
317 $('update-percentage').innerHTML = progress + '%'; 283 $('update-percentage').innerHTML = progress + '%';
318 }, 284 },
319 285
320 /** 286 /**
287 * @param {string} message The allowed connection types message.
321 * @private 288 * @private
322 */ 289 */
323 setAllowedConnectionTypesMsg_: function(message) { 290 setAllowedConnectionTypesMsg_: function(message) {
324 $('allowed-connection-types-message').innerText = message; 291 $('allowed-connection-types-message').innerText = message;
325 }, 292 },
326 293
327 /** 294 /**
295 * @param {boolean} visible Whether to show the message.
328 * @private 296 * @private
329 */ 297 */
330 showAllowedConnectionTypesMsg_: function(visible) { 298 showAllowedConnectionTypesMsg_: function(visible) {
331 $('allowed-connection-types-message').hidden = !visible; 299 $('allowed-connection-types-message').hidden = !visible;
332 }, 300 },
333 301
334 /** 302 /**
303 * @param {string} state The promote state to set.
335 * @private 304 * @private
336 */ 305 */
337 setPromotionState_: function(state) { 306 setPromotionState_: function(state) {
338 if (state == 'hidden') { 307 if (state == 'hidden') {
339 $('promote').hidden = true; 308 $('promote').hidden = true;
340 } else if (state == 'enabled') { 309 } else if (state == 'enabled') {
341 $('promote').disabled = false; 310 $('promote').disabled = false;
342 $('promote').hidden = false; 311 $('promote').hidden = false;
343 } else if (state == 'disabled') { 312 } else if (state == 'disabled') {
344 $('promote').disabled = true; 313 $('promote').disabled = true;
345 $('promote').hidden = false; 314 $('promote').hidden = false;
346 } 315 }
347 }, 316 },
348 317
349 /** 318 /**
319 * @param {boolean} obsolete Whether the system is obsolete.
350 * @private 320 * @private
351 */ 321 */
352 setObsoleteSystem_: function(obsolete) { 322 setObsoleteSystem_: function(obsolete) {
353 if (cr.isMac && $('update-obsolete-system-container')) { 323 if (cr.isMac && $('update-obsolete-system-container')) {
354 $('update-obsolete-system-container').hidden = !obsolete; 324 $('update-obsolete-system-container').hidden = !obsolete;
355 } 325 }
356 }, 326 },
357 327
358 /** 328 /**
329 * @param {boolean} endOfTheLine Train has rolled into the station.
Dan Beam 2014/08/06 18:30:54 Whether the train has rolled into the station.
michaelpg 2014/08/06 21:58:18 Done.
359 * @private 330 * @private
360 */ 331 */
361 setObsoleteSystemEndOfTheLine_: function(endOfTheLine) { 332 setObsoleteSystemEndOfTheLine_: function(endOfTheLine) {
362 if (cr.isMac && 333 if (cr.isMac &&
363 $('update-obsolete-system-container') && 334 $('update-obsolete-system-container') &&
364 !$('update-obsolete-system-container').hidden && 335 !$('update-obsolete-system-container').hidden &&
365 $('update-status-message')) { 336 $('update-status-message')) {
366 $('update-status-message').hidden = endOfTheLine; 337 $('update-status-message').hidden = endOfTheLine;
367 if (endOfTheLine) { 338 if (endOfTheLine) {
368 this.setUpdateImage_('failed'); 339 this.setUpdateImage_('failed');
369 } 340 }
370 } 341 }
371 }, 342 },
372 343
373 /** 344 /**
345 * @param {string} version Version of Chrome OS.
374 * @private 346 * @private
375 */ 347 */
376 setOSVersion_: function(version) { 348 setOSVersion_: function(version) {
377 if (!cr.isChromeOS) 349 if (!cr.isChromeOS)
378 console.error('OS version unsupported on non-CrOS'); 350 console.error('OS version unsupported on non-CrOS');
379 351
380 $('os-version').parentNode.hidden = (version == ''); 352 $('os-version').parentNode.hidden = (version == '');
381 $('os-version').textContent = version; 353 $('os-version').textContent = version;
382 }, 354 },
383 355
384 /** 356 /**
357 * @param {string} firmware Firmware on Chrome OS.
385 * @private 358 * @private
386 */ 359 */
387 setOSFirmware_: function(firmware) { 360 setOSFirmware_: function(firmware) {
388 if (!cr.isChromeOS) 361 if (!cr.isChromeOS)
389 console.error('OS firmware unsupported on non-CrOS'); 362 console.error('OS firmware unsupported on non-CrOS');
390 363
391 $('firmware').parentNode.hidden = (firmware == ''); 364 $('firmware').parentNode.hidden = (firmware == '');
392 $('firmware').textContent = firmware; 365 $('firmware').textContent = firmware;
393 }, 366 },
394 367
395 /** 368 /**
396 * Updates name of the current channel, i.e. the name of the 369 * Updates name of the current channel, i.e. the name of the
397 * channel the device is currently on. 370 * channel the device is currently on.
398 * @param {string} channel The name of the current channel 371 * @param {string} channel The name of the current channel.
399 * @private 372 * @private
400 */ 373 */
401 updateCurrentChannel_: function(channel) { 374 updateCurrentChannel_: function(channel) {
402 if (this.channelList_.indexOf(channel) < 0) 375 if (this.channelList_.indexOf(channel) < 0)
403 return; 376 return;
404 $('current-channel').textContent = loadTimeData.getStringF( 377 $('current-channel').textContent = loadTimeData.getStringF(
405 'currentChannel', this.channelTable_[channel].label); 378 'currentChannel', this.channelTable_[channel].label);
406 this.currentChannel_ = channel; 379 this.currentChannel_ = channel;
407 help.ChannelChangePage.updateCurrentChannel(channel); 380 help.ChannelChangePage.updateCurrentChannel(channel);
408 }, 381 },
409 382
410 /** 383 /**
411 * |enabled| is true if the release channel can be enabled. 384 * @param {boolean} enabled True if the release channel can be enabled.
412 * @private 385 * @private
413 */ 386 */
414 updateEnableReleaseChannel_: function(enabled) { 387 updateEnableReleaseChannel_: function(enabled) {
415 this.updateChannelChangerContainerVisibility_(enabled); 388 this.updateChannelChangerContainerVisibility_(enabled);
416 $('change-channel').disabled = !enabled; 389 $('change-channel').disabled = !enabled;
417 $('channel-change-disallowed-icon').hidden = enabled; 390 $('channel-change-disallowed-icon').hidden = enabled;
418 }, 391 },
419 392
420 /** 393 /**
421 * Sets the device target channel. 394 * Sets the device target channel.
422 * @param {string} channel The name of the target channel 395 * @param {string} channel The name of the target channel.
423 * @param {boolean} isPowerwashAllowed True iff powerwash is allowed 396 * @param {boolean} isPowerwashAllowed True iff powerwash is allowed.
424 * @private 397 * @private
425 */ 398 */
426 setChannel_: function(channel, isPowerwashAllowed) { 399 setChannel_: function(channel, isPowerwashAllowed) {
427 this.powerwashAfterUpdate_ = isPowerwashAllowed; 400 this.powerwashAfterUpdate_ = isPowerwashAllowed;
428 this.targetChannel_ = channel; 401 this.targetChannel_ = channel;
429 chrome.send('setChannel', [channel, isPowerwashAllowed]); 402 chrome.send('setChannel', [channel, isPowerwashAllowed]);
430 $('channel-change-confirmation').hidden = false; 403 $('channel-change-confirmation').hidden = false;
431 $('channel-change-confirmation').textContent = loadTimeData.getStringF( 404 $('channel-change-confirmation').textContent = loadTimeData.getStringF(
432 'channel-changed', this.channelTable_[channel].name); 405 'channel-changed', this.channelTable_[channel].name);
433 }, 406 },
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 }; 475 };
503 476
504 HelpPage.setOSVersion = function(version) { 477 HelpPage.setOSVersion = function(version) {
505 HelpPage.getInstance().setOSVersion_(version); 478 HelpPage.getInstance().setOSVersion_(version);
506 }; 479 };
507 480
508 HelpPage.setOSFirmware = function(firmware) { 481 HelpPage.setOSFirmware = function(firmware) {
509 HelpPage.getInstance().setOSFirmware_(firmware); 482 HelpPage.getInstance().setOSFirmware_(firmware);
510 }; 483 };
511 484
512 HelpPage.showOverlay = function(name) {
513 HelpPage.getInstance().showOverlay(name);
514 };
515
516 HelpPage.cancelOverlay = function() {
517 HelpPage.getInstance().closeOverlay();
518 };
519
520 HelpPage.getTopmostVisiblePage = function() {
521 return HelpPage.getInstance().getTopmostVisiblePage();
522 };
523
524 HelpPage.updateIsEnterpriseManaged = function(isEnterpriseManaged) { 485 HelpPage.updateIsEnterpriseManaged = function(isEnterpriseManaged) {
525 if (!cr.isChromeOS) 486 if (!cr.isChromeOS)
526 return; 487 return;
527 help.ChannelChangePage.updateIsEnterpriseManaged(isEnterpriseManaged); 488 help.ChannelChangePage.updateIsEnterpriseManaged(isEnterpriseManaged);
528 }; 489 };
529 490
530 HelpPage.updateCurrentChannel = function(channel) { 491 HelpPage.updateCurrentChannel = function(channel) {
531 if (!cr.isChromeOS) 492 if (!cr.isChromeOS)
532 return; 493 return;
533 HelpPage.getInstance().updateCurrentChannel_(channel); 494 HelpPage.getInstance().updateCurrentChannel_(channel);
(...skipping 19 matching lines...) Expand all
553 514
554 HelpPage.updateChannelChangePageContainerVisibility = function() { 515 HelpPage.updateChannelChangePageContainerVisibility = function() {
555 HelpPage.getInstance().updateChannelChangePageContainerVisibility_(); 516 HelpPage.getInstance().updateChannelChangePageContainerVisibility_();
556 }; 517 };
557 518
558 // Export 519 // Export
559 return { 520 return {
560 HelpPage: HelpPage 521 HelpPage: HelpPage
561 }; 522 };
562 }); 523 });
563
564 /**
565 * onload listener to initialize the HelpPage.
566 */
567 window.onload = function() {
568 help.HelpPage.getInstance().initialize();
569 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698