OLD | NEW |
1 // Copyright (c) 2010 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.browser_options', function() { | 5 cr.define('options.browser_options', function() { |
6 const AutocompleteList = options.AutocompleteList; | 6 const AutocompleteList = options.AutocompleteList; |
7 const InlineEditableItem = options.InlineEditableItem; | 7 const InlineEditableItem = options.InlineEditableItem; |
8 const InlineEditableItemList = options.InlineEditableItemList; | 8 const InlineEditableItemList = options.InlineEditableItemList; |
9 | 9 |
10 /** | 10 /** |
11 * Creates a new startup page list item. | 11 * Creates a new startup page list item. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 __proto__: InlineEditableItemList.prototype, | 112 __proto__: InlineEditableItemList.prototype, |
113 | 113 |
114 /** | 114 /** |
115 * An autocomplete suggestion list for URL editing. | 115 * An autocomplete suggestion list for URL editing. |
116 * @type {AutocompleteList} | 116 * @type {AutocompleteList} |
117 */ | 117 */ |
118 autocompleteList: null, | 118 autocompleteList: null, |
119 | 119 |
120 /** @inheritDoc */ | 120 /** @inheritDoc */ |
121 createItem: function(pageInfo) { | 121 createItem: function(pageInfo) { |
122 return new StartupPageListItem(pageInfo); | 122 var item = new StartupPageListItem(pageInfo); |
| 123 item.urlField_.disabled = this.disabled; |
| 124 return item; |
123 }, | 125 }, |
124 | 126 |
125 /** @inheritDoc */ | 127 /** @inheritDoc */ |
126 deleteItemAtIndex: function(index) { | 128 deleteItemAtIndex: function(index) { |
127 chrome.send('removeStartupPages', [String(index)]); | 129 chrome.send('removeStartupPages', [String(index)]); |
128 }, | 130 }, |
129 }; | 131 }; |
130 | 132 |
131 return { | 133 return { |
132 StartupPageList: StartupPageList | 134 StartupPageList: StartupPageList |
133 }; | 135 }; |
134 }); | 136 }); |
OLD | NEW |