| Index: third_party/WebKit/Source/core/inspector/protocol-1.1/Console.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/protocol-1.1/Console.json b/third_party/WebKit/Source/core/inspector/protocol-1.1/Console.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bec660fba521d36ae0722e9ea02a7a5dfe117896
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/protocol-1.1/Console.json
|
| @@ -0,0 +1,251 @@
|
| +{
|
| + "domain": "Console",
|
| + "version": {
|
| + "major": "1",
|
| + "minor": "1"
|
| + },
|
| + "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console API</a>. One needs to enable this domain using <code>enable</code> command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using <code>messageAdded</code> notification upon enabling.",
|
| + "types": [
|
| + {
|
| + "id": "Timestamp",
|
| + "type": "number",
|
| + "description": "Number of seconds since epoch.",
|
| + "hidden": true
|
| + },
|
| + {
|
| + "id": "ConsoleMessage",
|
| + "type": "object",
|
| + "description": "Console message.",
|
| + "properties": [
|
| + {
|
| + "name": "source",
|
| + "type": "string",
|
| + "enum": [
|
| + "xml",
|
| + "javascript",
|
| + "network",
|
| + "console-api",
|
| + "storage",
|
| + "appcache",
|
| + "rendering",
|
| + "css",
|
| + "security",
|
| + "other",
|
| + "deprecation"
|
| + ],
|
| + "description": "Message source."
|
| + },
|
| + {
|
| + "name": "level",
|
| + "type": "string",
|
| + "enum": [
|
| + "log",
|
| + "warning",
|
| + "error",
|
| + "debug"
|
| + ],
|
| + "description": "Message severity."
|
| + },
|
| + {
|
| + "name": "text",
|
| + "type": "string",
|
| + "description": "Message text."
|
| + },
|
| + {
|
| + "name": "type",
|
| + "type": "string",
|
| + "optional": true,
|
| + "enum": [
|
| + "log",
|
| + "dir",
|
| + "dirxml",
|
| + "table",
|
| + "trace",
|
| + "clear",
|
| + "startGroup",
|
| + "startGroupCollapsed",
|
| + "endGroup",
|
| + "assert",
|
| + "timing",
|
| + "profile",
|
| + "profileEnd"
|
| + ],
|
| + "description": "Console message type."
|
| + },
|
| + {
|
| + "name": "url",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "URL of the message origin."
|
| + },
|
| + {
|
| + "name": "line",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Line number in the resource that generated this message."
|
| + },
|
| + {
|
| + "name": "column",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Column number in the resource that generated this message."
|
| + },
|
| + {
|
| + "name": "repeatCount",
|
| + "type": "integer",
|
| + "optional": true,
|
| + "description": "Repeat count for repeated messages."
|
| + },
|
| + {
|
| + "name": "parameters",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "Runtime.RemoteObject"
|
| + },
|
| + "optional": true,
|
| + "description": "Message parameters in case of the formatted message."
|
| + },
|
| + {
|
| + "name": "stackTrace",
|
| + "$ref": "StackTrace",
|
| + "optional": true,
|
| + "description": "JavaScript stack trace for assertions and error messages."
|
| + },
|
| + {
|
| + "name": "networkRequestId",
|
| + "$ref": "Network.RequestId",
|
| + "optional": true,
|
| + "description": "Identifier of the network request associated with this message."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp, when this message was fired.",
|
| + "hidden": true
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "CallFrame",
|
| + "type": "object",
|
| + "description": "Stack entry for console errors and assertions.",
|
| + "properties": [
|
| + {
|
| + "name": "functionName",
|
| + "type": "string",
|
| + "description": "JavaScript function name."
|
| + },
|
| + {
|
| + "name": "scriptId",
|
| + "type": "string",
|
| + "description": "JavaScript script id."
|
| + },
|
| + {
|
| + "name": "url",
|
| + "type": "string",
|
| + "description": "JavaScript script name or url."
|
| + },
|
| + {
|
| + "name": "lineNumber",
|
| + "type": "integer",
|
| + "description": "JavaScript script line number."
|
| + },
|
| + {
|
| + "name": "columnNumber",
|
| + "type": "integer",
|
| + "description": "JavaScript script column number."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "StackTrace",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "CallFrame"
|
| + },
|
| + "description": "Call frames for assertions or error messages."
|
| + }
|
| + ],
|
| + "commands": [
|
| + {
|
| + "name": "enable",
|
| + "description": "Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification."
|
| + },
|
| + {
|
| + "name": "disable",
|
| + "description": "Disables console domain, prevents further console messages from being reported to the client."
|
| + },
|
| + {
|
| + "name": "clearMessages",
|
| + "description": "Clears console messages collected in the browser."
|
| + },
|
| + {
|
| + "name": "setMonitoringXHREnabled",
|
| + "parameters": [
|
| + {
|
| + "name": "enabled",
|
| + "type": "boolean",
|
| + "description": "Monitoring enabled state."
|
| + }
|
| + ],
|
| + "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued.",
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "addInspectedNode",
|
| + "parameters": [
|
| + {
|
| + "name": "nodeId",
|
| + "$ref": "DOM.NodeId",
|
| + "description": "DOM node id to be accessible by means of $x command line API."
|
| + }
|
| + ],
|
| + "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).",
|
| + "hidden": true
|
| + },
|
| + {
|
| + "name": "addInspectedHeapObject",
|
| + "parameters": [
|
| + {
|
| + "name": "heapObjectId",
|
| + "type": "integer"
|
| + }
|
| + ],
|
| + "hidden": true
|
| + }
|
| + ],
|
| + "events": [
|
| + {
|
| + "name": "messageAdded",
|
| + "parameters": [
|
| + {
|
| + "name": "message",
|
| + "$ref": "ConsoleMessage",
|
| + "description": "Console message that has been added."
|
| + }
|
| + ],
|
| + "description": "Issued when new console message is added."
|
| + },
|
| + {
|
| + "name": "messageRepeatCountUpdated",
|
| + "parameters": [
|
| + {
|
| + "name": "count",
|
| + "type": "integer",
|
| + "description": "New repeat count value."
|
| + },
|
| + {
|
| + "name": "timestamp",
|
| + "$ref": "Timestamp",
|
| + "description": "Timestamp of most recent message in batch.",
|
| + "hidden": true
|
| + }
|
| + ],
|
| + "description": "Issued when subsequent message(s) are equal to the previous one(s)."
|
| + },
|
| + {
|
| + "name": "messagesCleared",
|
| + "description": "Issued when console is cleared. This happens either upon <code>clearMessages</code> command or after page navigation."
|
| + }
|
| + ]
|
| +}
|
|
|