| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // TODO(yawano): Move all externs under ui/file_manager/externs. | |
| 6 | |
| 7 /** | |
| 8 * @constructor | |
| 9 * @extends {Window} | |
| 10 */ | |
| 11 var BackgroundWindow = function() {}; | |
| 12 | |
| 13 /** | |
| 14 * @type {FileBrowserBackground} | |
| 15 */ | |
| 16 BackgroundWindow.prototype.background; | |
| 17 | |
| 18 /** | |
| 19 * @param {Window} window | |
| 20 */ | |
| 21 BackgroundWindow.prototype.registerDialog = function(window) {}; | |
| 22 | |
| 23 /** | |
| 24 * @param {Object=} opt_appState App state. | |
| 25 * @param {number=} opt_id Window id. | |
| 26 * @param {LaunchType=} opt_type Launch type. Default: ALWAYS_CREATE. | |
| 27 * @param {function(string)=} opt_callback Completion callback with the App ID. | |
| 28 */ | |
| 29 BackgroundWindow.prototype.launchFileManager = | |
| 30 function(opt_appState, opt_id, opt_type, opt_callback) {}; | |
| 31 | |
| 32 | |
| 33 /** | 5 /** |
| 34 * @constructor | 6 * @constructor |
| 35 * @extends {Event} | 7 * @extends {Event} |
| 36 */ | |
| 37 var FileOperationProgressEvent = function() {}; | |
| 38 | |
| 39 /** @type {fileOperationUtil.EventRouter.EventType} */ | |
| 40 FileOperationProgressEvent.prototype.reason; | |
| 41 | |
| 42 /** @type {(fileOperationUtil.Error|undefined)} */ | |
| 43 FileOperationProgressEvent.prototype.error; | |
| 44 | |
| 45 | |
| 46 /** | |
| 47 * @constructor | |
| 48 * @extends {Event} | |
| 49 */ | |
| 50 var EntriesChangedEvent = function() {}; | |
| 51 | |
| 52 /** @type {util.EntryChangedKind} */ | |
| 53 EntriesChangedEvent.prototype.kind; | |
| 54 | |
| 55 /** @type {Array<!Entry>} */ | |
| 56 EntriesChangedEvent.prototype.entries; | |
| 57 | |
| 58 /** | |
| 59 * @constructor | |
| 60 * @extends {Event} | |
| 61 * @struct | 8 * @struct |
| 62 */ | 9 */ |
| 63 var DirectoryChangeEvent = function() {}; | 10 var DirectoryChangeEvent = function() {}; |
| 64 | 11 |
| 65 /** @type {DirectoryEntry} */ | 12 /** @type {DirectoryEntry} */ |
| 66 DirectoryChangeEvent.prototype.previousDirEntry; | 13 DirectoryChangeEvent.prototype.previousDirEntry; |
| 67 | 14 |
| 68 /** @type {DirectoryEntry|FakeEntry} */ | 15 /** @type {DirectoryEntry|FakeEntry} */ |
| 69 DirectoryChangeEvent.prototype.newDirEntry; | 16 DirectoryChangeEvent.prototype.newDirEntry; |
| 70 | 17 |
| 71 /** @type {boolean} */ | 18 /** @type {boolean} */ |
| 72 DirectoryChangeEvent.prototype.volumeChanged; | 19 DirectoryChangeEvent.prototype.volumeChanged; |
| OLD | NEW |