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

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

Issue 11787015: Allow the password manager in the settings page to have hidpi favicons too (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 11 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
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.search_engines', function() { 5 cr.define('options.search_engines', function() {
6 /** @const */ var ControlledSettingIndicator = 6 /** @const */ var ControlledSettingIndicator =
7 options.ControlledSettingIndicator; 7 options.ControlledSettingIndicator;
8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; 8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList;
9 /** @const */ var InlineEditableItem = options.InlineEditableItem; 9 /** @const */ var InlineEditableItem = options.InlineEditableItem;
10 /** @const */ var ListSelectionController = cr.ui.ListSelectionController; 10 /** @const */ var ListSelectionController = cr.ui.ListSelectionController;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Construct the name column. 92 // Construct the name column.
93 var nameColEl = this.ownerDocument.createElement('div'); 93 var nameColEl = this.ownerDocument.createElement('div');
94 nameColEl.className = 'name-column'; 94 nameColEl.className = 'name-column';
95 nameColEl.classList.add('weakrtl'); 95 nameColEl.classList.add('weakrtl');
96 this.contentElement.appendChild(nameColEl); 96 this.contentElement.appendChild(nameColEl);
97 97
98 // Add the favicon. 98 // Add the favicon.
99 var faviconDivEl = this.ownerDocument.createElement('div'); 99 var faviconDivEl = this.ownerDocument.createElement('div');
100 faviconDivEl.className = 'favicon'; 100 faviconDivEl.className = 'favicon';
101 if (!this.isPlaceholder) { 101 if (!this.isPlaceholder) {
102 faviconDivEl.style.backgroundImage = 102 faviconDivEl.style.backgroundImage = imageset(
103 imageset('chrome://favicon/iconurl@scalefactorx/' + engine.iconURL); 103 'chrome://favicon/size/16@scalefactorx/iconurl/' + engine.iconURL);
104 } 104 }
105 nameColEl.appendChild(faviconDivEl); 105 nameColEl.appendChild(faviconDivEl);
106 106
107 var nameEl = this.createEditableTextCell(engine.displayName); 107 var nameEl = this.createEditableTextCell(engine.displayName);
108 nameEl.classList.add('weakrtl'); 108 nameEl.classList.add('weakrtl');
109 nameColEl.appendChild(nameEl); 109 nameColEl.appendChild(nameEl);
110 110
111 // Then the keyword column. 111 // Then the keyword column.
112 var keywordEl = this.createEditableTextCell(engine.keyword); 112 var keywordEl = this.createEditableTextCell(engine.keyword);
113 keywordEl.className = 'keyword-column'; 113 keywordEl.className = 'keyword-column';
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 }, 318 },
319 }; 319 };
320 320
321 // Export 321 // Export
322 return { 322 return {
323 SearchEngineList: SearchEngineList 323 SearchEngineList: SearchEngineList
324 }; 324 };
325 325
326 }); 326 });
327 327
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698