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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 "id": "RemoteObject", | 655 "id": "RemoteObject", |
656 "type": "object", | 656 "type": "object", |
657 "description": "Mirror object referencing original JavaScript ob
ject.", | 657 "description": "Mirror object referencing original JavaScript ob
ject.", |
658 "properties": [ | 658 "properties": [ |
659 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean"], "description": "Object type.
" }, | 659 { "name": "type", "type": "string", "enum": ["object", "func
tion", "undefined", "string", "number", "boolean"], "description": "Object type.
" }, |
660 { "name": "subtype", "type": "string", "optional": true, "en
um": ["array", "null", "node", "regexp", "date"], "description": "Object subtype
hint. Specified for <code>object</code> type values only." }, | 660 { "name": "subtype", "type": "string", "optional": true, "en
um": ["array", "null", "node", "regexp", "date"], "description": "Object subtype
hint. Specified for <code>object</code> type values only." }, |
661 { "name": "className", "type": "string", "optional": true, "
description": "Object class (constructor) name. Specified for <code>object</code
> type values only." }, | 661 { "name": "className", "type": "string", "optional": true, "
description": "Object class (constructor) name. Specified for <code>object</code
> type values only." }, |
662 { "name": "value", "type": "any", "optional": true, "descrip
tion": "Remote object value in case of primitive values or JSON values (if it wa
s requested), or description string if the value can not be JSON-stringified (li
ke NaN, Infinity, -Infinity, -0)." }, | 662 { "name": "value", "type": "any", "optional": true, "descrip
tion": "Remote object value in case of primitive values or JSON values (if it wa
s requested), or description string if the value can not be JSON-stringified (li
ke NaN, Infinity, -Infinity, -0)." }, |
663 { "name": "description", "type": "string", "optional": true,
"description": "String representation of the object." }, | 663 { "name": "description", "type": "string", "optional": true,
"description": "String representation of the object." }, |
664 { "name": "objectId", "$ref": "RemoteObjectId", "optional":
true, "description": "Unique object identifier (for non-primitive values)." }, | 664 { "name": "objectId", "$ref": "RemoteObjectId", "optional":
true, "description": "Unique object identifier (for non-primitive values)." }, |
665 { "name": "preview", "$ref": "ObjectPreview", "optional": tr
ue, "description": "Preview containing abbreviated property values.", "hidden":
true } | 665 { "name": "preview", "$ref": "ObjectPreview", "optional": tr
ue, "description": "Preview containing abbreviated property values.", "hidden":
true }, |
| 666 { "name": "language", "type": "string", "optional": true, "d
escription": "Programming language of the object" } |
666 ] | 667 ] |
667 }, | 668 }, |
668 { | 669 { |
669 "id": "ObjectPreview", | 670 "id": "ObjectPreview", |
670 "type": "object", | 671 "type": "object", |
671 "hidden": true, | 672 "hidden": true, |
672 "description": "Object containing abbreviated remote object valu
e.", | 673 "description": "Object containing abbreviated remote object valu
e.", |
673 "properties": [ | 674 "properties": [ |
674 { "name": "lossless", "type": "boolean", "description": "Det
ermines whether preview is lossless (contains all information of the original ob
ject)." }, | 675 { "name": "lossless", "type": "boolean", "description": "Det
ermines whether preview is lossless (contains all information of the original ob
ject)." }, |
675 { "name": "overflow", "type": "boolean", "description": "Tru
e iff some of the properties of the original did not fit." }, | 676 { "name": "overflow", "type": "boolean", "description": "Tru
e iff some of the properties of the original did not fit." }, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, | 774 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, |
774 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." } | 775 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." } |
775 ], | 776 ], |
776 "returns": [ | 777 "returns": [ |
777 { "name": "result", "$ref": "RemoteObject", "description": "
Call result." }, | 778 { "name": "result", "$ref": "RemoteObject", "description": "
Call result." }, |
778 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." } | 779 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." } |
779 ], | 780 ], |
780 "description": "Calls function with given declaration on the giv
en object. Object group of the result is inherited from the target object." | 781 "description": "Calls function with given declaration on the giv
en object. Object group of the result is inherited from the target object." |
781 }, | 782 }, |
782 { | 783 { |
| 784 "name": "getCompletions", |
| 785 "parameters": [ |
| 786 { "name": "expression", "type": "string", "description": "Ex
pression to get completions to." }, |
| 787 { "name": "contextId", "$ref": "Runtime.ExecutionContextId",
"optional": true, "description": "Specifies in which isolated context to get co
mpletions. Each content script lives in an isolated context and this parameter m
ay be used to specify one of those contexts. If the parameter is omitted or 0 th
e evaluation will be performed in the context of the inspected page." } |
| 788 ], |
| 789 "returns": [ |
| 790 { "name": "result", "type": "array", "items": { "type": "str
ing" } } |
| 791 ], |
| 792 "description": "Returns completions for a given object." |
| 793 }, |
| 794 { |
783 "name": "getProperties", | 795 "name": "getProperties", |
784 "parameters": [ | 796 "parameters": [ |
785 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to return properties for." }, | 797 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to return properties for." }, |
786 { "name": "ownProperties", "optional": true, "type": "boolea
n", "description": "If true, returns properties belonging only to the element it
self, not to its prototype chain." }, | 798 { "name": "ownProperties", "optional": true, "type": "boolea
n", "description": "If true, returns properties belonging only to the element it
self, not to its prototype chain." }, |
787 { "name": "accessorPropertiesOnly", "optional": true, "type"
: "boolean", "description": "If true, returns accessor properties (with getter/s
etter) only; internal properties are not returned either.", "hidden": true } | 799 { "name": "accessorPropertiesOnly", "optional": true, "type"
: "boolean", "description": "If true, returns accessor properties (with getter/s
etter) only; internal properties are not returned either.", "hidden": true } |
788 ], | 800 ], |
789 "returns": [ | 801 "returns": [ |
790 { "name": "result", "type": "array", "items": { "$ref": "Pro
pertyDescriptor" }, "description": "Object properties." }, | 802 { "name": "result", "type": "array", "items": { "$ref": "Pro
pertyDescriptor" }, "description": "Object properties." }, |
791 { "name": "internalProperties", "optional": true, "type": "a
rray", "items": { "$ref": "InternalPropertyDescriptor" }, "description": "Intern
al object properties (only of the element itself).", "hidden": true } | 803 { "name": "internalProperties", "optional": true, "type": "a
rray", "items": { "$ref": "InternalPropertyDescriptor" }, "description": "Intern
al object properties (only of the element itself).", "hidden": true } |
792 ], | 804 ], |
793 "description": "Returns properties of a given object. Object gro
up of the result is inherited from the target object." | 805 "description": "Returns properties of a given object. Object gro
up of the result is inherited from the target object." |
794 }, | 806 }, |
795 { | 807 { |
| 808 "name": "getProperty", |
| 809 "parameters": [ |
| 810 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to return a property for." }, |
| 811 { "name": "propertyPath", "type": "array", "items": { "type"
: "string" } } |
| 812 ], |
| 813 "returns": [ |
| 814 { "name": "result", "$ref": "RemoteObject", "description": "
Call result." }, |
| 815 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." } |
| 816 ], |
| 817 "description": "Returns a property of a given object. Object gro
up of the result is inherited from the target object." |
| 818 }, |
| 819 { |
796 "name": "releaseObject", | 820 "name": "releaseObject", |
797 "parameters": [ | 821 "parameters": [ |
798 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to release." } | 822 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to release." } |
799 ], | 823 ], |
800 "description": "Releases remote object with given id." | 824 "description": "Releases remote object with given id." |
801 }, | 825 }, |
802 { | 826 { |
803 "name": "releaseObjectGroup", | 827 "name": "releaseObjectGroup", |
804 "parameters": [ | 828 "parameters": [ |
805 { "name": "objectGroup", "type": "string", "description": "S
ymbolic object group name." } | 829 { "name": "objectGroup", "type": "string", "description": "S
ymbolic object group name." } |
(...skipping 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3109 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, | 3133 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, |
3110 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." } | 3134 { "name": "generatePreview", "type": "boolean", "optional":
true, "hidden": true, "description": "Whether preview should be generated for th
e result." } |
3111 ], | 3135 ], |
3112 "returns": [ | 3136 "returns": [ |
3113 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip
tion": "Object wrapper for the evaluation result." }, | 3137 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip
tion": "Object wrapper for the evaluation result." }, |
3114 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." } | 3138 { "name": "wasThrown", "type": "boolean", "optional": true,
"description": "True if the result was thrown during the evaluation." } |
3115 ], | 3139 ], |
3116 "description": "Evaluates expression on a given call frame." | 3140 "description": "Evaluates expression on a given call frame." |
3117 }, | 3141 }, |
3118 { | 3142 { |
| 3143 "name": "getCompletionsOnCallFrame", |
| 3144 "parameters": [ |
| 3145 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Call frame identifier to get completions on." }, |
| 3146 { "name": "expression", "type": "string", "description": "Ex
pression to get completions to." } |
| 3147 ], |
| 3148 "returns": [ |
| 3149 { "name": "result", "type": "array", "items": { "type": "str
ing" } } |
| 3150 ], |
| 3151 "description": "Returns completions for a given object." |
| 3152 }, |
| 3153 { |
3119 "name": "compileScript", | 3154 "name": "compileScript", |
3120 "hidden": true, | 3155 "hidden": true, |
3121 "parameters": [ | 3156 "parameters": [ |
3122 { "name": "expression", "type": "string", "description": "Ex
pression to compile." }, | 3157 { "name": "expression", "type": "string", "description": "Ex
pression to compile." }, |
3123 { "name": "sourceURL", "type": "string", "description": "Sou
rce url to be set for the script." }, | 3158 { "name": "sourceURL", "type": "string", "description": "Sou
rce url to be set for the script." }, |
3124 { "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.
" } | 3159 { "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.
" } |
3125 ], | 3160 ], |
3126 "returns": [ | 3161 "returns": [ |
3127 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, | 3162 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, |
3128 { "name": "syntaxErrorMessage", "type": "string", "optional"
: true, "description": "Syntax error message if compilation failed." } | 3163 { "name": "syntaxErrorMessage", "type": "string", "optional"
: true, "description": "Syntax error message if compilation failed." } |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4151 { | 4186 { |
4152 "name": "dataAvailable", | 4187 "name": "dataAvailable", |
4153 "parameters": [ | 4188 "parameters": [ |
4154 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } | 4189 {"name": "value", "type": "array", "items": { "$ref": "Power
Event" }, "description": "List of power events." } |
4155 ], | 4190 ], |
4156 "handlers": ["browser", "frontend"] | 4191 "handlers": ["browser", "frontend"] |
4157 } | 4192 } |
4158 ] | 4193 ] |
4159 }] | 4194 }] |
4160 } | 4195 } |
OLD | NEW |