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.personal_options', function() { | 5 cr.define('options.personal_options', function() { |
6 const DeletableItem = options.DeletableItem; | 6 const DeletableItem = options.DeletableItem; |
7 const DeletableItemList = options.DeletableItemList; | 7 const DeletableItemList = options.DeletableItemList; |
8 const ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; | 8 const ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; |
9 | 9 |
10 var localStrings = new LocalStrings(); | 10 var localStrings = new LocalStrings(); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 /** @inheritDoc */ | 76 /** @inheritDoc */ |
77 createItem: function(pageInfo) { | 77 createItem: function(pageInfo) { |
78 var item = new ProfileListItem(pageInfo); | 78 var item = new ProfileListItem(pageInfo); |
79 return item; | 79 return item; |
80 }, | 80 }, |
81 | 81 |
82 /** @inheritDoc */ | 82 /** @inheritDoc */ |
83 deleteItemAtIndex: function(index) { | 83 deleteItemAtIndex: function(index) { |
84 ManageProfileOverlay.showDeleteDialog(this.dataModel.item(index)); | 84 ManageProfileOverlay.showDeleteDialog(this.dataModel.item(index)); |
85 }, | 85 }, |
| 86 |
| 87 /** @inheritDoc */ |
| 88 activateItemAtIndex: function(index) { |
| 89 ManageProfileOverlay.showManageDialog(this.dataModel.item(index)); |
| 90 }, |
86 }; | 91 }; |
87 | 92 |
88 return { | 93 return { |
89 ProfileList: ProfileList | 94 ProfileList: ProfileList |
90 }; | 95 }; |
91 }); | 96 }); |
92 | 97 |
OLD | NEW |