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 ContentMetadataProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; | 9 ContentMetadataProvider.WORKER_SCRIPT = '/js/metadata_worker.js'; |
10 | 10 |
11 /** | 11 /** |
12 * Gallery for viewing and editing image files. | 12 * Gallery for viewing and editing image files. |
13 * | 13 * |
14 * @param {!VolumeManagerWrapper} volumeManager | 14 * @param {!VolumeManagerWrapper} volumeManager |
15 * @constructor | 15 * @constructor |
16 * @struct | 16 * @struct |
17 */ | 17 */ |
18 function Gallery(volumeManager) { | 18 function Gallery(volumeManager) { |
19 /** | 19 /** |
20 * @type {{appWindow: chrome.app.window.AppWindow, | 20 * @type {{appWindow: chrome.app.window.AppWindow, onClose: function(), |
| 21 * onMaximize: function(), onMinimize: function(), |
21 * onAppRegionChanged: function(), readonlyDirName: string, | 22 * onAppRegionChanged: function(), readonlyDirName: string, |
22 * displayStringFunction: function(), loadTimeData: Object, | 23 * displayStringFunction: function(), loadTimeData: Object, |
23 * curDirEntry: Entry, searchResults: *}} | 24 * curDirEntry: Entry, searchResults: *}} |
24 * @private | 25 * @private |
25 * | 26 * |
26 * TODO(yawano): curDirEntry and searchResults seem not to be used. | 27 * TODO(yawano): curDirEntry and searchResults seem not to be used. |
27 * Investigate them and remove them if possible. | 28 * Investigate them and remove them if possible. |
28 */ | 29 */ |
29 this.context_ = { | 30 this.context_ = { |
30 appWindow: chrome.app.window.current(), | 31 appWindow: chrome.app.window.current(), |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 initializePromise.then(reload); | 893 initializePromise.then(reload); |
893 | 894 |
894 /** | 895 /** |
895 * Enteres the debug mode. | 896 * Enteres the debug mode. |
896 */ | 897 */ |
897 window.debugMe = function() { | 898 window.debugMe = function() { |
898 initializePromise.then(function() { | 899 initializePromise.then(function() { |
899 gallery.debugMe(); | 900 gallery.debugMe(); |
900 }); | 901 }); |
901 }; | 902 }; |
OLD | NEW |