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 /** @fileoverview Externs generated from namespace: fileManagerPrivate */ | 5 /** @fileoverview Externs generated from namespace: fileManagerPrivate */ |
6 | 6 |
7 /** | 7 /** |
8 * @typedef {{ | 8 * @typedef {{ |
9 * taskId: string, | 9 * taskId: string, |
10 * title: string, | 10 * title: string, |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 | 643 |
644 /** | 644 /** |
645 * Requests fetching list of actions for the specified set of entries. If not | 645 * Requests fetching list of actions for the specified set of entries. If not |
646 * possible, then returns an error via chrome.runtime.lastError. | 646 * possible, then returns an error via chrome.runtime.lastError. |
647 * @param {!Array<!Entry>} entries | 647 * @param {!Array<!Entry>} entries |
648 * @param {function((!Array<!EntryAction>|undefined))} callback | 648 * @param {function((!Array<!EntryAction>|undefined))} callback |
649 */ | 649 */ |
650 chrome.fileManagerPrivate.getCustomActions = function(entries, callback) {}; | 650 chrome.fileManagerPrivate.getCustomActions = function(entries, callback) {}; |
651 | 651 |
652 /** | 652 /** |
| 653 * Get the total size of a directory. |entry| Entry of the target directory. |
| 654 * |callback| |
| 655 * @param {!DirectoryEntry} entry |
| 656 * @param {function(number)} callback |
| 657 */ |
| 658 chrome.fileManagerPrivate.getDirectorySize = function(entry, callback) {}; |
| 659 |
| 660 /** |
653 * Executes the action on the specified set of entries. If not possible, then | 661 * Executes the action on the specified set of entries. If not possible, then |
654 * returns an error via chrome.runtime.lastError. | 662 * returns an error via chrome.runtime.lastError. |
655 * @param {!Array<!Entry>} entries | 663 * @param {!Array<!Entry>} entries |
656 * @param {string} actionId | 664 * @param {string} actionId |
657 * @param {function()} callback | 665 * @param {function()} callback |
658 */ | 666 */ |
659 chrome.fileManagerPrivate.executeCustomAction = function( | 667 chrome.fileManagerPrivate.executeCustomAction = function( |
660 entries, actionId, callback) {}; | 668 entries, actionId, callback) {}; |
661 | 669 |
662 /** @type {!ChromeEvent} */ | 670 /** @type {!ChromeEvent} */ |
(...skipping 20 matching lines...) Expand all Loading... |
683 /** @type {!ChromeEvent} */ | 691 /** @type {!ChromeEvent} */ |
684 chrome.fileManagerPrivate.onDriveSyncError; | 692 chrome.fileManagerPrivate.onDriveSyncError; |
685 | 693 |
686 /** @enum {string} */ | 694 /** @enum {string} */ |
687 chrome.fileManagerPrivate.Verb = { | 695 chrome.fileManagerPrivate.Verb = { |
688 OPEN_WITH: 'open_with', | 696 OPEN_WITH: 'open_with', |
689 ADD_TO: 'add_to', | 697 ADD_TO: 'add_to', |
690 PACK_WITH: 'pack_with', | 698 PACK_WITH: 'pack_with', |
691 SHARE_WITH: 'share_with', | 699 SHARE_WITH: 'share_with', |
692 }; | 700 }; |
OLD | NEW |