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

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

Issue 9837012: 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 [
Aaron Boodman 2012/03/29 05:28:30 license header
vandebo (ex-Chrome) 2012/03/29 18:45:02 Done.
2 {
3 "namespace": "experimental.mediaGalleries",
4 "nodoc": true,
Aaron Boodman 2012/03/29 05:28:30 Not necessary.
vandebo (ex-Chrome) 2012/03/29 18:45:02 Done.
5 "types": [
6 {
7 "id": "MediaGallery",
8 "type": "object",
9 "description": "A class representing a media gallery on the user's machi nes."
Aaron Boodman 2012/03/29 05:28:30 You can say: isInstanceOf: "MediaGallery" to decla
vandebo (ex-Chrome) 2012/03/29 18:45:02 Not sure what you're getting at here. Eventually
Aaron Boodman 2012/03/30 22:14:57 It doesn't seem like a great idea to me to duplica
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.",
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.",
Aaron Boodman 2012/03/29 05:28:30 Is this comment right? Extension and App APIs don'
vandebo (ex-Chrome) 2012/03/29 18:45:02 No, I copy and pasted from my initial description
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",
49 "optional": true,
50 "description": "A Blob - marked as optional object until bug 119372 is resolved.",
Aaron Boodman 2012/03/29 05:28:30 These files support comments, so you can just have
vandebo (ex-Chrome) 2012/03/29 18:45:02 Done.
51 "name": "mediaFileContents"
52 },
53 {
54 "$ref": "MediaFileMetadata",
55 "name": "metadata"
56 },
57 {
58 "type": "function",
59 "name": "callback",
60 "parameters": [
61 {
62 "name": "mediaFile",
63 "choices": [
64 { "type": "Blob" },
65 { "type": "null" }
66 ]
67 }
68 ]
69 }
70 ]
71 },
72 {
73 "name": "parseMediaFileMetadata",
74 "type": "function",
75 "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.",
76 "parameters": [
77 {
78 "type": "object",
79 "optional": true,
80 "description": "A Blob - marked as optional object until bug 119372 is resolved.",
81 "name": "mediaFile"
82 },
83 {
84 "type": "function",
85 "name": "callback",
86 "parameters": [
87 {
88 "name": "metadata",
89 "choices": [
90 {"$ref": "MediaFileMetadata"},
91 { "type": "null" }
92 ]
93 }
94 ]
95 }
96 ]
97 }
98 ]
99 }
100 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698