OLD | NEW |
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.browser_options', function() { | 5 cr.define('options.browser_options', function() { |
6 /** @const */ var DeletableItem = options.DeletableItem; | 6 /** @const */ var DeletableItem = options.DeletableItem; |
7 /** @const */ var DeletableItemList = options.DeletableItemList; | 7 /** @const */ var DeletableItemList = options.DeletableItemList; |
8 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; | 8 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; |
9 | 9 |
10 /** | 10 /** |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 if (profileInfo.isCurrentProfile) { | 63 if (profileInfo.isCurrentProfile) { |
64 displayName = loadTimeData.getStringF('profilesListItemCurrent', | 64 displayName = loadTimeData.getStringF('profilesListItemCurrent', |
65 profileInfo.name); | 65 profileInfo.name); |
66 } | 66 } |
67 nameEl.textContent = displayName; | 67 nameEl.textContent = displayName; |
68 | 68 |
69 if (profileInfo.isSupervised) { | 69 if (profileInfo.isSupervised) { |
70 var supervisedEl = this.ownerDocument.createElement('div'); | 70 var supervisedEl = this.ownerDocument.createElement('div'); |
71 supervisedEl.className = 'profile-supervised'; | 71 supervisedEl.className = 'profile-supervised'; |
72 supervisedEl.textContent = | 72 supervisedEl.textContent = |
73 '(' + loadTimeData.getStringF('supervisedUserLabel') + ')'; | 73 loadTimeData.getString('supervisedUserLabel'); |
74 containerEl.appendChild(supervisedEl); | 74 containerEl.appendChild(supervisedEl); |
75 } | 75 } |
76 | 76 |
77 this.contentElement.appendChild(containerEl); | 77 this.contentElement.appendChild(containerEl); |
78 | 78 |
79 // Ensure that the button cannot be tabbed to for accessibility reasons. | 79 // Ensure that the button cannot be tabbed to for accessibility reasons. |
80 this.closeButtonElement.tabIndex = -1; | 80 this.closeButtonElement.tabIndex = -1; |
81 }, | 81 }, |
82 }; | 82 }; |
83 | 83 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 * If false, items in this list will not be deletable. | 125 * If false, items in this list will not be deletable. |
126 * @private | 126 * @private |
127 */ | 127 */ |
128 canDeleteItems_: true, | 128 canDeleteItems_: true, |
129 }; | 129 }; |
130 | 130 |
131 return { | 131 return { |
132 ProfileList: ProfileList | 132 ProfileList: ProfileList |
133 }; | 133 }; |
134 }); | 134 }); |
OLD | NEW |