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

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

Issue 543493002: Compile chrome://settings, part 2: reduce from 950 to 400 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@F_settings
Patch Set: rebase? rebase! Created 6 years, 3 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 */ 91 */
92 removeUser_: function(user) { 92 removeUser_: function(user) {
93 var e = new Event('remove'); 93 var e = new Event('remove');
94 e.user = user; 94 e.user = user;
95 this.dispatchEvent(e); 95 this.dispatchEvent(e);
96 } 96 }
97 }; 97 };
98 98
99 /** 99 /**
100 * Whether the user list is disabled. Only used for display purpose. 100 * Whether the user list is disabled. Only used for display purpose.
101 * @type {boolean}
102 */ 101 */
103 cr.defineProperty(UserList, 'disabled', cr.PropertyKind.BOOL_ATTR); 102 cr.defineProperty(UserList, 'disabled', cr.PropertyKind.BOOL_ATTR);
104 103
105 /** 104 /**
106 * Creates a new user list item. 105 * Creates a new user list item.
107 * @param {Object} user The user account this represents. 106 * @param {Object} user The user account this represents.
108 * @constructor 107 * @constructor
109 * @extends {cr.ui.ListItem} 108 * @extends {cr.ui.ListItem}
110 */ 109 */
111 function UserListItem(user) { 110 function UserListItem(user) {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 updatePicture: function() { 184 updatePicture: function() {
186 this.icon_.src = 'chrome://userimage/' + this.user.username + 185 this.icon_.src = 'chrome://userimage/' + this.user.username +
187 '?id=' + (new Date()).getTime(); 186 '?id=' + (new Date()).getTime();
188 } 187 }
189 }; 188 };
190 189
191 return { 190 return {
192 UserList: UserList 191 UserList: UserList
193 }; 192 };
194 }); 193 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698