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

Side by Side Diff: chrome/common/extensions/api/experimental.mediaGalleries.json

Issue 9358076: Initial extension bindings for Media Gallery API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 [
2 {
3 "namespace": "experimental.mediaGalleries",
4 "nodoc": true,
5 "types": [
6 {
7 "id": "MediaGallery",
8 "type": "object",
jstritar 2012/03/21 00:02:02 you can add properties to the object if you know w
vandebo (ex-Chrome) 2012/03/21 16:17:57 I'll put the full defincition of this and other ob
9 "description": "A class representing a media gallery on the user's machi nes."
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.",
jstritar 2012/03/21 00:02:02 Do you mean these will just be protected by host p
vandebo (ex-Chrome) 2012/03/21 16:17:57 Sorry this comment is forward looking to a web sta
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": "object",
jstritar 2012/03/21 00:02:02 should this be type Blob?
vandebo (ex-Chrome) 2012/03/21 16:17:57 I had it as a blob but when I added the API test i
jstritar 2012/03/21 18:10:47 If you think there's a bug in there, can you file
vandebo (ex-Chrome) 2012/03/21 22:08:07 Filed http://crbug.com/119372
49 "description": "A Blob",
50 "name": "mediaFileContents"
51 },
52 {
53 "$ref": "MediaFileMetadata",
54 "name": "metadata"
55 },
56 {
57 "type": "function",
58 "name": "callback",
59 "parameters": [
60 {
61 "name": "mediaFile",
62 "choices": [
63 { "type": "Blob" },
64 { "type": "null" }
65 ]
66 }
67 ]
68 }
69 ]
70 },
71 {
72 "name": "parseMediaFileMetadata",
73 "type": "function",
74 "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.",
75 "parameters": [
76 {
77 "type": "object",
78 "description": "A Blob",
jstritar 2012/03/21 00:02:02 ditto
79 "name": "mediaFile"
80 },
81 {
82 "type": "function",
83 "name": "callback",
84 "parameters": [
85 {
86 "name": "metadata",
87 "choices": [
88 {"$ref": "MediaFileMetadata"},
89 { "type": "null" }
90 ]
91 }
92 ]
93 }
94 ]
95 }
96 ]
97 }
98 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698