Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: chrome/browser/resources/file_manager/js/folder_shortcuts_data_model.js

Issue 22382002: Rename VolumeList -> NavigationList in Files.app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comment Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698