OLD | NEW |
---|---|
(Empty) | |
1 [ | |
2 { | |
3 "namespace": "experimental.mediaGalleries", | |
4 "nodoc": true, | |
5 "types": [ | |
6 { | |
7 "id": "MediaGallery", | |
8 "type": "object", | |
9 "description": "A class representing a media gallery on the user's machi nes." | |
jstritar
2012/02/16 21:34:18
do you need to define any properties on these?
vandebo (ex-Chrome)
2012/03/19 23:09:52
The full API is at go/galleryapi . As you can see
| |
10 }, | |
11 { | |
12 "id": "MediaFileMetadata", | |
13 "type": "object", | |
14 "description": "A class representing a metadata for a media file." | |
15 } | |
16 ], | |
17 "functions": [ | |
18 { | |
19 "name": "getMediaGalleries", | |
20 "type": "function", | |
21 "description": "Get the media galleries configured in this user agent. C alling getMediaGalleries will trigger a permission prompt for any origin that ha s not yet been granted permission.", | |
22 "parameters": [ | |
23 { | |
24 "type": "function", | |
25 "name": "callback", | |
26 "parameters": [ | |
27 { | |
28 "name": "galleries", | |
29 "type": "array", | |
30 "items": { "$ref": "MediaGallery"} | |
31 } | |
32 ] | |
33 } | |
34 ] | |
35 }, | |
36 { | |
37 "name": "openMediaGalleryManager", | |
38 "type": "function", | |
39 "description": "Open the user agent’s UI to configure galleries. Calling openMediaGalleryManager will trigger a permission prompt for any origin that ha s not yet been granted permission.", | |
40 "parameters": [] | |
41 }, | |
42 { | |
43 "name": "assembleMediaFile", | |
44 "type": "function", | |
45 "description": "Create a new MediaFile setting the metadata in the Blob to the supplied values, overriding any existing metadata in the media file. If user agent does not recognize the Blob as a supported file format, it will retu rn null in the callback.", | |
46 "parameters": [ | |
47 { | |
48 "type": "Blob", | |
49 "name": "mediaFileContents" | |
50 }, | |
51 { | |
52 "$ref": "MediaFileMetadata", | |
53 "name": "metadata" | |
54 }, | |
55 { | |
56 "type": "function", | |
57 "name": "callback", | |
58 "parameters": [ | |
59 { | |
60 "name": "mediaFile", | |
61 "choices": [ | |
62 { "type": "Blob" }, | |
63 { "type": "null" } | |
64 ] | |
65 } | |
66 ] | |
67 } | |
68 ] | |
69 }, | |
70 { | |
71 "name": "parseMediaFileMetadata", | |
72 "type": "function", | |
73 "description": "Parse the metadata in a given Blob. If the user agent do es not recognize the Blob as a supported file format, it will return null in the callback.", | |
74 "parameters": [ | |
75 { | |
76 "type": "Blob", | |
77 "name": "mediaFile" | |
78 }, | |
79 { | |
80 "type": "function", | |
81 "name": "callback", | |
82 "parameters": [ | |
83 { | |
84 "name": "metadata", | |
85 "choices": [ | |
86 {"$ref": "MediaFileMetadata"}, | |
87 { "type": "null" } | |
88 ] | |
89 } | |
90 ] | |
91 } | |
92 ] | |
93 } | |
94 ] | |
95 } | |
96 ] | |
OLD | NEW |