| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 if (maxHeight < bubbleOffsetHeight) | 239 if (maxHeight < bubbleOffsetHeight) |
| 240 attachment = cr.ui.Bubble.Attachment.TOP; | 240 attachment = cr.ui.Bubble.Attachment.TOP; |
| 241 } else { | 241 } else { |
| 242 // Move error bubble if it doesn't fit screen. | 242 // Move error bubble if it doesn't fit screen. |
| 243 if (maxWidth < bubbleOffsetWidth) { | 243 if (maxWidth < bubbleOffsetWidth) { |
| 244 bubblePositioningPadding = 2; | 244 bubblePositioningPadding = 2; |
| 245 attachment = cr.ui.Bubble.Attachment.LEFT; | 245 attachment = cr.ui.Bubble.Attachment.LEFT; |
| 246 } | 246 } |
| 247 } | 247 } |
| 248 var showBubbleCallback = function() { | 248 var showBubbleCallback = function() { |
| 249 activatedPod.removeEventListener("webkitTransitionEnd", | 249 activatedPod.removeEventListener("transitionend", |
| 250 showBubbleCallback); | 250 showBubbleCallback); |
| 251 $('bubble').showContentForElement(bubbleAnchor, | 251 $('bubble').showContentForElement(bubbleAnchor, |
| 252 attachment, | 252 attachment, |
| 253 error, | 253 error, |
| 254 BUBBLE_OFFSET, | 254 BUBBLE_OFFSET, |
| 255 bubblePositioningPadding, true); | 255 bubblePositioningPadding, true); |
| 256 }; | 256 }; |
| 257 activatedPod.addEventListener("webkitTransitionEnd", | 257 activatedPod.addEventListener("transitionend", |
| 258 showBubbleCallback); | 258 showBubbleCallback); |
| 259 ensureTransitionEndEvent(activatedPod); | 259 ensureTransitionEndEvent(activatedPod); |
| 260 } | 260 } |
| 261 }, | 261 }, |
| 262 | 262 |
| 263 /** | 263 /** |
| 264 * Loads the PIN keyboard if any of the users can login with a PIN. Disables | 264 * Loads the PIN keyboard if any of the users can login with a PIN. Disables |
| 265 * the PIN keyboard for users who are not allowed to use PIN unlock. | 265 * the PIN keyboard for users who are not allowed to use PIN unlock. |
| 266 * @param {array} users Array of user instances. | 266 * @param {array} users Array of user instances. |
| 267 */ | 267 */ |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 * @param {string} userID The user ID of the public session | 465 * @param {string} userID The user ID of the public session |
| 466 * @param {string} locale The locale to which this list of keyboard layouts | 466 * @param {string} locale The locale to which this list of keyboard layouts |
| 467 * applies | 467 * applies |
| 468 * @param {!Object} list List of available keyboard layouts | 468 * @param {!Object} list List of available keyboard layouts |
| 469 */ | 469 */ |
| 470 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 470 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
| 471 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 471 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
| 472 } | 472 } |
| 473 }; | 473 }; |
| 474 }); | 474 }); |
| OLD | NEW |