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

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 7067020: Moving mediaplayer to the chrome filebrowser. Observable behaviour should not change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolved conflicts. Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 0db97a350fa8603a3ef334257a3b45ecfec40125..ecff2340b46bfae3fad5f6fe5b49a1285cf98c2d 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -5112,6 +5112,110 @@
]
},
{
+ "namespace": "mediaPlayerPrivate",
+ "nodoc": "true",
+ "types": [
+ {
+ "id": "Playlist",
+ "type": "object",
+ "description": "Mediaplayer playlist stored in the browser (it extsts even if the mediaplayer is closed).",
+ "properties": {
+ "items": {
+ "name": "items",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "path": { "type": "string", "description": "URL of mediafile (in 'filesystem:' scheme for local files)." },
+ "error": { "type": "boolean", "description": "True if the file has failed to play ('playbackError' with its URL called)." }
+ }
+ }
+ },
+ "position": {
+ "type": "integer",
+ "description": "Index of item in the 'items' array to play next."
+ },
+ "pendingPlaybackRequest": {
+ "type": "boolean",
+ "optional": "true",
+ "description": "Informs that a request to play current item has been received. This flag is reset automatically."
+ }
+ }
+ }
+ ],
+ "functions": [
+ {
+ "name": "playAt",
+ "description": "Sets playlist positions and sets flag of pending play request. Then fires the onPlaylistChanged event.",
+ "parameters": [
+ {
+ "name": "position",
+ "type": "integer",
+ "description": "New position in the playlist."
+ }
+ ]
+ },
+ {
+ "name": "setPlaybackError",
+ "description": "Marks the URL as failed to play one. Mediaplayer will visually marks such an item. Then fires the onPlaylistChanged event.",
+ "parameters": [
+ {
+ "name": "url",
+ "type": "string",
+ "description": "URL failed to play."
+ }
+ ]
+ },
+ {
+ "name": "getPlaylist",
+ "type": "function",
+ "description": "Returns current play list, position and flag of penging play request.",
+ "parameters": [
+ {
+ "name": "resetPendingPlaybackRequest",
+ "type": "boolean",
+ "description": "If true the result will include pending playback request status and this status will be reset."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "description": "Callback to retrieve the playlist.",
+ "parameters": [
+ {
+ "name": "playlist",
+ "$ref": "Playlist",
+ "description": "Mediaplayer playlist stored in the browser (it extsts even if the mediaplayer is closed)."
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "togglePlaylistPanel",
+ "description": "Shows or hides the playlist panel.",
+ "parameters": []
+ },
+ {
+ "name": "toggleFullscreen",
+ "description": "Switches fullscreen mode on/off for the mediaplayer.",
+ "parameters": []
+ },
+ {
+ "name": "showPlaylistPanel",
+ "description": "Shows the playlist panel.",
+ "parameters": []
+ }
+ ],
+ "events": [
+ {
+ "name": "onPlaylistChanged",
+ "type": "function",
+ "descrition": "Notifies that playlist content or state has been changed. Data could be retrieved via 'getPlaylist'.",
+ "parameters": []
+ }
+ ]
+ },
+ {
"namespace":"webstorePrivate",
"nodoc": "true",
"functions": [
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698