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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } | 248 } |
249 }, | 249 }, |
250 | 250 |
| 251 get forceKeyboardFlow() { |
| 252 return this.forceKeyboardFlow_; |
| 253 }, |
| 254 |
251 /** | 255 /** |
252 * Shows/hides version labels. | 256 * Shows/hides version labels. |
253 * @param {boolean} show Whether labels should be visible by default. If | 257 * @param {boolean} show Whether labels should be visible by default. If |
254 * false, visibility can be toggled by ACCELERATOR_VERSION. | 258 * false, visibility can be toggled by ACCELERATOR_VERSION. |
255 */ | 259 */ |
256 showVersion: function(show) { | 260 showVersion: function(show) { |
257 $('version-labels').hidden = !show; | 261 $('version-labels').hidden = !show; |
258 this.allowToggleVersion_ = !show; | 262 this.allowToggleVersion_ = !show; |
259 }, | 263 }, |
260 | 264 |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 */ | 965 */ |
962 DisplayManager.refocusCurrentPod = function() { | 966 DisplayManager.refocusCurrentPod = function() { |
963 $('pod-row').refocusCurrentPod(); | 967 $('pod-row').refocusCurrentPod(); |
964 }; | 968 }; |
965 | 969 |
966 // Export | 970 // Export |
967 return { | 971 return { |
968 DisplayManager: DisplayManager | 972 DisplayManager: DisplayManager |
969 }; | 973 }; |
970 }); | 974 }); |
OLD | NEW |