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

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: Address comments Created 8 years, 8 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 [
6 {
7 "namespace": "experimental.mediaGalleries",
8 "types": [
9 {
10 "id": "MediaGallery",
11 "type": "object",
12 "description": "A class representing a media gallery on the user's machi nes."
13 },
14 {
15 "id": "MediaFileMetadata",
16 "type": "object",
17 "description": "A class representing a metadata for a media file."
18 }
19 ],
20 "functions": [
21 {
22 "name": "getMediaGalleries",
23 "type": "function",
24 "description": "Get the media galleries configured in this user agent.",
25 "parameters": [
26 {
27 "type": "function",
28 "name": "callback",
29 "parameters": [
30 {
31 "name": "galleries",
32 "type": "array",
33 "items": { "$ref": "MediaGallery"}
34 }
35 ]
36 }
37 ]
38 },
39 {
40 "name": "openMediaGalleryManager",
41 "type": "function",
42 "description": "Open the user agent’s UI to configure galleries.",
43 "parameters": []
44 },
45 {
46 "name": "assembleMediaFile",
47 "type": "function",
48 "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.",
49 "parameters": [
50 {
51 // TODO(vandebo) Make this a non-optional Blob when
52 // http://crbug.com/119372 is resolved.
53 "type": "object",
54 "optional": true,
55 "name": "mediaFileContents"
56 },
57 {
58 "$ref": "MediaFileMetadata",
59 "name": "metadata"
60 },
61 {
62 "type": "function",
63 "name": "callback",
64 "parameters": [
65 {
66 "name": "mediaFile",
67 "choices": [
68 { "type": "Blob" },
69 { "type": "null" }
70 ]
71 }
72 ]
73 }
74 ]
75 },
76 {
77 "name": "parseMediaFileMetadata",
78 "type": "function",
79 "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.",
80 "parameters": [
81 {
82 // TODO(vandebo) Make this a non-optional Blob when
83 // http://crbug.com/119372 is resolved.
84 "type": "object",
85 "optional": true,
86 "name": "mediaFile"
87 },
88 {
89 "type": "function",
90 "name": "callback",
91 "parameters": [
92 {
93 "name": "metadata",
94 "choices": [
95 {"$ref": "MediaFileMetadata"},
96 { "type": "null" }
97 ]
98 }
99 ]
100 }
101 ]
102 }
103 ]
104 }
105 ]
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