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 DeletableItem = options.DeletableItem; | 6 /** @const */ var DeletableItem = options.DeletableItem; |
7 /** @const */ var DeletableItemList = options.DeletableItemList; | 7 /** @const */ var DeletableItemList = options.DeletableItemList; |
8 | 8 |
9 /** | 9 /** |
10 * @constructor | 10 * @constructor |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 /** @inheritDoc */ | 50 /** @inheritDoc */ |
51 deleteItemAtIndex: function(index) { | 51 deleteItemAtIndex: function(index) { |
52 chrome.send('forgetGallery', [this.dataModel.item(index).id]); | 52 chrome.send('forgetGallery', [this.dataModel.item(index).id]); |
53 }, | 53 }, |
54 }; | 54 }; |
55 | 55 |
56 return { | 56 return { |
57 MediaGalleriesList: MediaGalleriesList | 57 MediaGalleriesList: MediaGalleriesList |
58 }; | 58 }; |
59 }); | 59 }); |
OLD | NEW |