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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 7457001: Adding support for mount point different from removable devices to MountLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
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 5158 matching lines...) Expand 10 before | Expand all | Expand 10 after
5169 "type": "boolean", 5169 "type": "boolean",
5170 "description": "Flag that specifies if volume is mounted in read-onl y mode." 5170 "description": "Flag that specifies if volume is mounted in read-onl y mode."
5171 }, 5171 },
5172 "totalSizeKB": { 5172 "totalSizeKB": {
5173 "type": "integer", 5173 "type": "integer",
5174 "description": "Total disk volume size in KBs" 5174 "description": "Total disk volume size in KBs"
5175 } 5175 }
5176 } 5176 }
5177 }, 5177 },
5178 { 5178 {
5179 "id": "MountPointInfo",
5180 "type": "object",
5181 "description": "Mounted point information.",
5182 "properties": {
5183 "mountPath": {
5184 "type": "string",
5185 "description": "Disk volume mount point path. The value corresponds to its Entry.fullPath in File API."
5186 },
5187 "sourcePath": {
5188 "type": "string",
5189 "description": "The path to the mounted resource. Either a device pa th, or a path to an archive file."
5190 },
5191 "mountType": {
5192 "type": "string",
5193 "enum": ["device", "file", "network"],
5194 "description": "Type of the mount."
5195 }
5196 }
5197 },
5198 {
5179 "id": "VolumeMetadata", 5199 "id": "VolumeMetadata",
5180 "type": "object", 5200 "type": "object",
5181 "description": "Mounted disk volume metadata.", 5201 "description": "Mounted disk volume metadata.",
5182 "properties": { 5202 "properties": {
5183 "mountPath": { 5203 "mountPath": {
5184 "type": "string", 5204 "type": "string",
5185 "description": "Disk volume mount point path." 5205 "description": "Disk volume mount point path."
5186 }, 5206 },
5187 "devicePath": { 5207 "devicePath": {
5188 "type": "string", 5208 "type": "string",
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
5241 "enum": ["added", "removed"], 5261 "enum": ["added", "removed"],
5242 "description": "Event type that tells listeners which disk volume ev en was raised." 5262 "description": "Event type that tells listeners which disk volume ev en was raised."
5243 }, 5263 },
5244 "volumeInfo": { 5264 "volumeInfo": {
5245 "$ref": "VolumeInfo", 5265 "$ref": "VolumeInfo",
5246 "description":"Volume information that this mount event applies to." 5266 "description":"Volume information that this mount event applies to."
5247 } 5267 }
5248 } 5268 }
5249 }, 5269 },
5250 { 5270 {
5271 "id": "MountCompletedEvent",
5272 "type": "object",
5273 "description": "Payload data for mount event.",
5274 "properties": {
5275 "eventType": {
5276 "type": "string",
5277 "enum": ["mount", "unmount"],
5278 "description": "Is the event raised for mounting or unmounting."
5279 },
5280 "status": {
5281 "type": "string",
5282 "enum": ["success", "error_unknown", "error_internal",
5283 "error_unknown_filesystem", "error_unsuported_filesystem",
5284 "error_invalid_archive", "error_libcros_missing"],
5285 "description": "Event type that tells listeners if mount was success full or an error occurred. It also specifies the error."
5286 },
5287 "sourcePath": {
5288 "type": "string",
5289 "description": "Path that has been mounted."
5290 },
5291 "mountPath": {
5292 "type": "string",
5293 "optional": true,
5294 "description": "Path that sourcePath was mounted to."
5295 },
5296 "mountType": {
5297 "type": "string",
5298 "enum": ["device", "file", "network"],
5299 "description": "Type of the mount."
5300 }
5301 }
5302 },
5303 {
5251 "id": "FileWatchEvent", 5304 "id": "FileWatchEvent",
5252 "type": "object", 5305 "type": "object",
5253 "description": "Payload data for disk mount / unmount event.", 5306 "description": "Payload data for disk mount / unmount event.",
5254 "properties": { 5307 "properties": {
5255 "eventType": { 5308 "eventType": {
5256 "type": "string", 5309 "type": "string",
5257 "enum": ["changed", "error"], 5310 "enum": ["changed", "error"],
5258 "description": "Specifies type of event that is raised." 5311 "description": "Specifies type of event that is raised."
5259 }, 5312 },
5260 "fileUrl": { 5313 "fileUrl": {
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
5474 "name" : "volumeMetadata", 5527 "name" : "volumeMetadata",
5475 "$ref": "VolumeMetadata", 5528 "$ref": "VolumeMetadata",
5476 "optional": "true", 5529 "optional": "true",
5477 "description": "A requested metadata dictionary object. null if there is no volume with selected devicePath" 5530 "description": "A requested metadata dictionary object. null if there is no volume with selected devicePath"
5478 } 5531 }
5479 ] 5532 ]
5480 } 5533 }
5481 ] 5534 ]
5482 }, 5535 },
5483 { 5536 {
5484 "name": "unmountVolume", 5537 "name": "addMount",
5485 "description": "Unmounts specified volume", 5538 "type": "function",
5539 "description": "Mount a resource or a file.",
5486 "parameters": [ 5540 "parameters": [
5487 { 5541 {
5488 "name": "devicePath", 5542 "name": "source",
5489 "type": "string", 5543 "type": "string",
5490 "description": "Device path of the volume." 5544 "description": "Mount point source. For compressed files it is relat ive file path within external file system"
5545 },
5546 {
5547 "name": "mountType",
5548 "type": "string",
5549 "enum": ["device", "file", "network"],
5550 "description": "Mount point type. 'file' for compressed files"
5551 },
5552 {
5553 "name": "options",
5554 "type": "object",
5555 "description": "Name/value pairs for source specific options",
5556 "optional": "true"
5491 } 5557 }
5492 ] 5558 ]
5559 },
5560 {
5561 "name": "removeMount",
5562 "description": "Unmounts a mounted resource.",
5563 "parameters": [
5564 {
5565 "name": "mountPath",
5566 "type": "string",
5567 "description": "A path of the mount."
5568 }
5569 ]
5570 },
5571 {
5572 "name": "getMountPoints",
5573 "description": "Get the list of mount points.",
5574 "returns": {
5575 "type": "object",
5576 "items": {"$ref": "MountPointInfo"},
5577 "description": "The dictionary with mount point paths as elements and MountPointInfo as values."
5578 }
5493 } 5579 }
5494 ], 5580 ],
5495 "events": [ 5581 "events": [
5496 { 5582 {
5497 "name": "onDiskChanged", 5583 "name": "onDiskChanged",
5498 "type": "function", 5584 "type": "function",
5499 "description": "Fired when disk mount/unmount event is detected.", 5585 "description": "Fired when disk mount/unmount event is detected.",
5500 "parameters": [ 5586 "parameters": [
5501 { 5587 {
5502 "$ref": "MountEvent", 5588 "$ref": "MountEvent",
5503 "name": "event", 5589 "name": "event",
5504 "description": "Mount event information." 5590 "description": "Mount event information."
5505 } 5591 }
5506 ] 5592 ]
5507 }, 5593 },
5508 { 5594 {
5595 "name": "onMountCompleted",
5596 "type": "function",
5597 "description": "Fired when mount event is detected.",
5598 "parameters": [
5599 {
5600 "$ref": "MountCompletedEvent",
5601 "name": "event",
5602 "description": "MountCompleted event information."
5603 }
5604 ]
5605 },
5606 {
5509 "name": "onFileChanged", 5607 "name": "onFileChanged",
5510 "type": "function", 5608 "type": "function",
5511 "description": "Fired when watched file change event is detected.", 5609 "description": "Fired when watched file change event is detected.",
5512 "parameters": [ 5610 "parameters": [
5513 { 5611 {
5514 "$ref": "FileWatchEvent", 5612 "$ref": "FileWatchEvent",
5515 "name": "event", 5613 "name": "event",
5516 "description": "File watch event information." 5614 "description": "File watch event information."
5517 } 5615 }
5518 ] 5616 ]
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
6378 "name": "details", 6476 "name": "details",
6379 "properties": { 6477 "properties": {
6380 "extensionId": { 6478 "extensionId": {
6381 "type": "string", 6479 "type": "string",
6382 "optional": true, 6480 "optional": true,
6383 "description": "An optional id to do notifications for an app ot her than the calling app. This is just to allow prototyping with an extension th at sends notifications on behalf of apps that don't support notifications yet; t his will be removed before the API becomes stable." 6481 "description": "An optional id to do notifications for an app ot her than the calling app. This is just to allow prototyping with an extension th at sends notifications on behalf of apps that don't support notifications yet; t his will be removed before the API becomes stable."
6384 }, 6482 },
6385 "title": { 6483 "title": {
6386 "type": "string", 6484 "type": "string",
6387 "optional": true, 6485 "optional": true,
6388 "description": "The title of the notification." 6486 "description": "The title of the notification."
6389 }, 6487 },
6390 "bodyText": { 6488 "bodyText": {
6391 "type": "string", 6489 "type": "string",
6392 "optional": true, 6490 "optional": true,
6393 "description": "The text content of the notification." 6491 "description": "The text content of the notification."
6394 }, 6492 },
6395 "linkUrl": { 6493 "linkUrl": {
6396 "type": "string", 6494 "type": "string",
6397 "optional": true, 6495 "optional": true,
6398 "description": "The URL for an optional link to show along with the notification. If you specify a linkUrl, you must also specify a value for li nkText." 6496 "description": "The URL for an optional link to show along with the notification. If you specify a linkUrl, you must also specify a value for li nkText."
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
6545 "description": "A string result code. The value is non-empty on success only in tests.", 6643 "description": "A string result code. The value is non-empty on success only in tests.",
6546 "optional": "true" 6644 "optional": "true"
6547 } 6645 }
6548 ] 6646 ]
6549 } 6647 }
6550 ] 6648 ]
6551 } 6649 }
6552 ] 6650 ]
6553 } 6651 }
6554 ] 6652 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698