| 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 var Page = cr.ui.pageManager.Page; | 6 var Page = cr.ui.pageManager.Page; |
| 7 var PageManager = cr.ui.pageManager.PageManager; | 7 var PageManager = cr.ui.pageManager.PageManager; |
| 8 var ArrayDataModel = cr.ui.ArrayDataModel; | 8 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 9 | 9 |
| 10 ///////////////////////////////////////////////////////////////////////////// | 10 ///////////////////////////////////////////////////////////////////////////// |
| 11 // AutofillOptions class: | 11 // AutofillOptions class: |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Encapsulated handling of Autofill options page. | 14 * Encapsulated handling of Autofill options page. |
| 15 * @constructor | 15 * @constructor |
| 16 */ | 16 */ |
| 17 function AutofillOptions() { | 17 function AutofillOptions() { |
| 18 Page.call(this, 'autofill', | 18 Page.call(this, 'autofill', |
| 19 loadTimeData.getString('autofillOptionsPageTabTitle'), | 19 loadTimeData.getString('autofillOptionsPageTabTitle'), |
| 20 'autofill-options'); | 20 'autofill-options'); |
| 21 } | 21 } |
| 22 | 22 |
| 23 cr.addSingletonGetter(AutofillOptions); | 23 cr.addSingletonGetter(AutofillOptions); |
| 24 | 24 |
| 25 AutofillOptions.prototype = { | 25 AutofillOptions.prototype = { |
| 26 __proto__: Page.prototype, | 26 __proto__: Page.prototype, |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * The address list. | 29 * The address list. |
| 30 * @type {DeletableItemList} | 30 * @type {options.DeletableItemList} |
| 31 * @private | 31 * @private |
| 32 */ | 32 */ |
| 33 addressList_: null, | 33 addressList_: null, |
| 34 | 34 |
| 35 /** | 35 /** |
| 36 * The credit card list. | 36 * The credit card list. |
| 37 * @type {DeletableItemList} | 37 * @type {options.DeletableItemList} |
| 38 * @private | 38 * @private |
| 39 */ | 39 */ |
| 40 creditCardList_: null, | 40 creditCardList_: null, |
| 41 | 41 |
| 42 /** @override */ | 42 /** @override */ |
| 43 initializePage: function() { | 43 initializePage: function() { |
| 44 Page.prototype.initializePage.call(this); | 44 Page.prototype.initializePage.call(this); |
| 45 | 45 |
| 46 this.createAddressList_(); | 46 this.createAddressList_(); |
| 47 this.createCreditCardList_(); | 47 this.createCreditCardList_(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard); | 223 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard); |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 // Export | 226 // Export |
| 227 return { | 227 return { |
| 228 AutofillOptions: AutofillOptions | 228 AutofillOptions: AutofillOptions |
| 229 }; | 229 }; |
| 230 | 230 |
| 231 }); | 231 }); |
| 232 | 232 |
| OLD | NEW |