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

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: Address comment 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
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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."
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.",
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",
vandebo (ex-Chrome) 2012/03/23 01:03:24 This is actually the argument that's giving me tro
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": [
Aaron Boodman 2012/03/22 21:58:14 You can just mark the param optional - you don't n
vandebo (ex-Chrome) 2012/03/23 01:03:24 Since this is a callback, i.e. not the user's opti
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",
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
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/api/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698