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

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

Issue 59173002: [Autofill settings] Restore credit card icon images. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « no previous file | 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) 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
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
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 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698