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

Side by Side 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: Playlist doesn't reset pending playback request. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 5094 matching lines...) Expand 10 before | Expand all | Expand 10 after
5105 { 5105 {
5106 "$ref": "MountEvent", 5106 "$ref": "MountEvent",
5107 "name": "fullPath", 5107 "name": "fullPath",
5108 "description": "Mount event information." 5108 "description": "Mount event information."
5109 } 5109 }
5110 ] 5110 ]
5111 } 5111 }
5112 ] 5112 ]
5113 }, 5113 },
5114 { 5114 {
5115 "namespace": "mediaPlayerPrivate",
5116 "nodoc": "true",
5117 "types": [
5118 {
5119 "id": "Playlist",
5120 "type": "object",
5121 "description": "Mediaplayer playlist stored in the browser (it extsts ev en if the mediaplayer is closed).",
5122 "properties": {
5123 "items": {
5124 "name": "items",
5125 "type": "array",
5126 "items": {
5127 "type": "object",
5128 "properties": {
5129 "path": { "type": "string", "description": "URL of mediafile (in 'filesystem:' scheme for local files)." },
5130 "error": { "type": "boolean", "description": "True if the file h as failed to play ('playbackError' with its URL called)." }
5131 }
5132 }
5133 },
5134 "position": {
5135 "type": "integer",
5136 "description": "Index of item in the 'items' array to play next."
5137 },
5138 "pendingPlaybackRequest": {
5139 "type": "boolean",
5140 "optional": "true",
5141 "description": "Informs that a request to play current item has been received. This flag is reset automatically."
5142 }
5143 }
5144 }
5145 ],
5146 "functions": [
5147 {
5148 "name": "playAt",
5149 "description": "Sets playlist positions and sets flag of pending play re quest. Then fires the onPlaylistChanged event.",
5150 "parameters": [
5151 {
5152 "name": "position",
5153 "type": "integer",
5154 "description": "New position in the playlist."
5155 }
5156 ]
5157 },
5158 {
5159 "name": "setPlaybackError",
5160 "description": "Marks the URL as failed to play one. Mediaplayer will vi sually marks such an item. Then fires the onPlaylistChanged event.",
5161 "parameters": [
5162 {
5163 "name": "url",
5164 "type": "string",
5165 "description": "URL failed to play."
5166 }
5167 ]
5168 },
5169 {
5170 "name": "getPlaylist",
5171 "type": "function",
5172 "description": "Returns current play list, position and flag of penging play request.",
5173 "parameters": [
5174 {
5175 "name": "resetPendingPlaybackRequest",
5176 "type": "boolean",
5177 "description": "If true the result will include pending playback req uest status and this status will be reset."
5178 },
5179 {
5180 "name": "callback",
5181 "type": "function",
5182 "description": "Callback to retrieve the playlist.",
5183 "parameters": [
5184 {
5185 "name": "playlist",
5186 "$ref": "Playlist",
5187 "description": "Mediaplayer playlist stored in the browser (it e xtsts even if the mediaplayer is closed)."
5188 }
5189 ]
5190 }
5191 ]
5192 },
5193 {
5194 "name": "togglePlaylistPanel",
5195 "description": "Shows or hides the playlist panel.",
5196 "parameters": []
5197 },
5198 {
5199 "name": "toggleFullscreen",
5200 "description": "Switches fullscreen mode on/off for the mediaplayer.",
5201 "parameters": []
5202 },
5203 {
5204 "name": "showPlaylistPanel",
5205 "description": "Shows the playlist panel.",
5206 "parameters": []
5207 }
5208 ],
5209 "events": [
5210 {
5211 "name": "onPlaylistChanged",
5212 "type": "function",
5213 "descrition": "Notifies that playlist content or state has been changed. Data could be retrieved via 'getPlaylist'.",
5214 "parameters": []
5215 }
5216 ]
5217 },
5218 {
5115 "namespace":"webstorePrivate", 5219 "namespace":"webstorePrivate",
5116 "nodoc": "true", 5220 "nodoc": "true",
5117 "functions": [ 5221 "functions": [
5118 { 5222 {
5119 "name": "install", 5223 "name": "install",
5120 "description": "Installs the extension corresponding to the given id", 5224 "description": "Installs the extension corresponding to the given id",
5121 "parameters": [ 5225 "parameters": [
5122 { 5226 {
5123 "name": "expected_id", 5227 "name": "expected_id",
5124 "type": "string", 5228 "type": "string",
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
5593 { 5697 {
5594 "type": "integer", 5698 "type": "integer",
5595 "name": "tabId", 5699 "name": "tabId",
5596 "description": "The id of the tab that was detached." 5700 "description": "The id of the tab that was detached."
5597 } 5701 }
5598 ] 5702 ]
5599 } 5703 }
5600 ] 5704 ]
5601 } 5705 }
5602 ] 5706 ]
OLDNEW
« 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