| OLD | NEW |
| 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 Loading... |
| 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 }); |
| OLD | NEW |