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

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

Issue 8574022: add custom-appearance in another place that needs it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 2011 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.autofillOptions', function() { 5 cr.define('options.autofillOptions', function() {
6 const DeletableItem = options.DeletableItem; 6 const DeletableItem = options.DeletableItem;
7 const DeletableItemList = options.DeletableItemList; 7 const DeletableItemList = options.DeletableItemList;
8 const InlineEditableItem = options.InlineEditableItem; 8 const InlineEditableItem = options.InlineEditableItem;
9 const InlineEditableItemList = options.InlineEditableItemList; 9 const InlineEditableItemList = options.InlineEditableItemList;
10 10
11 function AutofillEditProfileButton(guid, edit) { 11 function AutofillEditProfileButton(guid, edit) {
12 var editButtonEl = document.createElement('button'); 12 var editButtonEl = document.createElement('button');
13 editButtonEl.className = 'raw-button'; 13 editButtonEl.className = 'raw-button custom-appearance';
14 editButtonEl.textContent = 14 editButtonEl.textContent =
15 templateData.autofillEditProfileButton; 15 templateData.autofillEditProfileButton;
16 editButtonEl.onclick = function(e) { edit(guid); }; 16 editButtonEl.onclick = function(e) { edit(guid); };
17 17
18 // Don't select the row when clicking the button. 18 // Don't select the row when clicking the button.
19 editButtonEl.onmousedown = function(e) { 19 editButtonEl.onmousedown = function(e) {
20 e.stopPropagation(); 20 e.stopPropagation();
21 }; 21 };
22 22
23 return editButtonEl; 23 return editButtonEl;
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 CreditCardListItem: CreditCardListItem, 497 CreditCardListItem: CreditCardListItem,
498 ValuesListItem: ValuesListItem, 498 ValuesListItem: ValuesListItem,
499 NameListItem: NameListItem, 499 NameListItem: NameListItem,
500 AutofillAddressList: AutofillAddressList, 500 AutofillAddressList: AutofillAddressList,
501 AutofillCreditCardList: AutofillCreditCardList, 501 AutofillCreditCardList: AutofillCreditCardList,
502 AutofillValuesList: AutofillValuesList, 502 AutofillValuesList: AutofillValuesList,
503 AutofillNameValuesList: AutofillNameValuesList, 503 AutofillNameValuesList: AutofillNameValuesList,
504 AutofillPhoneValuesList: AutofillPhoneValuesList, 504 AutofillPhoneValuesList: AutofillPhoneValuesList,
505 }; 505 };
506 }); 506 });
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