OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 /** | 5 /** |
6 * Model for the folder shortcuts. This object is cr.ui.ArrayDataModel-like | 6 * Model for the folder shortcuts. This object is cr.ui.ArrayDataModel-like |
7 * object with additional methods for the folder shortcut feature. | 7 * object with additional methods for the folder shortcut feature. |
8 * This uses chrome.storage as backend. Items are always sorted by file path. | 8 * This uses chrome.storage as backend. Items are always sorted by file path. |
9 * | 9 * |
10 * @constructor | 10 * @constructor |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 firePermutedEvent_: function(permutation) { | 240 firePermutedEvent_: function(permutation) { |
241 var permutedEvent = new Event('permuted'); | 241 var permutedEvent = new Event('permuted'); |
242 permutedEvent.newLength = this.length; | 242 permutedEvent.newLength = this.length; |
243 permutedEvent.permutation = permutation; | 243 permutedEvent.permutation = permutation; |
244 this.dispatchEvent(permutedEvent); | 244 this.dispatchEvent(permutedEvent); |
245 | 245 |
246 // Note: This model only fires 'permuted' event, because: | 246 // Note: This model only fires 'permuted' event, because: |
247 // 1) 'change' event is not necessary to fire since it is covered by | 247 // 1) 'change' event is not necessary to fire since it is covered by |
248 // 'permuted' event. | 248 // 'permuted' event. |
249 // 2) 'splice' and 'sorted' events are not implemented. These events are | 249 // 2) 'splice' and 'sorted' events are not implemented. These events are |
250 // not used in VolumeListModel. We have to implement them when necessary. | 250 // not used in NavigationListModel. We have to implement them when |
| 251 // necessary. |
251 } | 252 } |
252 }; | 253 }; |
OLD | NEW |