| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 /** | 239 /** |
| 240 * Forces keyboard based OOBE navigation. | 240 * Forces keyboard based OOBE navigation. |
| 241 * @param {boolean} value True if keyboard navigation flow is forced. | 241 * @param {boolean} value True if keyboard navigation flow is forced. |
| 242 */ | 242 */ |
| 243 set forceKeyboardFlow(value) { | 243 set forceKeyboardFlow(value) { |
| 244 this.forceKeyboardFlow_ = value; | 244 this.forceKeyboardFlow_ = value; |
| 245 if (value) { | 245 if (value) { |
| 246 keyboard.initializeKeyboardFlow(); | 246 keyboard.initializeKeyboardFlow(); |
| 247 cr.ui.DropDown.enableKeyboardFlow(); | 247 cr.ui.DropDown.enableKeyboardFlow(); |
| 248 for (var i = 0; i < this.screens_.length; ++i) { |
| 249 var screen = $(this.screens_[i]); |
| 250 if (screen.enableKeyboardFlow) |
| 251 screen.enableKeyboardFlow(); |
| 252 } |
| 248 } | 253 } |
| 249 }, | 254 }, |
| 250 | 255 |
| 251 /** | 256 /** |
| 252 * Shows/hides version labels. | 257 * Shows/hides version labels. |
| 253 * @param {boolean} show Whether labels should be visible by default. If | 258 * @param {boolean} show Whether labels should be visible by default. If |
| 254 * false, visibility can be toggled by ACCELERATOR_VERSION. | 259 * false, visibility can be toggled by ACCELERATOR_VERSION. |
| 255 */ | 260 */ |
| 256 showVersion: function(show) { | 261 showVersion: function(show) { |
| 257 $('version-labels').hidden = !show; | 262 $('version-labels').hidden = !show; |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 */ | 966 */ |
| 962 DisplayManager.refocusCurrentPod = function() { | 967 DisplayManager.refocusCurrentPod = function() { |
| 963 $('pod-row').refocusCurrentPod(); | 968 $('pod-row').refocusCurrentPod(); |
| 964 }; | 969 }; |
| 965 | 970 |
| 966 // Export | 971 // Export |
| 967 return { | 972 return { |
| 968 DisplayManager: DisplayManager | 973 DisplayManager: DisplayManager |
| 969 }; | 974 }; |
| 970 }); | 975 }); |
| OLD | NEW |