| OLD | NEW |
| 1 // Copyright 2014 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 /** | 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 showVersion: function(show) { | 319 showVersion: function(show) { |
| 320 $('version-labels').hidden = !show; | 320 $('version-labels').hidden = !show; |
| 321 this.allowToggleVersion_ = !show; | 321 this.allowToggleVersion_ = !show; |
| 322 }, | 322 }, |
| 323 | 323 |
| 324 /** | 324 /** |
| 325 * Handle accelerators. | 325 * Handle accelerators. |
| 326 * @param {string} name Accelerator name. | 326 * @param {string} name Accelerator name. |
| 327 */ | 327 */ |
| 328 handleAccelerator: function(name) { | 328 handleAccelerator: function(name) { |
| 329 if (this.currentScreen.ignoreAccelerators) { |
| 330 return; |
| 331 } |
| 329 var currentStepId = this.screens_[this.currentStep_]; | 332 var currentStepId = this.screens_[this.currentStep_]; |
| 330 if (name == ACCELERATOR_CANCEL) { | 333 if (name == ACCELERATOR_CANCEL) { |
| 331 if (this.currentScreen.cancel) { | 334 if (this.currentScreen.cancel) { |
| 332 this.currentScreen.cancel(); | 335 this.currentScreen.cancel(); |
| 333 } | 336 } |
| 334 } else if (name == ACCELERATOR_ENROLLMENT) { | 337 } else if (name == ACCELERATOR_ENROLLMENT) { |
| 335 if (currentStepId == SCREEN_GAIA_SIGNIN || | 338 if (currentStepId == SCREEN_GAIA_SIGNIN || |
| 336 currentStepId == SCREEN_ACCOUNT_PICKER) { | 339 currentStepId == SCREEN_ACCOUNT_PICKER) { |
| 337 chrome.send('toggleEnrollmentScreen'); | 340 chrome.send('toggleEnrollmentScreen'); |
| 338 } else if (currentStepId == SCREEN_OOBE_NETWORK || | 341 } else if (currentStepId == SCREEN_OOBE_NETWORK || |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 */ | 1041 */ |
| 1039 DisplayManager.refocusCurrentPod = function() { | 1042 DisplayManager.refocusCurrentPod = function() { |
| 1040 $('pod-row').refocusCurrentPod(); | 1043 $('pod-row').refocusCurrentPod(); |
| 1041 }; | 1044 }; |
| 1042 | 1045 |
| 1043 // Export | 1046 // Export |
| 1044 return { | 1047 return { |
| 1045 DisplayManager: DisplayManager | 1048 DisplayManager: DisplayManager |
| 1046 }; | 1049 }; |
| 1047 }); | 1050 }); |
| OLD | NEW |