| 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.autofillOptions', function() { | 5 cr.define('options.autofillOptions', function() { |
| 6 /** @const */ var DeletableItem = options.DeletableItem; | 6 /** @const */ var DeletableItem = options.DeletableItem; |
| 7 /** @const */ var DeletableItemList = options.DeletableItemList; | 7 /** @const */ var DeletableItemList = options.DeletableItemList; |
| 8 /** @const */ var InlineEditableItem = options.InlineEditableItem; | 8 /** @const */ var InlineEditableItem = options.InlineEditableItem; |
| 9 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; | 9 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; |
| 10 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 decorate: function() { | 87 decorate: function() { |
| 88 DeletableItem.prototype.decorate.call(this); | 88 DeletableItem.prototype.decorate.call(this); |
| 89 | 89 |
| 90 // The stored label. | 90 // The stored label. |
| 91 var label = this.ownerDocument.createElement('div'); | 91 var label = this.ownerDocument.createElement('div'); |
| 92 label.className = 'autofill-list-item'; | 92 label.className = 'autofill-list-item'; |
| 93 label.textContent = this.label; | 93 label.textContent = this.label; |
| 94 this.contentElement.appendChild(label); | 94 this.contentElement.appendChild(label); |
| 95 | 95 |
| 96 // The credit card icon. | 96 // The credit card icon. |
| 97 var icon = this.ownerDocument.createElement('image'); | 97 var icon = this.ownerDocument.createElement('img'); |
| 98 icon.src = this.icon; | 98 icon.src = this.icon; |
| 99 icon.alt = this.description; | 99 icon.alt = this.description; |
| 100 this.contentElement.appendChild(icon); | 100 this.contentElement.appendChild(icon); |
| 101 | 101 |
| 102 // The 'Edit' button. | 102 // The 'Edit' button. |
| 103 var editButtonEl = new AutofillEditProfileButton( | 103 var editButtonEl = new AutofillEditProfileButton( |
| 104 this.guid, | 104 this.guid, |
| 105 AutofillOptions.loadCreditCardEditor); | 105 AutofillOptions.loadCreditCardEditor); |
| 106 this.contentElement.appendChild(editButtonEl); | 106 this.contentElement.appendChild(editButtonEl); |
| 107 }, | 107 }, |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 CreditCardListItem: CreditCardListItem, | 499 CreditCardListItem: CreditCardListItem, |
| 500 ValuesListItem: ValuesListItem, | 500 ValuesListItem: ValuesListItem, |
| 501 NameListItem: NameListItem, | 501 NameListItem: NameListItem, |
| 502 AutofillAddressList: AutofillAddressList, | 502 AutofillAddressList: AutofillAddressList, |
| 503 AutofillCreditCardList: AutofillCreditCardList, | 503 AutofillCreditCardList: AutofillCreditCardList, |
| 504 AutofillValuesList: AutofillValuesList, | 504 AutofillValuesList: AutofillValuesList, |
| 505 AutofillNameValuesList: AutofillNameValuesList, | 505 AutofillNameValuesList: AutofillNameValuesList, |
| 506 AutofillPhoneValuesList: AutofillPhoneValuesList, | 506 AutofillPhoneValuesList: AutofillPhoneValuesList, |
| 507 }; | 507 }; |
| 508 }); | 508 }); |
| OLD | NEW |