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

Unified Diff: third_party/chrome/idl/media_player_private.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « third_party/chrome/idl/media_galleries_private.idl ('k') | third_party/chrome/idl/metrics_private.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/media_player_private.json
diff --git a/third_party/chrome/idl/media_player_private.json b/third_party/chrome/idl/media_player_private.json
new file mode 100644
index 0000000000000000000000000000000000000000..ed7be05f46689f732ee33ff928a38041aad1b3b5
--- /dev/null
+++ b/third_party/chrome/idl/media_player_private.json
@@ -0,0 +1,109 @@
+// 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": "mediaPlayerPrivate",
+ "nodoc": "true",
+ "types": [
+ {
+ "id": "Playlist",
+ "type": "object",
+ "description": "Mediaplayer playlist stored in the browser (it exists even if the mediaplayer is closed).",
+ "properties": {
+ "items": {
+ "name": "items",
+ "type": "array",
+ "description": "Array of URLs for media files (in 'filesystem:' scheme for local files)",
+ "items": { "type": "string" }
+ },
+ "position": {
+ "type": "integer",
+ "description": "A position in the playlist."
+ }
+ }
+ }
+ ],
+ "functions": [
+ {
+ "name": "play",
+ "description": "Plays a new playlist from a given position.",
+ "parameters": [
+ {
+ "name": "items",
+ "type": "array",
+ "description": "Array of URLs for media files (in 'filesystem:' scheme for local files)",
+ "items": { "type": "string" }
+ },
+ {
+ "name": "position",
+ "type": "integer",
+ "description": "A position in the playlist."
+ }
+ ]
+ },
+ {
+ "name": "getPlaylist",
+ "type": "function",
+ "description": "Returns current playlist and position.",
+ "parameters": [
+ {
+ "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": "setWindowHeight",
+ "description": "Changes the height of the media player window.",
+ "parameters": [
+ {
+ "name": "height",
+ "type": "integer",
+ "description": "Height of the media player window (not including window title or borders)."
+ }
+ ]
+ },
+ {
+ "name": "closeWindow",
+ "description": "Closes the media player window.",
+ "parameters": []
+ }
+ ],
+ "events": [
+ {
+ "name": "onNextTrack",
+ "type": "function",
+ "description": "Notifies that the next track was requested.",
+ "parameters": []
+ },
+ {
+ "name": "onPlaylistChanged",
+ "type": "function",
+ "description": "Notifies that playlist content or state has been changed. Data could be retrieved via 'getPlaylist'.",
+ "parameters": []
+ },
+ {
+ "name": "onPrevTrack",
+ "type": "function",
+ "description": "Notifies that the previous tack was requested.",
+ "parameters": []
+ },
+ {
+ "name": "onTogglePlayState",
+ "type": "function",
+ "description": "Notifies that a play/pause toggle was requested.",
+ "parameters": []
+ }
+ ]
+ }
+]
« no previous file with comments | « third_party/chrome/idl/media_galleries_private.idl ('k') | third_party/chrome/idl/metrics_private.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698