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 AutocompleteList = cr.ui.AutocompleteList; | 6 /** @const */ var AutocompleteList = cr.ui.AutocompleteList; |
7 /** @const */ var InlineEditableItem = options.InlineEditableItem; | 7 /** @const */ var InlineEditableItem = options.InlineEditableItem; |
8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; | 8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; |
9 | 9 |
10 /** | 10 /** |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 pageInfo.title = loadTimeData.getString('startupAddLabel'); | 50 pageInfo.title = loadTimeData.getString('startupAddLabel'); |
51 pageInfo.url = ''; | 51 pageInfo.url = ''; |
52 } | 52 } |
53 | 53 |
54 var titleEl = this.ownerDocument.createElement('div'); | 54 var titleEl = this.ownerDocument.createElement('div'); |
55 titleEl.className = 'title'; | 55 titleEl.className = 'title'; |
56 titleEl.classList.add('favicon-cell'); | 56 titleEl.classList.add('favicon-cell'); |
57 titleEl.classList.add('weakrtl'); | 57 titleEl.classList.add('weakrtl'); |
58 titleEl.textContent = pageInfo.title; | 58 titleEl.textContent = pageInfo.title; |
59 if (!this.isPlaceholder) { | 59 if (!this.isPlaceholder) { |
60 titleEl.style.backgroundImage = url(getFaviconUrl(pageInfo.url)); | 60 titleEl.style.backgroundImage = getFaviconImageSet(pageInfo.url); |
61 titleEl.title = pageInfo.tooltip; | 61 titleEl.title = pageInfo.tooltip; |
62 } | 62 } |
63 | 63 |
64 this.contentElement.appendChild(titleEl); | 64 this.contentElement.appendChild(titleEl); |
65 | 65 |
66 var urlEl = this.createEditableTextCell(pageInfo.url); | 66 var urlEl = this.createEditableTextCell(pageInfo.url); |
67 urlEl.className = 'url'; | 67 urlEl.className = 'url'; |
68 urlEl.classList.add('weakrtl'); | 68 urlEl.classList.add('weakrtl'); |
69 this.contentElement.appendChild(urlEl); | 69 this.contentElement.appendChild(urlEl); |
70 | 70 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 this.hideDropMarkerTimer_ = window.setTimeout(function() { | 300 this.hideDropMarkerTimer_ = window.setTimeout(function() { |
301 $('startupPagesListDropmarker').style.display = ''; | 301 $('startupPagesListDropmarker').style.display = ''; |
302 }, 100); | 302 }, 100); |
303 }, | 303 }, |
304 }; | 304 }; |
305 | 305 |
306 return { | 306 return { |
307 StartupPageList: StartupPageList | 307 StartupPageList: StartupPageList |
308 }; | 308 }; |
309 }); | 309 }); |
OLD | NEW |