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 2941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2952 { | 2952 { |
2953 "id": "Scope", | 2953 "id": "Scope", |
2954 "type": "object", | 2954 "type": "object", |
2955 "properties": [ | 2955 "properties": [ |
2956 { "name": "type", "type": "string", "enum": ["global", "loca
l", "with", "closure", "catch"], "description": "Scope type." }, | 2956 { "name": "type", "type": "string", "enum": ["global", "loca
l", "with", "closure", "catch"], "description": "Scope type." }, |
2957 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip
tion": "Object representing the scope. For <code>global</code> and <code>with</c
ode> scopes it represents the actual object; for the rest of the scopes, it is a
rtificial transient object enumerating scope variables as its properties." } | 2957 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip
tion": "Object representing the scope. For <code>global</code> and <code>with</c
ode> scopes it represents the actual object; for the rest of the scopes, it is a
rtificial transient object enumerating scope variables as its properties." } |
2958 ], | 2958 ], |
2959 "description": "Scope description." | 2959 "description": "Scope description." |
2960 }, | 2960 }, |
2961 { | 2961 { |
| 2962 "id": "ExceptionDetails", |
| 2963 "type": "object", |
| 2964 "description": "Detailed information on exception (or error) tha
t was thrown during script compilation or execution.", |
| 2965 "properties": [ |
| 2966 { "name": "text", "type": "string", "description": "Exceptio
n text." }, |
| 2967 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the message origin." }, |
| 2968 { "name": "line", "type": "integer", "optional": true, "desc
ription": "Line number in the resource that generated this message." }, |
| 2969 { "name": "column", "type": "integer", "optional": true, "de
scription": "Column number in the resource that generated this message." }, |
| 2970 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio
nal": true, "description": "JavaScript stack trace for assertions and error mess
ages." } |
| 2971 ] |
| 2972 }, |
| 2973 { |
2962 "id": "SetScriptSourceError", | 2974 "id": "SetScriptSourceError", |
2963 "type": "object", | 2975 "type": "object", |
2964 "properties": [ | 2976 "properties": [ |
2965 { "name": "compileError", "optional": true, "type": "object"
, "properties": | 2977 { "name": "compileError", "optional": true, "type": "object"
, "properties": |
2966 [ | 2978 [ |
2967 { "name": "message", "type": "string", "description"
: "Compiler error message" }, | 2979 { "name": "message", "type": "string", "description"
: "Compiler error message" }, |
2968 { "name": "lineNumber", "type": "integer", "descript
ion": "Compile error line number (1-based)" }, | 2980 { "name": "lineNumber", "type": "integer", "descript
ion": "Compile error line number (1-based)" }, |
2969 { "name": "columnNumber", "type": "integer", "descri
ption": "Compile error column number (1-based)" } | 2981 { "name": "columnNumber", "type": "integer", "descri
ption": "Compile error column number (1-based)" } |
2970 ] | 2982 ] |
2971 } | 2983 } |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3166 { | 3178 { |
3167 "name": "compileScript", | 3179 "name": "compileScript", |
3168 "hidden": true, | 3180 "hidden": true, |
3169 "parameters": [ | 3181 "parameters": [ |
3170 { "name": "expression", "type": "string", "description": "Ex
pression to compile." }, | 3182 { "name": "expression", "type": "string", "description": "Ex
pression to compile." }, |
3171 { "name": "sourceURL", "type": "string", "description": "Sou
rce url to be set for the script." }, | 3183 { "name": "sourceURL", "type": "string", "description": "Sou
rce url to be set for the script." }, |
3172 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "optional": true, "description": "Specifies in which isolated context
to perform script run. Each content script lives in an isolated context and this
parameter may be used to specify one of those contexts. If the parameter is omi
tted or 0 the evaluation will be performed in the context of the inspected page.
" } | 3184 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "optional": true, "description": "Specifies in which isolated context
to perform script run. Each content script lives in an isolated context and this
parameter may be used to specify one of those contexts. If the parameter is omi
tted or 0 the evaluation will be performed in the context of the inspected page.
" } |
3173 ], | 3185 ], |
3174 "returns": [ | 3186 "returns": [ |
3175 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, | 3187 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, |
3176 { "name": "syntaxErrorMessage", "type": "string", "optional"
: true, "description": "Syntax error message if compilation failed." } | 3188 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
3177 ], | 3189 ], |
3178 "description": "Compiles expression." | 3190 "description": "Compiles expression." |
3179 }, | 3191 }, |
3180 { | 3192 { |
3181 "name": "runScript", | 3193 "name": "runScript", |
3182 "hidden": true, | 3194 "hidden": true, |
3183 "parameters": [ | 3195 "parameters": [ |
3184 { "name": "scriptId", "$ref": "ScriptId", "description": "Id
of the script to run." }, | 3196 { "name": "scriptId", "$ref": "ScriptId", "description": "Id
of the script to run." }, |
3185 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "optional": true, "description": "Specifies in which isolated context
to perform script run. Each content script lives in an isolated context and this
parameter may be used to specify one of those contexts. If the parameter is omi
tted or 0 the evaluation will be performed in the context of the inspected page.
" }, | 3197 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "optional": true, "description": "Specifies in which isolated context
to perform script run. Each content script lives in an isolated context and this
parameter may be used to specify one of those contexts. If the parameter is omi
tted or 0 the evaluation will be performed in the context of the inspected page.
" }, |
3186 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 3198 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
3187 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether script run should s
top on exceptions and mute console. Overrides setPauseOnException state." } | 3199 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b
oolean", "optional": true, "description": "Specifies whether script run should s
top on exceptions and mute console. Overrides setPauseOnException state." } |
3188 ], | 3200 ], |
3189 "returns": [ | 3201 "returns": [ |
3190 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip
tion": "Run result." }, | 3202 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip
tion": "Run result." }, |
3191 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the script run." } | 3203 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
3192 ], | 3204 ], |
3193 "description": "Runs script with given id in a given context." | 3205 "description": "Runs script with given id in a given context." |
3194 }, | 3206 }, |
3195 { | 3207 { |
3196 "name": "setOverlayMessage", | 3208 "name": "setOverlayMessage", |
3197 "parameters": [ | 3209 "parameters": [ |
3198 { "name": "message", "type": "string", "optional": true, "de
scription": "Overlay message to display when paused in debugger." } | 3210 { "name": "message", "type": "string", "optional": true, "de
scription": "Overlay message to display when paused in debugger." } |
3199 ], | 3211 ], |
3200 "hidden": true, | 3212 "hidden": true, |
3201 "description": "Sets overlay message." | 3213 "description": "Sets overlay message." |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4175 { | 4187 { |
4176 "name": "dataAvailable", | 4188 "name": "dataAvailable", |
4177 "parameters": [ | 4189 "parameters": [ |
4178 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } | 4190 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } |
4179 ], | 4191 ], |
4180 "handlers": ["browser", "frontend"] | 4192 "handlers": ["browser", "frontend"] |
4181 } | 4193 } |
4182 ] | 4194 ] |
4183 }] | 4195 }] |
4184 } | 4196 } |
OLD | NEW |