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

Side by Side Diff: ui/file_manager/gallery/js/gallery.js

Issue 813263002: Remove Gallery.Item when the corresponding entries are removed in file system. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « ui/file_manager/gallery/gallery.html ('k') | ui/file_manager/gallery/js/gallery_scripts.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * Overrided metadata worker's path. 6 * Overrided metadata worker's path.
7 * @type {string} 7 * @type {string}
8 */ 8 */
9 ContentProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; 9 ContentProvider.WORKER_SCRIPT = '/js/metadata_worker.js';
10 10
(...skipping 13 matching lines...) Expand all
24 * @private 24 * @private
25 */ 25 */
26 this.metadataCache_ = metadataCache; 26 this.metadataCache_ = metadataCache;
27 27
28 /** 28 /**
29 * Directory where the image is saved if the image is located in a read-only 29 * Directory where the image is saved if the image is located in a read-only
30 * volume. 30 * volume.
31 * @type {DirectoryEntry} 31 * @type {DirectoryEntry}
32 */ 32 */
33 this.fallbackSaveDirectory = null; 33 this.fallbackSaveDirectory = null;
34
35 // Start to watch file system entries.
36 var watcher = new EntryListWatcher(this);
37 watcher.getEntry = function(item) { return item.getEntry(); };
34 } 38 }
35 39
36 /** 40 /**
37 * Maximum number of full size image cache. 41 * Maximum number of full size image cache.
38 * @type {number} 42 * @type {number}
39 * @const 43 * @const
40 * @private 44 * @private
41 */ 45 */
42 GalleryDataModel.MAX_FULL_IMAGE_CACHE_ = 3; 46 GalleryDataModel.MAX_FULL_IMAGE_CACHE_ = 3;
43 47
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 }; 1058 };
1055 1059
1056 /** 1060 /**
1057 * Loads entries. 1061 * Loads entries.
1058 * @param {!Array.<Entry>} entries Array of entries. 1062 * @param {!Array.<Entry>} entries Array of entries.
1059 * @param {!Array.<Entry>} selectedEntries Array of selected entries. 1063 * @param {!Array.<Entry>} selectedEntries Array of selected entries.
1060 */ 1064 */
1061 window.loadEntries = function(entries, selectedEntries) { 1065 window.loadEntries = function(entries, selectedEntries) {
1062 gallery.load(entries, selectedEntries); 1066 gallery.load(entries, selectedEntries);
1063 }; 1067 };
OLDNEW
« no previous file with comments | « ui/file_manager/gallery/gallery.html ('k') | ui/file_manager/gallery/js/gallery_scripts.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698