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

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

Issue 2535493002: Reduce webkit CSS prefixes in ui/ styles (Closed)
Patch Set: js Created 4 years 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698