Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: ui/login/account_picker/screen_account_picker.js

Issue 2691883002: Uprefix CSS transitions in ui/ and chrome/ styles (Closed)
Patch Set: transitions only Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « ui/login/account_picker/screen_account_picker.css ('k') | ui/login/account_picker/user_pod_row.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698