| 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 Account picker screen implementation. | 6 * @fileoverview Account picker screen implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 login.createScreen('AccountPickerScreen', 'account-picker', function() { | 9 login.createScreen('AccountPickerScreen', 'account-picker', function() { |
| 10 /** | 10 /** |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 if (maxHeight < bubbleOffsetHeight) | 243 if (maxHeight < bubbleOffsetHeight) |
| 244 attachment = cr.ui.Bubble.Attachment.TOP; | 244 attachment = cr.ui.Bubble.Attachment.TOP; |
| 245 } else { | 245 } else { |
| 246 // Move error bubble if it doesn't fit screen. | 246 // Move error bubble if it doesn't fit screen. |
| 247 if (maxWidth < bubbleOffsetWidth) { | 247 if (maxWidth < bubbleOffsetWidth) { |
| 248 bubblePositioningPadding = 2; | 248 bubblePositioningPadding = 2; |
| 249 attachment = cr.ui.Bubble.Attachment.LEFT; | 249 attachment = cr.ui.Bubble.Attachment.LEFT; |
| 250 } | 250 } |
| 251 } | 251 } |
| 252 var showBubbleCallback = function() { | 252 var showBubbleCallback = function() { |
| 253 activatedPod.removeEventListener("webkitTransitionEnd", | 253 activatedPod.removeEventListener("transitionend", |
| 254 showBubbleCallback); | 254 showBubbleCallback); |
| 255 $('bubble').showContentForElement(bubbleAnchor, | 255 $('bubble').showContentForElement(bubbleAnchor, |
| 256 attachment, | 256 attachment, |
| 257 error, | 257 error, |
| 258 BUBBLE_OFFSET, | 258 BUBBLE_OFFSET, |
| 259 bubblePositioningPadding, true); | 259 bubblePositioningPadding, true); |
| 260 }; | 260 }; |
| 261 activatedPod.addEventListener("webkitTransitionEnd", | 261 activatedPod.addEventListener("transitionend", |
| 262 showBubbleCallback); | 262 showBubbleCallback); |
| 263 ensureTransitionEndEvent(activatedPod); | 263 ensureTransitionEndEvent(activatedPod); |
| 264 } | 264 } |
| 265 }, | 265 }, |
| 266 | 266 |
| 267 /** | 267 /** |
| 268 * Loads the PIN keyboard if any of the users can login with a PIN. Disables | 268 * Loads the PIN keyboard if any of the users can login with a PIN. Disables |
| 269 * the PIN keyboard for users who are not allowed to use PIN unlock. | 269 * the PIN keyboard for users who are not allowed to use PIN unlock. |
| 270 * @param {array} users Array of user instances. | 270 * @param {array} users Array of user instances. |
| 271 */ | 271 */ |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 * @param {string} userID The user ID of the public session | 477 * @param {string} userID The user ID of the public session |
| 478 * @param {string} locale The locale to which this list of keyboard layouts | 478 * @param {string} locale The locale to which this list of keyboard layouts |
| 479 * applies | 479 * applies |
| 480 * @param {!Object} list List of available keyboard layouts | 480 * @param {!Object} list List of available keyboard layouts |
| 481 */ | 481 */ |
| 482 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 482 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
| 483 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 483 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
| 484 } | 484 } |
| 485 }; | 485 }; |
| 486 }); | 486 }); |
| OLD | NEW |