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

Side by Side Diff: chrome/browser/resources/chromeos/login/user_pod_row.js

Issue 10448105: Revert "Added support for animated/nonanimated user image. There are no" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 User pod row implementation. 6 * @fileoverview User pod row implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 this.passwordElement.classList[empty ? 'add' : 'remove']('empty'); 345 this.passwordElement.classList[empty ? 'add' : 'remove']('empty');
346 }, 346 },
347 347
348 /** 348 /**
349 * Updates the image element of the user. 349 * Updates the image element of the user.
350 */ 350 */
351 updateUserImage: function() { 351 updateUserImage: function() {
352 this.imageElement.src = this.isGuest ? 352 this.imageElement.src = this.isGuest ?
353 'chrome://theme/IDR_LOGIN_GUEST' : 353 'chrome://theme/IDR_LOGIN_GUEST' :
354 'chrome://userimage/' + this.user.username + 354 'chrome://userimage/' + this.user.username +
355 '?id=' + (new Date()).getTime() + '&animated'; 355 '?id=' + (new Date()).getTime();
356 }, 356 },
357 357
358 /** 358 /**
359 * Focuses on input element. 359 * Focuses on input element.
360 */ 360 */
361 focusInput: function() { 361 focusInput: function() {
362 if (!this.isGuest) { 362 if (!this.isGuest) {
363 var needSignin = this.needGaiaSignin; 363 var needSignin = this.needGaiaSignin;
364 this.signinButtonElement.hidden = !needSignin; 364 this.signinButtonElement.hidden = !needSignin;
365 this.passwordElement.hidden = needSignin; 365 this.passwordElement.hidden = needSignin;
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 if (this.podsWithPendingImages_.length == 0) { 867 if (this.podsWithPendingImages_.length == 0) {
868 chrome.send('userImagesLoaded'); 868 chrome.send('userImagesLoaded');
869 } 869 }
870 } 870 }
871 }; 871 };
872 872
873 return { 873 return {
874 PodRow: PodRow 874 PodRow: PodRow
875 }; 875 };
876 }); 876 });
OLDNEW
« no previous file with comments | « chrome/browser/image_decoder.cc ('k') | chrome/browser/resources/options2/chromeos/change_picture_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698