Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 "functions": [ | |
| 5118 { | |
| 5119 "name": "setPlaylistPositionAndPlay", | |
|
zel
2011/05/24 17:54:25
please rename to 'playAt'
SeRya
2011/05/25 14:23:49
Done.
| |
| 5120 "description": "Sets playlist positions and sets flag of pending play re quest. Then fires the onPlaylistChanged event.", | |
| 5121 "parameters": [ | |
| 5122 { | |
| 5123 "name": "position", | |
| 5124 "type": "integer", | |
| 5125 "description": "New position in the playlist." | |
| 5126 } | |
| 5127 ] | |
| 5128 }, | |
| 5129 { | |
| 5130 "name": "playbackError", | |
| 5131 "description": "Marks the URL as failed to play one. Mediaplayer will vi sually marks such an item. Then fires the onPlaylistChanged event.", | |
| 5132 "parameters": [ | |
| 5133 { | |
| 5134 "name": "url", | |
| 5135 "type": "string", | |
| 5136 "description": "URL failed to play." | |
| 5137 } | |
| 5138 ] | |
| 5139 }, | |
| 5140 { | |
| 5141 "name": "getPlaylist", | |
| 5142 "type": "function", | |
| 5143 "description": "Returns current play list, position and flag of penging play request. Resets flag of pending play request.", | |
| 5144 "parameters": [ | |
| 5145 { | |
| 5146 "name": "callback", | |
| 5147 "type": "function", | |
| 5148 "description": "Callback to retrieve the playlist.", | |
| 5149 "parameters": [ | |
| 5150 { | |
| 5151 "name": "playlist", | |
| 5152 "type": "object", | |
|
zel
2011/05/24 17:54:25
this object should be defined outside of the funct
SeRya
2011/05/25 14:23:49
Done.
| |
| 5153 "description": "Mediaplayer playlist stored in the browser (it e xtsts even if the mediaplayer is closed).", | |
| 5154 "properties": { | |
| 5155 "items": { | |
| 5156 "name": "items", | |
| 5157 "type": "array", | |
| 5158 "items": { | |
| 5159 "type": "object", | |
| 5160 "properties": { | |
| 5161 "path": { "type": "string", "description": "URL of media file (in 'filesystem:' scheme for local files)." }, | |
| 5162 "error": { "type": "boolean", "description": "True if th e file has failed to play ('playbackError' with its URL called)." } | |
| 5163 } | |
| 5164 } | |
| 5165 }, | |
| 5166 "position": { | |
| 5167 "type": "integer", | |
| 5168 "description": "Index of item in the 'items' array to play n ext." | |
| 5169 }, | |
| 5170 "pending_playback_request": { | |
| 5171 "type": "boolean", | |
| 5172 "description": "Informs that a request to play current item has been received. This flag is reset automatically." | |
| 5173 } | |
| 5174 } | |
| 5175 } | |
| 5176 ] | |
| 5177 } | |
| 5178 ] | |
| 5179 }, | |
| 5180 { | |
| 5181 "name": "togglePlaylistPanel", | |
| 5182 "description": "Shows or hides the playlist panel.", | |
| 5183 "parameters": [] | |
| 5184 }, | |
| 5185 { | |
| 5186 "name": "toggleFullscreen", | |
| 5187 "description": "Switches fullscreen mode on/off for the mediaplayer.", | |
| 5188 "parameters": [] | |
| 5189 }, | |
| 5190 { | |
| 5191 "name": "showPlaylistPanel", | |
|
zel
2011/05/24 17:54:25
Why do have both show and toggle Panel methods? Ca
SeRya
2011/05/25 14:23:49
This method was not used. I removed it.
| |
| 5192 "description": "Shows the playlist panel.", | |
| 5193 "parameters": [] | |
| 5194 } | |
| 5195 ], | |
| 5196 "events": [ | |
| 5197 { | |
| 5198 "name": "onPlaylistChanged", | |
| 5199 "type": "function", | |
| 5200 "descrition": "Notifies that playlist content or state has been changed. Data could be retrieved via 'getPlaylist'.", | |
| 5201 "parameters": [] | |
|
zel
2011/05/24 17:54:25
we we want to add details about what changed here?
SeRya
2011/05/25 14:23:49
I think we may keep it as is for now. We could pas
zel
2011/05/25 14:36:44
All right. We will remove this event anyway.
| |
| 5202 } | |
| 5203 ] | |
| 5204 }, | |
| 5205 { | |
| 5115 "namespace":"webstorePrivate", | 5206 "namespace":"webstorePrivate", |
| 5116 "nodoc": "true", | 5207 "nodoc": "true", |
| 5117 "functions": [ | 5208 "functions": [ |
| 5118 { | 5209 { |
| 5119 "name": "install", | 5210 "name": "install", |
| 5120 "description": "Installs the extension corresponding to the given id", | 5211 "description": "Installs the extension corresponding to the given id", |
| 5121 "parameters": [ | 5212 "parameters": [ |
| 5122 { | 5213 { |
| 5123 "name": "expected_id", | 5214 "name": "expected_id", |
| 5124 "type": "string", | 5215 "type": "string", |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5593 { | 5684 { |
| 5594 "type": "integer", | 5685 "type": "integer", |
| 5595 "name": "tabId", | 5686 "name": "tabId", |
| 5596 "description": "The id of the tab that was detached." | 5687 "description": "The id of the tab that was detached." |
| 5597 } | 5688 } |
| 5598 ] | 5689 ] |
| 5599 } | 5690 } |
| 5600 ] | 5691 ] |
| 5601 } | 5692 } |
| 5602 ] | 5693 ] |
| OLD | NEW |