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

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

Issue 8896013: Implement onEvent callback framework for UDP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put back the bracket. Created 9 years 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": "experimental.accessibility", 3 "namespace": "experimental.accessibility",
4 "nodoc": true, 4 "nodoc": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "AccessibilityObject", 7 "id": "AccessibilityObject",
8 "type": "object", 8 "type": "object",
9 "description": "Parent class for accessibility information about an obje ct.", 9 "description": "Parent class for accessibility information about an obje ct.",
10 "properties": { 10 "properties": {
(...skipping 9022 matching lines...) Expand 10 before | Expand all | Expand 10 after
9033 "namespace": "experimental.socket", 9033 "namespace": "experimental.socket",
9034 "nodoc": true, 9034 "nodoc": true,
9035 "types": [ 9035 "types": [
9036 { 9036 {
9037 "id": "SocketEvent", 9037 "id": "SocketEvent",
9038 "type": "object", 9038 "type": "object",
9039 "description": "A socket event.", 9039 "description": "A socket event.",
9040 "properties": { 9040 "properties": {
9041 "type": { 9041 "type": {
9042 "type": "string", 9042 "type": "string",
9043 "enum": ["data", "error"], 9043 "enum": ["writeComplete"],
9044 "description": "A 'data' event represents data received on the socke t. An 'error' event represents an error." 9044 "description": "A writeComplete event reports the result of a write that blocked."
9045 }, 9045 },
9046 "byteCount": { 9046 "resultCode": {
9047 "type": "integer", 9047 "type": "integer",
9048 "optional": true, 9048 "description": "The result code, if the event type is writeComplete. ",
9049 "description": "The number of bytes received in a 'data' event."
9050 },
9051 "bytes": {
9052 "type": "blob",
9053 "optional": true,
9054 "description": "The data received."
9055 },
9056 "errorCode": {
9057 "type": "integer",
9058 "description": "The error code, if the event type is 'error'.",
9059 "optional": true 9049 "optional": true
9060 }, 9050 },
9061 "errorMessage": { 9051 "isFinalEvent": {
9062 "type": "string", 9052 "type": "boolean",
9063 "description": "The error description, if the event type is 'error'. ", 9053 "description": "Whether this is the final event that this socket wil l send.",
9054 "nodoc": true
9055 },
9056 "srcId": {
9057 "type": "number",
9058 "description": "An ID unique to the calling function's context so th at events can get routed back to the correct callback.",
9059 "nodoc": true,
9064 "optional": true 9060 "optional": true
9065 } 9061 }
9066 } 9062 }
9067 } 9063 }
9068 ], 9064 ],
9069 "functions": [ 9065 "functions": [
9070 { 9066 {
9071 "name": "create", 9067 "name": "create",
9072 "type": "function", 9068 "type": "function",
9073 "description": "Creates a socket of the specified type.", 9069 "description": "Creates a socket of the specified type.",
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
9210 "bytesWritten": { 9206 "bytesWritten": {
9211 "type": "integer", 9207 "type": "integer",
9212 "description": "The number of bytes sent, or a negative erro r code." 9208 "description": "The number of bytes sent, or a negative erro r code."
9213 } 9209 }
9214 } 9210 }
9215 } 9211 }
9216 ] 9212 ]
9217 } 9213 }
9218 ] 9214 ]
9219 } 9215 }
9216 ],
9217 "events": [
9218 {
9219 "name": "onEvent",
9220 "type": "function",
9221 "nodoc": true,
9222 "parameters": [
9223 {
9224 "name": "event",
9225 "$ref": "SocketEvent",
9226 "description": "The event indicating socket status."
9227 }
9228 ],
9229 "description": "Used to pass events back to the function that called cre ate()."
9230 }
9220 ] 9231 ]
9221 }, 9232 },
9222 { 9233 {
9223 "namespace": "systemPrivate", 9234 "namespace": "systemPrivate",
9224 "nodoc": true, 9235 "nodoc": true,
9225 "types": [], 9236 "types": [],
9226 "functions": [ 9237 "functions": [
9227 { 9238 {
9228 "name": "getIncognitoModeAvailability", 9239 "name": "getIncognitoModeAvailability",
9229 "type": "function", 9240 "type": "function",
(...skipping 10 matching lines...) Expand all
9240 "enum": ["enabled", "disabled", "forced"], 9251 "enum": ["enabled", "disabled", "forced"],
9241 "description": "Exposes whether the incognito mode is available to windows. One of 'enabled', 'disabled' (user cannot browse pages in Incognito mode), 'forced' (all pages/sessions are forced into Incognito mode)." 9252 "description": "Exposes whether the incognito mode is available to windows. One of 'enabled', 'disabled' (user cannot browse pages in Incognito mode), 'forced' (all pages/sessions are forced into Incognito mode)."
9242 } 9253 }
9243 ] 9254 ]
9244 } 9255 }
9245 ] 9256 ]
9246 } 9257 }
9247 ] 9258 ]
9248 } 9259 }
9249 ] 9260 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698