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, onClose: function(), | 20 * @type {{appWindow: chrome.app.window.AppWindow, |
21 * onMaximize: function(), onMinimize: function(), | |
22 * onAppRegionChanged: function(), readonlyDirName: string, | 21 * onAppRegionChanged: function(), readonlyDirName: string, |
23 * displayStringFunction: function(), loadTimeData: Object, | 22 * displayStringFunction: function(), loadTimeData: Object, |
24 * curDirEntry: Entry, searchResults: *}} | 23 * curDirEntry: Entry, searchResults: *}} |
25 * @private | 24 * @private |
26 * | 25 * |
27 * TODO(yawano): curDirEntry and searchResults seem not to be used. | 26 * TODO(yawano): curDirEntry and searchResults seem not to be used. |
28 * Investigate them and remove them if possible. | 27 * Investigate them and remove them if possible. |
29 */ | 28 */ |
30 this.context_ = { | 29 this.context_ = { |
31 appWindow: chrome.app.window.current(), | 30 appWindow: chrome.app.window.current(), |
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 initializePromise.then(reload); | 892 initializePromise.then(reload); |
894 | 893 |
895 /** | 894 /** |
896 * Enteres the debug mode. | 895 * Enteres the debug mode. |
897 */ | 896 */ |
898 window.debugMe = function() { | 897 window.debugMe = function() { |
899 initializePromise.then(function() { | 898 initializePromise.then(function() { |
900 gallery.debugMe(); | 899 gallery.debugMe(); |
901 }); | 900 }); |
902 }; | 901 }; |
OLD | NEW |