| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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', function() { | 5 cr.define('options', function() { |
| 6 /** | 6 /** |
| 7 * Creates a new list of extensions. | 7 * Creates a new list of extensions. |
| 8 * @param {Object=} opt_propertyBag Optional properties. | 8 * @param {Object=} opt_propertyBag Optional properties. |
| 9 * @constructor | 9 * @constructor |
| 10 * @extends {cr.ui.div} | 10 * @extends {cr.ui.div} |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 // Next to it, we have the extension icon. | 159 // Next to it, we have the extension icon. |
| 160 icon = this.ownerDocument.createElement('img'); | 160 icon = this.ownerDocument.createElement('img'); |
| 161 icon.classList.add('extension-icon'); | 161 icon.classList.add('extension-icon'); |
| 162 icon.src = extension.icon; | 162 icon.src = extension.icon; |
| 163 hbox.appendChild(icon); | 163 hbox.appendChild(icon); |
| 164 | 164 |
| 165 // Start a vertical box for showing the details. | 165 // Start a vertical box for showing the details. |
| 166 var vbox = this.ownerDocument.createElement('div'); | 166 var vbox = this.ownerDocument.createElement('div'); |
| 167 vbox.classList.add('vbox'); | 167 vbox.classList.add('vbox'); |
| 168 vbox.classList.add('stretch'); | 168 vbox.classList.add('stretch'); |
| 169 vbox.classList.add('details-view'); |
| 169 hbox.appendChild(vbox); | 170 hbox.appendChild(vbox); |
| 170 | 171 |
| 171 div = this.ownerDocument.createElement('div'); | 172 div = this.ownerDocument.createElement('div'); |
| 172 vbox.appendChild(div); | 173 vbox.appendChild(div); |
| 173 | 174 |
| 174 // Title comes next. | 175 // Title comes next. |
| 175 var title = this.ownerDocument.createElement('span'); | 176 var title = this.ownerDocument.createElement('span'); |
| 176 title.classList.add('extension-title'); | 177 title.classList.add('extension-title'); |
| 177 title.textContent = extension.name; | 178 title.textContent = extension.name; |
| 178 vbox.appendChild(title); | 179 vbox.appendChild(title); |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 ]); | 676 ]); |
| 676 } | 677 } |
| 677 } | 678 } |
| 678 }, | 679 }, |
| 679 }; | 680 }; |
| 680 | 681 |
| 681 return { | 682 return { |
| 682 ExtensionsList: ExtensionsList | 683 ExtensionsList: ExtensionsList |
| 683 }; | 684 }; |
| 684 }); | 685 }); |
| OLD | NEW |