OLD | NEW |
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 Loading... |
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 Loading... |
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 }; |
OLD | NEW |