Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 { | 1 { |
| 2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
| 3 "domains": [{ | 3 "domains": [{ |
| 4 "domain": "Inspector", | 4 "domain": "Inspector", |
| 5 "hidden": true, | 5 "hidden": true, |
| 6 "types": [], | 6 "types": [], |
| 7 "commands": [ | 7 "commands": [ |
| 8 { | 8 { |
| 9 "name": "enable", | 9 "name": "enable", |
| 10 "description": "Enables inspector domain notifications." | 10 "description": "Enables inspector domain notifications." |
| (...skipping 3109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3120 { "name": "compileError", "optional": true, "type": "object" , "properties": | 3120 { "name": "compileError", "optional": true, "type": "object" , "properties": |
| 3121 [ | 3121 [ |
| 3122 { "name": "message", "type": "string", "description" : "Compiler error message" }, | 3122 { "name": "message", "type": "string", "description" : "Compiler error message" }, |
| 3123 { "name": "lineNumber", "type": "integer", "descript ion": "Compile error line number (1-based)" }, | 3123 { "name": "lineNumber", "type": "integer", "descript ion": "Compile error line number (1-based)" }, |
| 3124 { "name": "columnNumber", "type": "integer", "descri ption": "Compile error column number (1-based)" } | 3124 { "name": "columnNumber", "type": "integer", "descri ption": "Compile error column number (1-based)" } |
| 3125 ] | 3125 ] |
| 3126 } | 3126 } |
| 3127 ], | 3127 ], |
| 3128 "description": "Error data for setScriptSource command. compileE rror is a case type for uncompilable script source error.", | 3128 "description": "Error data for setScriptSource command. compileE rror is a case type for uncompilable script source error.", |
| 3129 "hidden": true | 3129 "hidden": true |
| 3130 }, | |
| 3131 { | |
| 3132 "id": "PromiseDetails", | |
| 3133 "type": "object", | |
| 3134 "description": "Information about the promise.", | |
| 3135 "properties": [ | |
| 3136 { "name": "id", "type": "integer", "description": "Unique id of the promise." }, | |
| 3137 { "name": "status", "type": "integer", "description": "Statu s of the promise. Equal to <code>1</code> for resolved, <code>-1</code> for reje cted and <code>0</code> for pending ones." }, | |
|
sergeyv
2014/09/02 15:25:36
Since you have very limited range of possible valu
Alexandra Mikhaylova
2014/09/03 14:28:55
Thanks, done so.
| |
| 3138 { "name": "parentId", "type": "integer", "optional": true, " description": "Id of the parent promise." }, | |
| 3139 { "name": "callFrame", "$ref": "Console.CallFrame", "optiona l": true, "description": "Top call frame on promise creation."} | |
| 3140 ], | |
| 3141 "hidden": true | |
| 3130 } | 3142 } |
| 3131 ], | 3143 ], |
| 3132 "commands": [ | 3144 "commands": [ |
| 3133 { | 3145 { |
| 3134 "name": "enable", | 3146 "name": "enable", |
| 3135 "description": "Enables debugger for the given page. Clients sho uld not assume that the debugging has been enabled until the result for this com mand is received." | 3147 "description": "Enables debugger for the given page. Clients sho uld not assume that the debugging has been enabled until the result for this com mand is received." |
| 3136 }, | 3148 }, |
| 3137 { | 3149 { |
| 3138 "name": "disable", | 3150 "name": "disable", |
| 3139 "description": "Disables debugger for given page." | 3151 "description": "Disables debugger for given page." |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3401 "hidden": true, | 3413 "hidden": true, |
| 3402 "description": "Makes backend skip steps in the sources with nam es matching given pattern. VM will try leave blacklisted scripts by performing ' step in' several times, finally resorting to 'step out' if unsuccessful." | 3414 "description": "Makes backend skip steps in the sources with nam es matching given pattern. VM will try leave blacklisted scripts by performing ' step in' several times, finally resorting to 'step out' if unsuccessful." |
| 3403 }, | 3415 }, |
| 3404 { | 3416 { |
| 3405 "name": "setAsyncCallStackDepth", | 3417 "name": "setAsyncCallStackDepth", |
| 3406 "parameters": [ | 3418 "parameters": [ |
| 3407 { "name": "maxDepth", "type": "integer", "description": "Max imum depth of async call stacks. Setting to <code>0</code> will effectively disa ble collecting async call stacks (default)." } | 3419 { "name": "maxDepth", "type": "integer", "description": "Max imum depth of async call stacks. Setting to <code>0</code> will effectively disa ble collecting async call stacks (default)." } |
| 3408 ], | 3420 ], |
| 3409 "hidden": true, | 3421 "hidden": true, |
| 3410 "description": "Enables or disables async call stacks tracking." | 3422 "description": "Enables or disables async call stacks tracking." |
| 3423 }, | |
| 3424 { | |
| 3425 "name": "enablePromiseTracker", | |
| 3426 "hidden": true, | |
| 3427 "description": "Enables promise tracking." | |
| 3428 }, | |
| 3429 { | |
| 3430 "name": "disablePromiseTracker", | |
| 3431 "hidden": true, | |
| 3432 "description": "Disables promise tracking." | |
| 3433 }, | |
| 3434 { | |
| 3435 "name": "getPromises", | |
| 3436 "returns": [ | |
| 3437 { "name": "promises", "type": "array", "items": { "$ref": "P romiseDetails" }, "description": "Returns detailed information about all <code>P romise</code>s that were created or updated after the <code>enablePromiseTracker </code> command, and were not yet garbage collected." } | |
|
aandrey
2014/09/02 14:34:49
this should be a description for "getPromises" com
Alexandra Mikhaylova
2014/09/03 14:28:55
Oops. Thanks, fixed this.
| |
| 3438 ], | |
| 3439 "hidden": true, | |
| 3440 "description": "Pulls information about stored promises." | |
| 3411 } | 3441 } |
| 3412 ], | 3442 ], |
| 3413 "events": [ | 3443 "events": [ |
| 3414 { | 3444 { |
| 3415 "name": "globalObjectCleared", | 3445 "name": "globalObjectCleared", |
| 3416 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload." | 3446 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload." |
| 3417 }, | 3447 }, |
| 3418 { | 3448 { |
| 3419 "name": "scriptParsed", | 3449 "name": "scriptParsed", |
| 3420 "parameters": [ | 3450 "parameters": [ |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4363 { | 4393 { |
| 4364 "name": "dataAvailable", | 4394 "name": "dataAvailable", |
| 4365 "parameters": [ | 4395 "parameters": [ |
| 4366 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } | 4396 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } |
| 4367 ], | 4397 ], |
| 4368 "handlers": ["browser", "frontend"] | 4398 "handlers": ["browser", "frontend"] |
| 4369 } | 4399 } |
| 4370 ] | 4400 ] |
| 4371 }] | 4401 }] |
| 4372 } | 4402 } |
| OLD | NEW |