| 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 |
| 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 custom-appearance'; | 13 editButtonEl.className = 'list-inline-button custom-appearance'; |
| 14 editButtonEl.textContent = | 14 editButtonEl.textContent = templateData.autofillEditProfileButton; |
| 15 templateData.autofillEditProfileButton; | |
| 16 editButtonEl.onclick = function(e) { edit(guid); }; | 15 editButtonEl.onclick = function(e) { edit(guid); }; |
| 17 | 16 |
| 18 // Don't select the row when clicking the button. | 17 // Don't select the row when clicking the button. |
| 19 editButtonEl.onmousedown = function(e) { | 18 editButtonEl.onmousedown = function(e) { |
| 20 e.stopPropagation(); | 19 e.stopPropagation(); |
| 21 }; | 20 }; |
| 22 | 21 |
| 23 return editButtonEl; | 22 return editButtonEl; |
| 24 } | 23 } |
| 25 | 24 |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 CreditCardListItem: CreditCardListItem, | 496 CreditCardListItem: CreditCardListItem, |
| 498 ValuesListItem: ValuesListItem, | 497 ValuesListItem: ValuesListItem, |
| 499 NameListItem: NameListItem, | 498 NameListItem: NameListItem, |
| 500 AutofillAddressList: AutofillAddressList, | 499 AutofillAddressList: AutofillAddressList, |
| 501 AutofillCreditCardList: AutofillCreditCardList, | 500 AutofillCreditCardList: AutofillCreditCardList, |
| 502 AutofillValuesList: AutofillValuesList, | 501 AutofillValuesList: AutofillValuesList, |
| 503 AutofillNameValuesList: AutofillNameValuesList, | 502 AutofillNameValuesList: AutofillNameValuesList, |
| 504 AutofillPhoneValuesList: AutofillPhoneValuesList, | 503 AutofillPhoneValuesList: AutofillPhoneValuesList, |
| 505 }; | 504 }; |
| 506 }); | 505 }); |
| OLD | NEW |