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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/js_protocol.json

Issue 2215153002: [DevTools] Eliminate frameId and isContentScript from js protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: navigation tracker Created 4 years, 4 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
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Runtime", 4 "domain": "Runtime",
5 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.", 5 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.",
6 "types": [ 6 "types": [
7 { 7 {
8 "id": "ScriptId", 8 "id": "ScriptId",
9 "type": "string", 9 "type": "string",
10 "description": "Unique script identifier." 10 "description": "Unique script identifier."
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 "id": "ExecutionContextId", 125 "id": "ExecutionContextId",
126 "type": "integer", 126 "type": "integer",
127 "description": "Id of an execution context." 127 "description": "Id of an execution context."
128 }, 128 },
129 { 129 {
130 "id": "ExecutionContextDescription", 130 "id": "ExecutionContextDescription",
131 "type": "object", 131 "type": "object",
132 "description": "Description of an isolated world.", 132 "description": "Description of an isolated world.",
133 "properties": [ 133 "properties": [
134 { "name": "id", "$ref": "ExecutionContextId", "description": "Unique id of the execution context. It can be used to specify in which executi on context script evaluation should be performed." }, 134 { "name": "id", "$ref": "ExecutionContextId", "description": "Unique id of the execution context. It can be used to specify in which executi on context script evaluation should be performed." },
135 { "name": "isDefault", "type": "boolean", "description": "Wh ether context is the default page context (as opposite to e.g. context of conten t script).", "hidden": true }, 135 { "name": "origin", "type": "string", "description": "Execut ion context origin.", "hidden": true },
136 { "name": "origin", "type": "string", "description": "Execut ion context origin.", "hidden": true}, 136 { "name": "name", "type": "string", "description": "Human re adable name describing given context.", "hidden": true },
137 { "name": "name", "type": "string", "description": "Human re adable name describing given context.", "hidden": true}, 137 { "name": "auxData", "type": "object", "optional": true, "de scription": "Embedder-specific auxiliary data.", "hidden": true }
138 { "name": "frameId", "type": "string", "description": "Id of the owning frame. May be an empty string if the context is not associated with a frame." }
139 ] 138 ]
140 }, 139 },
141 { 140 {
142 "id": "ExceptionDetails", 141 "id": "ExceptionDetails",
143 "type": "object", 142 "type": "object",
144 "hidden": true, 143 "hidden": true,
145 "description": "Detailed information about exception (or error) that was thrown during script compilation or execution.", 144 "description": "Detailed information about exception (or error) that was thrown during script compilation or execution.",
146 "properties": [ 145 "properties": [
147 { "name": "text", "type": "string", "description": "Exceptio n text." }, 146 { "name": "text", "type": "string", "description": "Exceptio n text." },
148 { "name": "scriptId", "$ref": "ScriptId", "description": "Sc ript ID of the exception location." }, 147 { "name": "scriptId", "$ref": "ScriptId", "description": "Sc ript ID of the exception location." },
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 ], 183 ],
185 "commands": [ 184 "commands": [
186 { 185 {
187 "name": "evaluate", 186 "name": "evaluate",
188 "async": true, 187 "async": true,
189 "parameters": [ 188 "parameters": [
190 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." }, 189 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." },
191 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, 190 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." },
192 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true }, 191 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true },
193 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "hidd en": true }, 192 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "hidd en": true },
194 { "name": "contextId", "$ref": "ExecutionContextId", "option al": true, "description": "Specifies in which isolated context to perform evalua tion. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted the evaluati on will be performed in the context of the inspected page." }, 193 { "name": "contextId", "$ref": "ExecutionContextId", "option al": true, "description": "Specifies in which execution context to perform evalu ation. If the parameter is omitted the evaluation will be performed in the conte xt of the inspected page." },
195 { "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." }, 194 { "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." },
196 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." }, 195 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." },
197 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." }, 196 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." },
198 { "name": "awaitPromise", "type": "boolean", "optional":true , "hidden": true, "description": "Whether execution should wait for promise to b e resolved. If the result of evaluation is not a Promise, it's considered to be an error." } 197 { "name": "awaitPromise", "type": "boolean", "optional":true , "hidden": true, "description": "Whether execution should wait for promise to b e resolved. If the result of evaluation is not a Promise, it's considered to be an error." }
199 ], 198 ],
200 "returns": [ 199 "returns": [
201 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." }, 200 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." },
202 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, 201 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
203 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "hidden": true, "description": "Exception details."} 202 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "hidden": true, "description": "Exception details."}
204 ], 203 ],
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 ], 297 ],
299 "hidden": true 298 "hidden": true
300 }, 299 },
301 { 300 {
302 "name": "compileScript", 301 "name": "compileScript",
303 "hidden": true, 302 "hidden": true,
304 "parameters": [ 303 "parameters": [
305 { "name": "expression", "type": "string", "description": "Ex pression to compile." }, 304 { "name": "expression", "type": "string", "description": "Ex pression to compile." },
306 { "name": "sourceURL", "type": "string", "description": "Sou rce url to be set for the script." }, 305 { "name": "sourceURL", "type": "string", "description": "Sou rce url to be set for the script." },
307 { "name": "persistScript", "type": "boolean", "description": "Specifies whether the compiled script should be persisted." }, 306 { "name": "persistScript", "type": "boolean", "description": "Specifies whether the compiled script should be persisted." },
308 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Specifies in which isolated context to perfo rm script run. Each content script lives in an isolated context and this paramet er is used to specify one of those contexts. If the parameter is omitted the eva luation will be performed in the context of the inspected page." } 307 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Specifies in which execution context to perf orm script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page." }
309 ], 308 ],
310 "returns": [ 309 "returns": [
311 { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." }, 310 { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." },
312 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."} 311 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."}
313 ], 312 ],
314 "description": "Compiles expression." 313 "description": "Compiles expression."
315 }, 314 },
316 { 315 {
317 "name": "runScript", 316 "name": "runScript",
318 "hidden": true, 317 "hidden": true,
319 "async": true, 318 "async": true,
320 "parameters": [ 319 "parameters": [
321 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." }, 320 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." },
322 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Specifies in which isolated context to perfo rm script run. Each content script lives in an isolated context and this paramet er is used to specify one of those contexts. If the parameter is omitted the eva luation will be performed in the context of the inspected page." }, 321 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Specifies in which execution context to perf orm script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page." },
323 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, 322 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." },
324 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether script run should s top on exceptions and mute console. Overrides setPauseOnException state." }, 323 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether script run should s top on exceptions and mute console. Overrides setPauseOnException state." },
325 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation." }, 324 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation." },
326 { "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." }, 325 { "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." },
327 { "name": "generatePreview", "type": "boolean", "optional": true, "description": "Whether preview should be generated for the result." }, 326 { "name": "generatePreview", "type": "boolean", "optional": true, "description": "Whether preview should be generated for the result." },
328 { "name": "awaitPromise", "type": "boolean", "optional": tru e, "description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." } 327 { "name": "awaitPromise", "type": "boolean", "optional": tru e, "description": "Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error." }
329 ], 328 ],
330 "returns": [ 329 "returns": [
331 { "name": "result", "$ref": "RemoteObject", "description": " Run result." }, 330 { "name": "result", "$ref": "RemoteObject", "description": " Run result." },
332 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the execution." }, 331 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the execution." },
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 "name": "scriptParsed", 688 "name": "scriptParsed",
690 "parameters": [ 689 "parameters": [
691 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." }, 690 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." },
692 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." }, 691 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." },
693 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } , 692 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } ,
694 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." }, 693 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." },
695 { "name": "endLine", "type": "integer", "description": "Last line of the script." }, 694 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
696 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." }, 695 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." },
697 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context.", "hidden": true }, 696 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context.", "hidden": true },
698 { "name": "hash", "type": "string", "hidden": true, "descrip tion": "Content hash of the script."}, 697 { "name": "hash", "type": "string", "hidden": true, "descrip tion": "Content hash of the script."},
699 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script. " }, 698 { "name": "executionContextAuxData", "type": "object", "opti onal": true, "description": "Embedder-specific auxiliary data.", "hidden": true },
700 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", " hidden": true }, 699 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", " hidden": true },
701 { "name": "isLiveEdit", "type": "boolean", "optional": true, "description": "True, if this script is generated as a result of the live edit operation.", "hidden": true }, 700 { "name": "isLiveEdit", "type": "boolean", "optional": true, "description": "True, if this script is generated as a result of the live edit operation.", "hidden": true },
702 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." }, 701 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." },
703 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true }, 702 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true },
704 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."} 703 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."}
705 ], 704 ],
706 "description": "Fired when virtual machine parses script. This e vent is also fired for all known and uncollected scripts upon enabling debugger. " 705 "description": "Fired when virtual machine parses script. This e vent is also fired for all known and uncollected scripts upon enabling debugger. "
707 }, 706 },
708 { 707 {
709 "name": "scriptFailedToParse", 708 "name": "scriptFailedToParse",
710 "parameters": [ 709 "parameters": [
711 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." }, 710 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." },
712 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." }, 711 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." },
713 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } , 712 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } ,
714 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." }, 713 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." },
715 { "name": "endLine", "type": "integer", "description": "Last line of the script." }, 714 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
716 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." }, 715 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." },
717 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context.", "hidden": true }, 716 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context.", "hidden": true },
718 { "name": "hash", "type": "string", "hidden": true, "descrip tion": "Content hash of the script."}, 717 { "name": "hash", "type": "string", "hidden": true, "descrip tion": "Content hash of the script."},
719 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script. " }, 718 { "name": "executionContextAuxData", "type": "object", "opti onal": true, "description": "Embedder-specific auxiliary data.", "hidden": true },
720 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", " hidden": true }, 719 { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", " hidden": true },
721 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." }, 720 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." },
722 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true }, 721 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true },
723 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."} 722 { "name": "deprecatedCommentWasUsed", "type": "boolean", "op tional": true, "hidden": true, "description": "True, if '//@ sourceURL' or '//@ sourceMappingURL' was used."}
724 ], 723 ],
725 "description": "Fired when virtual machine fails to parse the sc ript." 724 "description": "Fired when virtual machine fails to parse the sc ript."
726 }, 725 },
727 { 726 {
728 "name": "breakpointResolved", 727 "name": "breakpointResolved",
729 "parameters": [ 728 "parameters": [
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 { 1016 {
1018 "name": "heapStatsUpdate", 1017 "name": "heapStatsUpdate",
1019 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 1018 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
1020 "parameters": [ 1019 "parameters": [
1021 { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fra gment. The first integer is the fragment index, the second integer is a total co unt of objects for the fragment, the third integer is a total size of the object s for the fragment."} 1020 { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fra gment. The first integer is the fragment index, the second integer is a total co unt of objects for the fragment, the third integer is a total size of the object s for the fragment."}
1022 ] 1021 ]
1023 } 1022 }
1024 ] 1023 ]
1025 }] 1024 }]
1026 } 1025 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698