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

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

Issue 7094006: Fix enabled state of an input field in the browser settings. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Formatting fix for "if" statement. Created 9 years, 6 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 | « chrome/browser/resources/options/browser_options.js ('k') | no next file » | 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) 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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698