| 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', function() { | 5 cr.define('options', function() { |
| 6 /** @const */ var OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
| 7 | 7 |
| 8 // The GUID of the loaded credit card. | 8 // The GUID of the loaded credit card. |
| 9 var guid_; | 9 var guid_; |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * AutofillEditCreditCardOverlay class | 12 * AutofillEditCreditCardOverlay class |
| 13 * Encapsulated handling of the 'Add Page' overlay page. | 13 * Encapsulated handling of the 'Add Page' overlay page. |
| 14 * @class | 14 * @class |
| 15 */ | 15 */ |
| 16 function AutofillEditCreditCardOverlay() { | 16 function AutofillEditCreditCardOverlay() { |
| 17 OptionsPage.call(this, 'autofillEditCreditCard', | 17 OptionsPage.call(this, 'autofillEditCreditCard', |
| 18 templateData.autofillEditCreditCardTitle, | 18 loadTimeData.getString('autofillEditCreditCardTitle'), |
| 19 'autofill-edit-credit-card-overlay'); | 19 'autofill-edit-credit-card-overlay'); |
| 20 } | 20 } |
| 21 | 21 |
| 22 cr.addSingletonGetter(AutofillEditCreditCardOverlay); | 22 cr.addSingletonGetter(AutofillEditCreditCardOverlay); |
| 23 | 23 |
| 24 AutofillEditCreditCardOverlay.prototype = { | 24 AutofillEditCreditCardOverlay.prototype = { |
| 25 __proto__: OptionsPage.prototype, | 25 __proto__: OptionsPage.prototype, |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * Initializes the page. | 28 * Initializes the page. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 AutofillEditCreditCardOverlay.setTitle = function(title) { | 197 AutofillEditCreditCardOverlay.setTitle = function(title) { |
| 198 $('autofill-credit-card-title').textContent = title; | 198 $('autofill-credit-card-title').textContent = title; |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 // Export | 201 // Export |
| 202 return { | 202 return { |
| 203 AutofillEditCreditCardOverlay: AutofillEditCreditCardOverlay | 203 AutofillEditCreditCardOverlay: AutofillEditCreditCardOverlay |
| 204 }; | 204 }; |
| 205 }); | 205 }); |
| OLD | NEW |