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

Side by Side Diff: chrome/browser/resources/options/chromeos/accounts_user_list.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 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 (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 cr.define('options.accounts', function() { 5 cr.define('options.accounts', function() {
6 /** @const */ var List = cr.ui.List; 6 /** @const */ var List = cr.ui.List;
7 /** @const */ var ListItem = cr.ui.ListItem; 7 /** @const */ var ListItem = cr.ui.ListItem;
8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
9 9
10 /** 10 /**
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 var index = this.indexOf_(username); 74 var index = this.indexOf_(username);
75 if (index >= 0) { 75 if (index >= 0) {
76 var item = this.getListItemByIndex(index); 76 var item = this.getListItemByIndex(index);
77 if (item) 77 if (item)
78 item.updatePicture(); 78 item.updatePicture();
79 } 79 }
80 }, 80 },
81 81
82 /** 82 /**
83 * Loads given user list. 83 * Loads given user list.
84 * @param {!Array.<Object>} users An array of user info objects. 84 * @param {!Array<Object>} users An array of user info objects.
85 * @private 85 * @private
86 */ 86 */
87 load_: function(users) { 87 load_: function(users) {
88 this.dataModel = new ArrayDataModel(users); 88 this.dataModel = new ArrayDataModel(users);
89 }, 89 },
90 90
91 /** 91 /**
92 * Removes given user from the list. 92 * Removes given user from the list.
93 * @param {Object} user User info object to be removed from user list. 93 * @param {Object} user User info object to be removed from user list.
94 * @private 94 * @private
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 updatePicture: function() { 188 updatePicture: function() {
189 this.icon_.src = 'chrome://userimage/' + this.user.username + 189 this.icon_.src = 'chrome://userimage/' + this.user.username +
190 '?id=' + (new Date()).getTime(); 190 '?id=' + (new Date()).getTime();
191 } 191 }
192 }; 192 };
193 193
194 return { 194 return {
195 UserList: UserList 195 UserList: UserList
196 }; 196 };
197 }); 197 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698