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 OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
7 var ArrayDataModel = cr.ui.ArrayDataModel; | 7 var ArrayDataModel = cr.ui.ArrayDataModel; |
8 | 8 |
9 ///////////////////////////////////////////////////////////////////////////// | 9 ///////////////////////////////////////////////////////////////////////////// |
10 // AutofillOptions class: | 10 // AutofillOptions class: |
(...skipping 21 matching lines...) Expand all Loading... |
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 {DeletableItemList} |
38 * @private | 38 * @private |
39 */ | 39 */ |
40 creditCardList_: null, | 40 creditCardList_: null, |
41 | 41 |
| 42 /** @override */ |
42 initializePage: function() { | 43 initializePage: function() { |
43 OptionsPage.prototype.initializePage.call(this); | 44 OptionsPage.prototype.initializePage.call(this); |
44 | 45 |
45 this.createAddressList_(); | 46 this.createAddressList_(); |
46 this.createCreditCardList_(); | 47 this.createCreditCardList_(); |
47 | 48 |
48 var self = this; | 49 var self = this; |
49 $('autofill-add-address').onclick = function(event) { | 50 $('autofill-add-address').onclick = function(event) { |
50 self.showAddAddressOverlay_(); | 51 self.showAddAddressOverlay_(); |
51 }; | 52 }; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard); | 221 AutofillOptions.getInstance().showEditCreditCardOverlay_(creditCard); |
221 }; | 222 }; |
222 | 223 |
223 // Export | 224 // Export |
224 return { | 225 return { |
225 AutofillOptions: AutofillOptions | 226 AutofillOptions: AutofillOptions |
226 }; | 227 }; |
227 | 228 |
228 }); | 229 }); |
229 | 230 |
OLD | NEW |