| 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 /** | 5 /** |
| 6 * @fileoverview Display manager for WebUI OOBE and login. | 6 * @fileoverview Display manager for WebUI OOBE and login. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 // TODO(xiyuan): Find a better to share those constants. | 9 // TODO(xiyuan): Find a better to share those constants. |
| 10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; | 10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 | 408 |
| 409 var header = document.createElement('span'); | 409 var header = document.createElement('span'); |
| 410 header.id = 'header-' + screenId; | 410 header.id = 'header-' + screenId; |
| 411 header.textContent = el.header ? el.header : ''; | 411 header.textContent = el.header ? el.header : ''; |
| 412 header.className = 'header-section'; | 412 header.className = 'header-section'; |
| 413 $('header-sections').appendChild(header); | 413 $('header-sections').appendChild(header); |
| 414 | 414 |
| 415 var dot = document.createElement('div'); | 415 var dot = document.createElement('div'); |
| 416 dot.id = screenId + '-dot'; | 416 dot.id = screenId + '-dot'; |
| 417 dot.className = 'progdot'; | 417 dot.className = 'progdot'; |
| 418 $('progress-dots').appendChild(dot); | 418 var progressDots = $('progress-dots'); |
| 419 if (progressDots) |
| 420 progressDots.appendChild(dot); |
| 419 | 421 |
| 420 this.appendButtons_(el.buttons, screenId); | 422 this.appendButtons_(el.buttons, screenId); |
| 421 }, | 423 }, |
| 422 | 424 |
| 423 /** | 425 /** |
| 424 * Updates inner container size based on the size of the current screen and | 426 * Updates inner container size based on the size of the current screen and |
| 425 * other screens in the same group. | 427 * other screens in the same group. |
| 426 * Should be executed on screen change / screen size change. | 428 * Should be executed on screen change / screen size change. |
| 427 * @param {!HTMLElement} screen Screen that is being shown. | 429 * @param {!HTMLElement} screen Screen that is being shown. |
| 428 */ | 430 */ |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 */ | 757 */ |
| 756 DisplayManager.refocusCurrentPod = function() { | 758 DisplayManager.refocusCurrentPod = function() { |
| 757 $('pod-row').refocusCurrentPod(); | 759 $('pod-row').refocusCurrentPod(); |
| 758 }; | 760 }; |
| 759 | 761 |
| 760 // Export | 762 // Export |
| 761 return { | 763 return { |
| 762 DisplayManager: DisplayManager | 764 DisplayManager: DisplayManager |
| 763 }; | 765 }; |
| 764 }); | 766 }); |
| OLD | NEW |