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

Side by Side Diff: third_party/WebKit/Source/devtools/protocol.json

Issue 1666563005: DevTools: merge ScriptCallStack and ScriptAsyncCallStack, move CallStacks from console to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testts Created 4 years, 10 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 | « third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js ('k') | no next file » | 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": "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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 { 863 {
864 "id": "ExceptionDetails", 864 "id": "ExceptionDetails",
865 "type": "object", 865 "type": "object",
866 "description": "Detailed information on exception (or error) tha t was thrown during script compilation or execution.", 866 "description": "Detailed information on exception (or error) tha t was thrown during script compilation or execution.",
867 "properties": [ 867 "properties": [
868 { "name": "text", "type": "string", "description": "Exceptio n text." }, 868 { "name": "text", "type": "string", "description": "Exceptio n text." },
869 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, 869 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." },
870 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." }, 870 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." },
871 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." }, 871 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." },
872 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." }, 872 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." },
873 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "description": "JavaScript stack trace for assertions and error mess ages." } 873 { "name": "stack", "$ref": "StackTrace", "optional": true, " description": "JavaScript stack trace for assertions and error messages." }
874 ]
875 },
876 {
877 "id": "CallFrame",
878 "type": "object",
879 "description": "Stack entry for runtime errors and assertions.",
880 "properties": [
881 { "name": "functionName", "type": "string", "description": " JavaScript function name." },
882 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja vaScript script id." },
883 { "name": "url", "type": "string", "description": "JavaScrip t script name or url." },
884 { "name": "lineNumber", "type": "integer", "description": "J avaScript script line number." },
885 { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
886 ]
887 },
888 {
889 "id": "StackTrace",
890 "type": "object",
891 "description": "Call frames for assertions or error messages.",
892 "properties": [
893 { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." },
894 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "JavaScript function name." },
895 { "name": "parent", "$ref": "StackTrace", "optional": true, "hidden": true, "hidden": true, "description": "Asynchronous JavaScript stack tr ace that preceded this stack, if available." }
874 ] 896 ]
875 } 897 }
876 ], 898 ],
877 "commands": [ 899 "commands": [
878 { 900 {
879 "name": "evaluate", 901 "name": "evaluate",
880 "parameters": [ 902 "parameters": [
881 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." }, 903 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." },
882 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, 904 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." },
883 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true }, 905 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true },
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "security" , "other", "deprecation"], "description": "Message source." }, 1061 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "security" , "other", "deprecation"], "description": "Message source." },
1040 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug", "info", "revokedError"], "description": "Message severity. " }, 1062 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug", "info", "revokedError"], "description": "Message severity. " },
1041 { "name": "text", "type": "string", "description": "Message text." }, 1063 { "name": "text", "type": "string", "description": "Message text." },
1042 { "name": "type", "type": "string", "optional": true, "enum" : ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Conso le message type." }, 1064 { "name": "type", "type": "string", "optional": true, "enum" : ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Conso le message type." },
1043 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." }, 1065 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." },
1044 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, 1066 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." },
1045 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." }, 1067 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." },
1046 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." }, 1068 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." },
1047 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." }, 1069 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." },
1048 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i n case of the formatted message." }, 1070 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i n case of the formatted message." },
1049 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr ue, "description": "JavaScript stack trace for assertions and error messages." } , 1071 { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages. " },
1050 { "name": "asyncStackTrace", "$ref": "AsyncStackTrace", "opt ional": true, "description": "Asynchronous JavaScript stack trace that preceded this message, if available.", "hidden": true },
1051 { "name": "networkRequestId", "$ref": "Network.RequestId", " optional": true, "description": "Identifier of the network request associated wi th this message." }, 1072 { "name": "networkRequestId", "$ref": "Network.RequestId", " optional": true, "description": "Identifier of the network request associated wi th this message." },
1052 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true }, 1073 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true },
1053 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true }, 1074 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true },
1054 { "name": "messageId", "type": "integer", "hidden": true, "o ptional": true, "description": "Message id." }, 1075 { "name": "messageId", "type": "integer", "hidden": true, "o ptional": true, "description": "Message id." },
1055 { "name": "relatedMessageId", "type": "integer", "hidden": t rue, "optional": true, "description": "Related message id." } 1076 { "name": "relatedMessageId", "type": "integer", "hidden": t rue, "optional": true, "description": "Related message id." }
1056 ] 1077 ]
1057 },
1058 {
1059 "id": "CallFrame",
1060 "type": "object",
1061 "description": "Stack entry for console errors and assertions.",
1062 "properties": [
1063 { "name": "functionName", "type": "string", "description": " JavaScript function name." },
1064 { "name": "scriptId", "type": "string", "description": "Java Script script id." },
1065 { "name": "url", "type": "string", "description": "JavaScrip t script name or url." },
1066 { "name": "lineNumber", "type": "integer", "description": "J avaScript script line number." },
1067 { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
1068 ]
1069 },
1070 {
1071 "id": "StackTrace",
1072 "type": "array",
1073 "items": { "$ref": "CallFrame" },
1074 "description": "Call frames for assertions or error messages."
1075 },
1076 {
1077 "id": "AsyncStackTrace",
1078 "type": "object",
1079 "properties": [
1080 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call frames of the stack trace." },
1081 { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." },
1082 { "name": "asyncStackTrace", "$ref": "AsyncStackTrace", "opt ional": true, "description": "Next asynchronous stack trace, if any." }
1083 ],
1084 "description": "Asynchronous JavaScript call stack.",
1085 "hidden": true
1086 } 1078 }
1087 ], 1079 ],
1088 "commands": [ 1080 "commands": [
1089 { 1081 {
1090 "name": "enable", 1082 "name": "enable",
1091 "description": "Enables console domain, sends the messages colle cted so far to the client by means of the <code>messageAdded</code> notification ." 1083 "description": "Enables console domain, sends the messages colle cted so far to the client by means of the <code>messageAdded</code> notification ."
1092 }, 1084 },
1093 { 1085 {
1094 "name": "disable", 1086 "name": "disable",
1095 "description": "Disables console domain, prevents further consol e messages from being reported to the client." 1087 "description": "Disables console domain, prevents further consol e messages from being reported to the client."
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 { "name": "response", "$ref": "Response", "optional": true, "description": "Cached response data." }, 1364 { "name": "response", "$ref": "Response", "optional": true, "description": "Cached response data." },
1373 { "name": "bodySize", "type": "number", "description": "Cach ed response body size." } 1365 { "name": "bodySize", "type": "number", "description": "Cach ed response body size." }
1374 ] 1366 ]
1375 }, 1367 },
1376 { 1368 {
1377 "id": "Initiator", 1369 "id": "Initiator",
1378 "type": "object", 1370 "type": "object",
1379 "description": "Information about the request initiator.", 1371 "description": "Information about the request initiator.",
1380 "properties": [ 1372 "properties": [
1381 { "name": "type", "type": "string", "enum": ["parser", "scri pt", "other"], "description": "Type of this initiator." }, 1373 { "name": "type", "type": "string", "enum": ["parser", "scri pt", "other"], "description": "Type of this initiator." },
1382 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "description": "Initiator JavaScript stack trace, set for Script onl y." }, 1374 { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "Initiator JavaScript stack trace, set for Script only." } ,
1383 { "name": "url", "type": "string", "optional": true, "descri ption": "Initiator URL, set for Parser type only." }, 1375 { "name": "url", "type": "string", "optional": true, "descri ption": "Initiator URL, set for Parser type only." },
1384 { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only." }, 1376 { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only." }
1385 { "name": "asyncStackTrace", "$ref": "Console.AsyncStackTrac e", "optional": true, "description": "Initiator asynchronous JavaScript stack tr ace, if available.", "hidden": true }
1386 ] 1377 ]
1387 }, 1378 },
1388 { 1379 {
1389 "id": "Cookie", 1380 "id": "Cookie",
1390 "type": "object", 1381 "type": "object",
1391 "description": "Cookie object", 1382 "description": "Cookie object",
1392 "properties": [ 1383 "properties": [
1393 { "name": "name", "type": "string", "description": "Cookie n ame." }, 1384 { "name": "name", "type": "string", "description": "Cookie n ame." },
1394 { "name": "value", "type": "string", "description": "Cookie value." }, 1385 { "name": "value", "type": "string", "description": "Cookie value." },
1395 { "name": "domain", "type": "string", "description": "Cookie domain." }, 1386 { "name": "domain", "type": "string", "description": "Cookie domain." },
(...skipping 2164 matching lines...) Expand 10 before | Expand all | Expand 10 after
3560 "hidden": true 3551 "hidden": true
3561 }, 3552 },
3562 { 3553 {
3563 "id": "PromiseDetails", 3554 "id": "PromiseDetails",
3564 "type": "object", 3555 "type": "object",
3565 "description": "Information about the promise. All fields but id are optional and if present they reflect the new state of the property on the p romise with given id.", 3556 "description": "Information about the promise. All fields but id are optional and if present they reflect the new state of the property on the p romise with given id.",
3566 "properties": [ 3557 "properties": [
3567 { "name": "id", "type": "integer", "description": "Unique id of the promise." }, 3558 { "name": "id", "type": "integer", "description": "Unique id of the promise." },
3568 { "name": "status", "type": "string", "optional": true, "enu m": ["pending", "resolved", "rejected"], "description": "Status of the promise." }, 3559 { "name": "status", "type": "string", "optional": true, "enu m": ["pending", "resolved", "rejected"], "description": "Status of the promise." },
3569 { "name": "parentId", "type": "integer", "optional": true, " description": "Id of the parent promise." }, 3560 { "name": "parentId", "type": "integer", "optional": true, " description": "Id of the parent promise." },
3570 { "name": "callFrame", "$ref": "Console.CallFrame", "optiona l": true, "description": "Top call frame on promise creation."}, 3561 { "name": "callFrame", "$ref": "Runtime.CallFrame", "optiona l": true, "description": "Top call frame on promise creation."},
3571 { "name": "creationTime", "type": "number", "optional": true , "description": "Creation time of the promise." }, 3562 { "name": "creationTime", "type": "number", "optional": true , "description": "Creation time of the promise." },
3572 { "name": "settlementTime", "type": "number", "optional": tr ue, "description": "Settlement time of the promise." }, 3563 { "name": "settlementTime", "type": "number", "optional": tr ue, "description": "Settlement time of the promise." },
3573 { "name": "creationStack", "$ref": "Console.StackTrace", "op tional": true, "description": "JavaScript stack trace on promise creation." }, 3564 { "name": "creationStack", "$ref": "Runtime.StackTrace", "op tional": true, "description": "JavaScript stack trace on promise creation." },
3574 { "name": "asyncCreationStack", "$ref": "Console.AsyncStackT race", "optional": true, "description": "JavaScript asynchronous stack trace on promise creation, if available." }, 3565 { "name": "settlementStack", "$ref": "Runtime.StackTrace", " optional": true, "description": "JavaScript stack trace on promise settlement." }
3575 { "name": "settlementStack", "$ref": "Console.StackTrace", " optional": true, "description": "JavaScript stack trace on promise settlement." },
3576 { "name": "asyncSettlementStack", "$ref": "Console.AsyncStac kTrace", "optional": true, "description": "JavaScript asynchronous stack trace o n promise settlement, if available." }
3577 ], 3566 ],
3578 "hidden": true 3567 "hidden": true
3579 }, 3568 },
3580 { 3569 {
3581 "id": "AsyncOperation", 3570 "id": "AsyncOperation",
3582 "type": "object", 3571 "type": "object",
3583 "description": "Information about the async operation.", 3572 "description": "Information about the async operation.",
3584 "properties": [ 3573 "properties": [
3585 { "name": "id", "type": "integer", "description": "Unique id of the async operation." }, 3574 { "name": "id", "type": "integer", "description": "Unique id of the async operation." },
3586 { "name": "description", "type": "string", "description": "S tring description of the async operation." }, 3575 { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "Stack trace where async operation was scheduled." }
3587 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "description": "Stack trace where async operation was scheduled." },
3588 { "name": "asyncStackTrace", "$ref": "Console.AsyncStackTrac e", "optional": true, "description": "Asynchronous stack trace where async opera tion was scheduled, if available." }
3589 ], 3576 ],
3590 "hidden": true 3577 "hidden": true
3591 }, 3578 },
3592 { 3579 {
3593 "id": "SearchMatch", 3580 "id": "SearchMatch",
3594 "type": "object", 3581 "type": "object",
3595 "description": "Search match for resource.", 3582 "description": "Search match for resource.",
3596 "properties": [ 3583 "properties": [
3597 { "name": "lineNumber", "type": "number", "description": "Li ne number in resource content." }, 3584 { "name": "lineNumber", "type": "number", "description": "Li ne number in resource content." },
3598 { "name": "lineContent", "type": "string", "description": "L ine with match content." } 3585 { "name": "lineContent", "type": "string", "description": "L ine with match content." }
(...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after
5280 ], 5267 ],
5281 "returns": [ 5268 "returns": [
5282 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5269 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5283 ], 5270 ],
5284 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5271 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5285 "hidden": true 5272 "hidden": true
5286 } 5273 }
5287 ] 5274 ]
5288 }] 5275 }]
5289 } 5276 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelineUIUtils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698