Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(822)

Side by Side Diff: chrome/common/extensions/api/file_manager_private.idl

Issue 985533004: Implement chrome.fileSystem.requestFileSystem(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed kiosk mode. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // fileManagerPrivate API. 5 // fileManagerPrivate API.
6 // This is a private API used by the file browser of ChromeOS. 6 // This is a private API used by the file browser of ChromeOS.
7 [platforms=("chromeos"), 7 [platforms=("chromeos"),
8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr ivate_api_functions.h"] 8 implemented_in="chrome/browser/chromeos/extensions/file_manager/file_manager_pr ivate_api_functions.h"]
9 namespace fileManagerPrivate { 9 namespace fileManagerPrivate {
10 // Type of the mounted volume. 10 // Type of the mounted volume.
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 586
587 // |profiles| List of profile information. 587 // |profiles| List of profile information.
588 // |runningProfile| ID of the profile that runs the application instance. 588 // |runningProfile| ID of the profile that runs the application instance.
589 // |showingProfile| ID of the profile that shows the application window. 589 // |showingProfile| ID of the profile that shows the application window.
590 callback GetProfilesCallback = void(ProfileInfo[] profiles, 590 callback GetProfilesCallback = void(ProfileInfo[] profiles,
591 DOMString runningProfile, 591 DOMString runningProfile,
592 DOMString displayProfile); 592 DOMString displayProfile);
593 593
594 // |entryUrl| URL of an entry in a normal file system. 594 // |entryUrl| URL of an entry in a normal file system.
595 callback ResolveEntriesCallback = 595 callback ResolveEntriesCallback =
596 void([instanceOf=FileEntry] object[] entries); 596 void([instanceOf=Entry] object[] entries);
597 597
598 // |checksum| Result checksum. 598 // |checksum| Result checksum.
599 callback ComputeChecksumCallback = void(DOMString checksum); 599 callback ComputeChecksumCallback = void(DOMString checksum);
600 600
601 interface Functions { 601 interface Functions {
602 // Logout the current user for navigating to the re-authentication screen for 602 // Logout the current user for navigating to the re-authentication screen for
603 // the Google account. 603 // the Google account.
604 static void logoutUserForReauthentication(); 604 static void logoutUserForReauthentication();
605 605
606 // Cancels file selection. 606 // Cancels file selection.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 // |fileUrl| URL of file to watch 645 // |fileUrl| URL of file to watch
646 // |callback| 646 // |callback|
647 static void addFileWatch(DOMString fileUrl, AddFileWatchCallback callback); 647 static void addFileWatch(DOMString fileUrl, AddFileWatchCallback callback);
648 648
649 // Removes file watch. 649 // Removes file watch.
650 // |fileUrl| URL of watched file to remove 650 // |fileUrl| URL of watched file to remove
651 // |callback| 651 // |callback|
652 static void removeFileWatch(DOMString fileUrl, 652 static void removeFileWatch(DOMString fileUrl,
653 RemoveFileWatchCallback callback); 653 RemoveFileWatchCallback callback);
654 654
655 // Requests access to a file system volume.
656 // |volumeId| The ID of the file system volume to request. The volume ID is
657 // delivered to JavaScript as part of VolumeMetadata.
658 // |callback|
659 static void requestFileSystem(DOMString volumeId,
660 RequestFileSystemCallback callback);
661
662 // Enables the extenal file scheme necessary to initiate drags to the browser 655 // Enables the extenal file scheme necessary to initiate drags to the browser
663 // window for files on the external backend. 656 // window for files on the external backend.
664 static void enableExternalFileScheme(); 657 static void enableExternalFileScheme();
665 658
666 // Requests granting R/W permissions for the passed entries. It's a best 659 // Requests granting R/W permissions for the passed entries. It's a best
667 // effort operation. Some files may not be granted access if the url is 660 // effort operation. Some files may not be granted access if the url is
668 // invalid or not backed by the external file system. 661 // invalid or not backed by the external file system.
669 // |entryUrls| Urls for the entries to be accessed. 662 // |entryUrls| Urls for the entries to be accessed.
670 // |callback| 663 // |callback|
671 static void grantAccess(DOMString[] entryUrls, SimpleCallback callback); 664 static void grantAccess(DOMString[] entryUrls, SimpleCallback callback);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 696
704 // Pins/unpins a Drive file in the cache. 697 // Pins/unpins a Drive file in the cache.
705 // |fileUrl| URL of a file to pin/unpin. 698 // |fileUrl| URL of a file to pin/unpin.
706 // |pin| Pass true to pin the file. 699 // |pin| Pass true to pin the file.
707 // |callback| Completion callback. $(ref:runtime.lastError) will be set if 700 // |callback| Completion callback. $(ref:runtime.lastError) will be set if
708 // there was an error. 701 // there was an error.
709 static void pinDriveFile(DOMString fileUrl, 702 static void pinDriveFile(DOMString fileUrl,
710 boolean pin, 703 boolean pin,
711 optional SimpleCallback callback); 704 optional SimpleCallback callback);
712 705
713 // Resolves file entries in the isolated file system and returns corresponding 706 // Resolves entries in the isolated file system and returns corresponding
714 // entries in the external file system mounted to Chrome OS file manager 707 // entries in the external file system mounted to Chrome OS file manager
715 // backend. If resolving entry fails, the entry will be just ignored and the 708 // backend. If resolving entry fails, the entry will be just ignored and the
716 // corresponding entry does not appear in the result. 709 // corresponding entry does not appear in the result.
717 [nocompile] 710 [nocompile]
718 static void resolveIsolatedEntries( 711 static void resolveIsolatedEntries(
719 [instanceOf=FileEntry] object[] entries, 712 [instanceOf=Entry] object[] entries,
720 ResolveEntriesCallback callback); 713 ResolveEntriesCallback callback);
721 714
722 // Mount a resource or a file. 715 // Mount a resource or a file.
723 // |source| Mount point source. For compressed files it is relative file path 716 // |source| Mount point source. For compressed files it is relative file path
724 // within external file system 717 // within external file system
725 // |callback| 718 // |callback|
726 static void addMount(DOMString source, AddMountCallback callback); 719 static void addMount(DOMString source, AddMountCallback callback);
727 720
728 // Unmounts a mounted resource. 721 // Unmounts a mounted resource.
729 // |volumeId| An ID of the volume. 722 // |volumeId| An ID of the volume.
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 885
893 static void onPreferencesChanged(); 886 static void onPreferencesChanged();
894 887
895 static void onDriveConnectionStatusChanged(); 888 static void onDriveConnectionStatusChanged();
896 889
897 static void onDeviceChanged(DeviceEvent event); 890 static void onDeviceChanged(DeviceEvent event);
898 891
899 static void onDriveSyncError(DriveSyncErrorEvent event); 892 static void onDriveSyncError(DriveSyncErrorEvent event);
900 }; 893 };
901 }; 894 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698