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

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

Issue 9621021: DO NOT COMMIT (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix 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
« 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. 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 ]
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