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

Side by Side Diff: chrome/browser/resources/options/extension_list.js

Issue 7739030: Minor CSS cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/options/extension_settings.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/options/extension_settings.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698