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

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: add MountType type to extension_api.json 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/imageburner/webui_handler.h ('k') | no next file » | 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 5154 matching lines...) Expand 10 before | Expand all | Expand 10 after
5165 "type": "boolean", 5165 "type": "boolean",
5166 "description": "Flag that specifies if volume is mounted in read-onl y mode." 5166 "description": "Flag that specifies if volume is mounted in read-onl y mode."
5167 }, 5167 },
5168 "totalSizeKB": { 5168 "totalSizeKB": {
5169 "type": "integer", 5169 "type": "integer",
5170 "description": "Total disk volume size in KBs" 5170 "description": "Total disk volume size in KBs"
5171 } 5171 }
5172 } 5172 }
5173 }, 5173 },
5174 { 5174 {
5175 "id": "MountType",
zel 2011/07/22 21:12:23 remove this type, see below
tbarzic 2011/07/22 22:04:48 Done.
5176 "type": "string",
5177 "enum": ["device", "file", "network"],
5178 "description": "Type of the mount."
5179
5180 },
5181 {
5175 "id": "VolumeMetadata", 5182 "id": "VolumeMetadata",
5176 "type": "object", 5183 "type": "object",
5177 "description": "Mounted disk volume metadata.", 5184 "description": "Mounted disk volume metadata.",
5178 "properties": { 5185 "properties": {
5179 "mountPath": { 5186 "mountPath": {
5180 "type": "string", 5187 "type": "string",
5181 "description": "Disk volume mount point path." 5188 "description": "Disk volume mount point path."
5182 }, 5189 },
5183 "devicePath": { 5190 "devicePath": {
5184 "type": "string", 5191 "type": "string",
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
5237 "enum": ["added", "removed"], 5244 "enum": ["added", "removed"],
5238 "description": "Event type that tells listeners which disk volume ev en was raised." 5245 "description": "Event type that tells listeners which disk volume ev en was raised."
5239 }, 5246 },
5240 "volumeInfo": { 5247 "volumeInfo": {
5241 "$ref": "VolumeInfo", 5248 "$ref": "VolumeInfo",
5242 "description":"Volume information that this mount event applies to." 5249 "description":"Volume information that this mount event applies to."
5243 } 5250 }
5244 } 5251 }
5245 }, 5252 },
5246 { 5253 {
5254 "id": "MountCompletedEvent",
5255 "type": "object",
5256 "description": "Payload data for mount event.",
5257 "properties": {
5258 "eventType": {
zel 2011/07/22 21:12:23 let's make eventType being just 'mount', 'unmount'
tbarzic 2011/07/22 22:04:48 Done.
5259 "type": "string",
5260 "enum": ["success", "unknown", "internal", "unknown_filesystem",
5261 "unsuported_filesystem", "invalid_archive",
5262 "libcros_missing", "path_unmounted"],
5263 "description": "Event type that tells listeners if mount was success full or an error occurred. It also specifies the error."
5264 },
5265 "sourcePath": {
5266 "type": "string",
5267 "description": "Path that has been mounted."
5268 },
5269 "mountPath": {
5270 "type": "string",
5271 "optional": true,
5272 "description": "Path that sourcePath was mounted to."
5273 },
5274 "mountType": {
5275 "$ref": "MountType",
zel 2011/07/22 21:12:23 make this string and put that enum here as : "typ
tbarzic 2011/07/22 22:04:48 Done.
5276 "description": "Type of the mount."
5277 }
5278 }
5279 },
5280 {
5247 "id": "FileWatchEvent", 5281 "id": "FileWatchEvent",
5248 "type": "object", 5282 "type": "object",
5249 "description": "Payload data for disk mount / unmount event.", 5283 "description": "Payload data for disk mount / unmount event.",
5250 "properties": { 5284 "properties": {
5251 "eventType": { 5285 "eventType": {
5252 "type": "string", 5286 "type": "string",
5253 "enum": ["changed", "error"], 5287 "enum": ["changed", "error"],
5254 "description": "Specifies type of event that is raised." 5288 "description": "Specifies type of event that is raised."
5255 }, 5289 },
5256 "fileUrl": { 5290 "fileUrl": {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
5495 "description": "Fired when disk mount/unmount event is detected.", 5529 "description": "Fired when disk mount/unmount event is detected.",
5496 "parameters": [ 5530 "parameters": [
5497 { 5531 {
5498 "$ref": "MountEvent", 5532 "$ref": "MountEvent",
5499 "name": "event", 5533 "name": "event",
5500 "description": "Mount event information." 5534 "description": "Mount event information."
5501 } 5535 }
5502 ] 5536 ]
5503 }, 5537 },
5504 { 5538 {
5539 "name": "onMountCompleted",
5540 "type": "function",
5541 "description": "Fired when mount event is detected.",
5542 "parameters": [
5543 {
5544 "$ref": "MountCompletedEvent",
5545 "name": "event",
5546 "description": "MountCompleted event information."
5547 }
5548 ]
5549 },
5550 {
5505 "name": "onFileChanged", 5551 "name": "onFileChanged",
5506 "type": "function", 5552 "type": "function",
5507 "description": "Fired when watched file change event is detected.", 5553 "description": "Fired when watched file change event is detected.",
5508 "parameters": [ 5554 "parameters": [
5509 { 5555 {
5510 "$ref": "FileWatchEvent", 5556 "$ref": "FileWatchEvent",
5511 "name": "event", 5557 "name": "event",
5512 "description": "File watch event information." 5558 "description": "File watch event information."
5513 } 5559 }
5514 ] 5560 ]
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
6541 "description": "A string result code. The value is non-empty on success only in tests.", 6587 "description": "A string result code. The value is non-empty on success only in tests.",
6542 "optional": "true" 6588 "optional": "true"
6543 } 6589 }
6544 ] 6590 ]
6545 } 6591 }
6546 ] 6592 ]
6547 } 6593 }
6548 ] 6594 ]
6549 } 6595 }
6550 ] 6596 ]
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/imageburner/webui_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698