| Index: chrome/common/extensions/api/experimental.mediaGalleries.json
|
| diff --git a/chrome/common/extensions/api/experimental.mediaGalleries.json b/chrome/common/extensions/api/experimental.mediaGalleries.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e4b658d865279f35ea678eb3fc05736fa779a2c9
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/api/experimental.mediaGalleries.json
|
| @@ -0,0 +1,105 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +[
|
| + {
|
| + "namespace": "experimental.mediaGalleries",
|
| + "types": [
|
| + {
|
| + "id": "MediaGallery",
|
| + "type": "object",
|
| + "description": "A class representing a media gallery on the user's machines."
|
| + },
|
| + {
|
| + "id": "MediaFileMetadata",
|
| + "type": "object",
|
| + "description": "A class representing a metadata for a media file."
|
| + }
|
| + ],
|
| + "functions": [
|
| + {
|
| + "name": "getMediaGalleries",
|
| + "type": "function",
|
| + "description": "Get the media galleries configured in this user agent.",
|
| + "parameters": [
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "parameters": [
|
| + {
|
| + "name": "galleries",
|
| + "type": "array",
|
| + "items": { "$ref": "MediaGallery"}
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "openMediaGalleryManager",
|
| + "type": "function",
|
| + "description": "Open the user agent’s UI to configure galleries.",
|
| + "parameters": []
|
| + },
|
| + {
|
| + "name": "assembleMediaFile",
|
| + "type": "function",
|
| + "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 return null in the callback.",
|
| + "parameters": [
|
| + {
|
| + // TODO(vandebo) Make this a non-optional Blob when
|
| + // http://crbug.com/119372 is resolved.
|
| + "type": "object",
|
| + "optional": true,
|
| + "name": "mediaFileContents"
|
| + },
|
| + {
|
| + "$ref": "MediaFileMetadata",
|
| + "name": "metadata"
|
| + },
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "parameters": [
|
| + {
|
| + "name": "mediaFile",
|
| + "choices": [
|
| + { "type": "Blob" },
|
| + { "type": "null" }
|
| + ]
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "parseMediaFileMetadata",
|
| + "type": "function",
|
| + "description": "Parse the metadata in a given Blob. If the user agent does not recognize the Blob as a supported file format, it will return null in the callback.",
|
| + "parameters": [
|
| + {
|
| + // TODO(vandebo) Make this a non-optional Blob when
|
| + // http://crbug.com/119372 is resolved.
|
| + "type": "object",
|
| + "optional": true,
|
| + "name": "mediaFile"
|
| + },
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "parameters": [
|
| + {
|
| + "name": "metadata",
|
| + "choices": [
|
| + {"$ref": "MediaFileMetadata"},
|
| + { "type": "null" }
|
| + ]
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + }
|
| +]
|
|
|