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

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

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Use the <code>chrome.mediaGalleries</code> API to access media files (audio, 6 // Use the <code>chrome.mediaGalleries</code> API to access media files (audio,
7 // images, video) from the user's local disks (with the user's consent). 7 // images, video) from the user's local disks (with the user's consent).
8 namespace mediaGalleries { 8 namespace mediaGalleries {
9 9
10 [inline_doc] enum GalleryChangeType { 10 [inline_doc] enum GalleryChangeType {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 GetMediaFileSystemsInteractivity? interactive; 63 GetMediaFileSystemsInteractivity? interactive;
64 }; 64 };
65 65
66 [inline_doc] dictionary MediaMetadataOptions { 66 [inline_doc] dictionary MediaMetadataOptions {
67 // Specifies which subset of the metadata to retrieve. Defaults to 'all' 67 // Specifies which subset of the metadata to retrieve. Defaults to 'all'
68 // if the option is omitted. 68 // if the option is omitted.
69 GetMetadataType? metadataType; 69 GetMetadataType? metadataType;
70 }; 70 };
71 71
72 callback MediaFileSystemsCallback = 72 callback MediaFileSystemsCallback =
73 void ([instanceOf=DOMFileSystem] object[] mediaFileSystems); 73 void ([instanceOf=FileSystem] object[] mediaFileSystems);
74 74
75 callback AddUserFolderCallback = 75 callback AddUserFolderCallback =
76 void ([instanceOf=DOMFileSystem] object[] mediaFileSystems, 76 void ([instanceOf=FileSystem] object[] mediaFileSystems,
77 DOMString selectedFileSystemName); 77 DOMString selectedFileSystemName);
78 78
79 [nodefine] callback DropPermissionForMediaFileSystemCallback = void (); 79 [nodefine] callback DropPermissionForMediaFileSystemCallback = void ();
80 80
81 [inline_doc] dictionary MediaFileSystemMetadata { 81 [inline_doc] dictionary MediaFileSystemMetadata {
82 // The name of the file system. 82 // The name of the file system.
83 DOMString name; 83 DOMString name;
84 84
85 // A unique and persistent id for the media gallery. 85 // A unique and persistent id for the media gallery.
86 DOMString galleryId; 86 DOMString galleryId;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 // Show the user the scan results and let them add any or all of them as 206 // Show the user the scan results and let them add any or all of them as
207 // galleries. This should be used after the 'finish' onScanProgress() 207 // galleries. This should be used after the 'finish' onScanProgress()
208 // event has happened. All galleries the app has access to are returned, not 208 // event has happened. All galleries the app has access to are returned, not
209 // just the newly added galleries. 209 // just the newly added galleries.
210 [nodefine, deprecated="The mediaGalleries API no longer supports scanning."] 210 [nodefine, deprecated="The mediaGalleries API no longer supports scanning."]
211 static void addScanResults(MediaFileSystemsCallback callback); 211 static void addScanResults(MediaFileSystemsCallback callback);
212 212
213 // Get metadata about a specific media file system. 213 // Get metadata about a specific media file system.
214 [nocompile] static MediaFileSystemMetadata getMediaFileSystemMetadata( 214 [nocompile] static MediaFileSystemMetadata getMediaFileSystemMetadata(
215 [instanceOf=DOMFileSystem] object mediaFileSystem); 215 [instanceOf=FileSystem] object mediaFileSystem);
216 216
217 // Get metadata for all available media galleries. 217 // Get metadata for all available media galleries.
218 [nodefine, deprecated="Use getMediaFileSystemMetadata instead."] 218 [nodefine, deprecated="Use getMediaFileSystemMetadata instead."]
219 static void getAllMediaFileSystemMetadata( 219 static void getAllMediaFileSystemMetadata(
220 MediaFileSystemsMetadataCallback callback); 220 MediaFileSystemsMetadataCallback callback);
221 221
222 // Gets the media-specific metadata for a media file. This should work 222 // Gets the media-specific metadata for a media file. This should work
223 // for files in media galleries as well as other DOM filesystems. 223 // for files in media galleries as well as other DOM filesystems.
224 static void getMetadata([instanceOf=Blob] object mediaFile, 224 static void getMetadata([instanceOf=Blob] object mediaFile,
225 optional MediaMetadataOptions options, 225 optional MediaMetadataOptions options,
(...skipping 20 matching lines...) Expand all
246 interface Events { 246 interface Events {
247 // Fired when a media gallery is changed or a gallery watch is dropped. 247 // Fired when a media gallery is changed or a gallery watch is dropped.
248 static void onGalleryChanged(GalleryChangeDetails details); 248 static void onGalleryChanged(GalleryChangeDetails details);
249 249
250 // The pending media scan has changed state. See details for more 250 // The pending media scan has changed state. See details for more
251 // information. 251 // information.
252 [nodefine, deprecated="The mediaGalleries API no longer supports scanning."] 252 [nodefine, deprecated="The mediaGalleries API no longer supports scanning."]
253 static void onScanProgress(ScanProgressDetails details); 253 static void onScanProgress(ScanProgressDetails details);
254 }; 254 };
255 }; 255 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/log_private.idl ('k') | chrome/common/extensions/api/sync_file_system.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698