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

Side by Side Diff: src/inspector/js_protocol.json

Issue 2740623002: [inspector] added length for scriptParsed notification (Closed)
Patch Set: better Created 3 years, 9 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
« no previous file with comments | « no previous file | src/inspector/v8-debugger-agent-impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "2" }, 2 "version": { "major": "1", "minor": "2" },
3 "domains": [ 3 "domains": [
4 { 4 {
5 "domain": "Schema", 5 "domain": "Schema",
6 "description": "Provides information about the protocol schema.", 6 "description": "Provides information about the protocol schema.",
7 "types": [ 7 "types": [
8 { 8 {
9 "id": "Domain", 9 "id": "Domain",
10 "type": "object", 10 "type": "object",
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } , 705 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } ,
706 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." }, 706 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." },
707 { "name": "endLine", "type": "integer", "description": "Last line of the script." }, 707 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
708 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." }, 708 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." },
709 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context." }, 709 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context." },
710 { "name": "hash", "type": "string", "description": "Content hash of the script."}, 710 { "name": "hash", "type": "string", "description": "Content hash of the script."},
711 { "name": "executionContextAuxData", "type": "object", "opti onal": true, "description": "Embedder-specific auxiliary data." }, 711 { "name": "executionContextAuxData", "type": "object", "opti onal": true, "description": "Embedder-specific auxiliary data." },
712 { "name": "isLiveEdit", "type": "boolean", "optional": true, "description": "True, if this script is generated as a result of the live edit operation.", "experimental": true }, 712 { "name": "isLiveEdit", "type": "boolean", "optional": true, "description": "True, if this script is generated as a result of the live edit operation.", "experimental": true },
713 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." }, 713 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." },
714 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "experimental": true }, 714 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "experimental": true },
715 { "name": "isModule", "type": "boolean", "optional": true, " description": "True, if this script is ES6 module.", "experimental": true } 715 { "name": "isModule", "type": "boolean", "optional": true, " description": "True, if this script is ES6 module.", "experimental": true },
716 { "name": "length", "type": "integer", "optional": true, "de scription": "This script length.", "experimental": true }
caseq 2017/03/07 21:25:36 drop "optional", perhaps?
dgozman 2017/03/07 21:27:56 Let's not. This way we don't guarantee anything an
kozy 2017/03/07 21:34:24 I prefer to land as optional, otherwise it require
716 ], 717 ],
717 "description": "Fired when virtual machine parses script. This e vent is also fired for all known and uncollected scripts upon enabling debugger. " 718 "description": "Fired when virtual machine parses script. This e vent is also fired for all known and uncollected scripts upon enabling debugger. "
718 }, 719 },
719 { 720 {
720 "name": "scriptFailedToParse", 721 "name": "scriptFailedToParse",
721 "parameters": [ 722 "parameters": [
722 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." }, 723 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Identifier of the script parsed." },
723 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." }, 724 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." },
724 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } , 725 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } ,
725 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." }, 726 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." },
726 { "name": "endLine", "type": "integer", "description": "Last line of the script." }, 727 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
727 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." }, 728 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." },
728 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context." }, 729 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "description": "Specifies script creation context." },
729 { "name": "hash", "type": "string", "description": "Content hash of the script."}, 730 { "name": "hash", "type": "string", "description": "Content hash of the script."},
730 { "name": "executionContextAuxData", "type": "object", "opti onal": true, "description": "Embedder-specific auxiliary data." }, 731 { "name": "executionContextAuxData", "type": "object", "opti onal": true, "description": "Embedder-specific auxiliary data." },
731 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." }, 732 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." },
732 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "experimental": true }, 733 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "experimental": true },
733 { "name": "isModule", "type": "boolean", "optional": true, " description": "True, if this script is ES6 module.", "experimental": true } 734 { "name": "isModule", "type": "boolean", "optional": true, " description": "True, if this script is ES6 module.", "experimental": true },
735 { "name": "length", "type": "integer", "optional": true, "de scription": "This script length.", "experimental": true }
734 ], 736 ],
735 "description": "Fired when virtual machine fails to parse the sc ript." 737 "description": "Fired when virtual machine fails to parse the sc ript."
736 }, 738 },
737 { 739 {
738 "name": "breakpointResolved", 740 "name": "breakpointResolved",
739 "parameters": [ 741 "parameters": [
740 { "name": "breakpointId", "$ref": "BreakpointId", "descripti on": "Breakpoint unique identifier." }, 742 { "name": "breakpointId", "$ref": "BreakpointId", "descripti on": "Breakpoint unique identifier." },
741 { "name": "location", "$ref": "Location", "description": "Ac tual breakpoint location." } 743 { "name": "location", "$ref": "Location", "description": "Ac tual breakpoint location." }
742 ], 744 ],
743 "description": "Fired when breakpoint is resolved to an actual s cript and location." 745 "description": "Fired when breakpoint is resolved to an actual s cript and location."
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 { 1073 {
1072 "name": "heapStatsUpdate", 1074 "name": "heapStatsUpdate",
1073 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 1075 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
1074 "parameters": [ 1076 "parameters": [
1075 { "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."} 1077 { "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."}
1076 ] 1078 ]
1077 } 1079 }
1078 ] 1080 ]
1079 }] 1081 }]
1080 } 1082 }
OLDNEW
« no previous file with comments | « no previous file | src/inspector/v8-debugger-agent-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698