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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/protocol/Runtime.json

Issue 2035653005: DevTools: split protocol.json into files per domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/protocol/Runtime.json
diff --git a/third_party/WebKit/Source/platform/v8_inspector/protocol/Runtime.json b/third_party/WebKit/Source/platform/v8_inspector/protocol/Runtime.json
new file mode 100644
index 0000000000000000000000000000000000000000..a94cb95f02478efb7fe69aedce16b0a25bbe7711
--- /dev/null
+++ b/third_party/WebKit/Source/platform/v8_inspector/protocol/Runtime.json
@@ -0,0 +1,909 @@
+{
+ "domain": "Runtime",
+ "version": {
+ "major": "1",
+ "minor": "1"
+ },
+ "description": "Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.",
+ "types": [
+ {
+ "id": "ScriptId",
+ "type": "string",
+ "description": "Unique script identifier."
+ },
+ {
+ "id": "RemoteObjectId",
+ "type": "string",
+ "description": "Unique object identifier."
+ },
+ {
+ "id": "RemoteObject",
+ "type": "object",
+ "description": "Mirror object referencing original JavaScript object.",
+ "properties": [
+ {
+ "name": "type",
+ "type": "string",
+ "enum": [
+ "object",
+ "function",
+ "undefined",
+ "string",
+ "number",
+ "boolean",
+ "symbol"
+ ],
+ "description": "Object type."
+ },
+ {
+ "name": "subtype",
+ "type": "string",
+ "optional": true,
+ "enum": [
+ "array",
+ "null",
+ "node",
+ "regexp",
+ "date",
+ "map",
+ "set",
+ "iterator",
+ "generator",
+ "error"
+ ],
+ "description": "Object subtype hint. Specified for <code>object</code> type values only."
+ },
+ {
+ "name": "className",
+ "type": "string",
+ "optional": true,
+ "description": "Object class (constructor) name. Specified for <code>object</code> type values only."
+ },
+ {
+ "name": "value",
+ "type": "any",
+ "optional": true,
+ "description": "Remote object value in case of primitive values or JSON values (if it was requested), or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0)."
+ },
+ {
+ "name": "description",
+ "type": "string",
+ "optional": true,
+ "description": "String representation of the object."
+ },
+ {
+ "name": "objectId",
+ "$ref": "RemoteObjectId",
+ "optional": true,
+ "description": "Unique object identifier (for non-primitive values)."
+ },
+ {
+ "name": "preview",
+ "$ref": "ObjectPreview",
+ "optional": true,
+ "description": "Preview containing abbreviated property values. Specified for <code>object</code> type values only.",
+ "hidden": true
+ },
+ {
+ "name": "customPreview",
+ "$ref": "CustomPreview",
+ "optional": true,
+ "hidden": true
+ }
+ ]
+ },
+ {
+ "id": "CustomPreview",
+ "type": "object",
+ "hidden": true,
+ "properties": [
+ {
+ "name": "header",
+ "type": "string"
+ },
+ {
+ "name": "hasBody",
+ "type": "boolean"
+ },
+ {
+ "name": "formatterObjectId",
+ "$ref": "RemoteObjectId"
+ },
+ {
+ "name": "bindRemoteObjectFunctionId",
+ "$ref": "RemoteObjectId"
+ },
+ {
+ "name": "configObjectId",
+ "$ref": "RemoteObjectId",
+ "optional": true
+ }
+ ]
+ },
+ {
+ "id": "ObjectPreview",
+ "type": "object",
+ "hidden": true,
+ "description": "Object containing abbreviated remote object value.",
+ "properties": [
+ {
+ "name": "type",
+ "type": "string",
+ "enum": [
+ "object",
+ "function",
+ "undefined",
+ "string",
+ "number",
+ "boolean",
+ "symbol"
+ ],
+ "description": "Object type."
+ },
+ {
+ "name": "subtype",
+ "type": "string",
+ "optional": true,
+ "enum": [
+ "array",
+ "null",
+ "node",
+ "regexp",
+ "date",
+ "map",
+ "set",
+ "iterator",
+ "generator",
+ "error"
+ ],
+ "description": "Object subtype hint. Specified for <code>object</code> type values only."
+ },
+ {
+ "name": "description",
+ "type": "string",
+ "optional": true,
+ "description": "String representation of the object."
+ },
+ {
+ "name": "overflow",
+ "type": "boolean",
+ "description": "True iff some of the properties or entries of the original object did not fit."
+ },
+ {
+ "name": "properties",
+ "type": "array",
+ "items": {
+ "$ref": "PropertyPreview"
+ },
+ "description": "List of the properties."
+ },
+ {
+ "name": "entries",
+ "type": "array",
+ "items": {
+ "$ref": "EntryPreview"
+ },
+ "optional": true,
+ "description": "List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only."
+ }
+ ]
+ },
+ {
+ "id": "PropertyPreview",
+ "type": "object",
+ "hidden": true,
+ "properties": [
+ {
+ "name": "name",
+ "type": "string",
+ "description": "Property name."
+ },
+ {
+ "name": "type",
+ "type": "string",
+ "enum": [
+ "object",
+ "function",
+ "undefined",
+ "string",
+ "number",
+ "boolean",
+ "symbol",
+ "accessor"
+ ],
+ "description": "Object type. Accessor means that the property itself is an accessor property."
+ },
+ {
+ "name": "value",
+ "type": "string",
+ "optional": true,
+ "description": "User-friendly property value string."
+ },
+ {
+ "name": "valuePreview",
+ "$ref": "ObjectPreview",
+ "optional": true,
+ "description": "Nested value preview."
+ },
+ {
+ "name": "subtype",
+ "type": "string",
+ "optional": true,
+ "enum": [
+ "array",
+ "null",
+ "node",
+ "regexp",
+ "date",
+ "map",
+ "set",
+ "iterator",
+ "generator",
+ "error"
+ ],
+ "description": "Object subtype hint. Specified for <code>object</code> type values only."
+ }
+ ]
+ },
+ {
+ "id": "EntryPreview",
+ "type": "object",
+ "hidden": true,
+ "properties": [
+ {
+ "name": "key",
+ "$ref": "ObjectPreview",
+ "optional": true,
+ "description": "Preview of the key. Specified for map-like collection entries."
+ },
+ {
+ "name": "value",
+ "$ref": "ObjectPreview",
+ "description": "Preview of the value."
+ }
+ ]
+ },
+ {
+ "id": "PropertyDescriptor",
+ "type": "object",
+ "description": "Object property descriptor.",
+ "properties": [
+ {
+ "name": "name",
+ "type": "string",
+ "description": "Property name or symbol description."
+ },
+ {
+ "name": "value",
+ "$ref": "RemoteObject",
+ "optional": true,
+ "description": "The value associated with the property."
+ },
+ {
+ "name": "writable",
+ "type": "boolean",
+ "optional": true,
+ "description": "True if the value associated with the property may be changed (data descriptors only)."
+ },
+ {
+ "name": "get",
+ "$ref": "RemoteObject",
+ "optional": true,
+ "description": "A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only)."
+ },
+ {
+ "name": "set",
+ "$ref": "RemoteObject",
+ "optional": true,
+ "description": "A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only)."
+ },
+ {
+ "name": "configurable",
+ "type": "boolean",
+ "description": "True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object."
+ },
+ {
+ "name": "enumerable",
+ "type": "boolean",
+ "description": "True if this property shows up during enumeration of the properties on the corresponding object."
+ },
+ {
+ "name": "wasThrown",
+ "type": "boolean",
+ "optional": true,
+ "description": "True if the result was thrown during the evaluation."
+ },
+ {
+ "name": "isOwn",
+ "optional": true,
+ "type": "boolean",
+ "description": "True if the property is owned for the object.",
+ "hidden": true
+ },
+ {
+ "name": "symbol",
+ "$ref": "RemoteObject",
+ "optional": true,
+ "description": "Property symbol object, if the property is of the <code>symbol</code> type.",
+ "hidden": true
+ }
+ ]
+ },
+ {
+ "id": "InternalPropertyDescriptor",
+ "type": "object",
+ "description": "Object internal property descriptor. This property isn't normally visible in JavaScript code.",
+ "properties": [
+ {
+ "name": "name",
+ "type": "string",
+ "description": "Conventional property name."
+ },
+ {
+ "name": "value",
+ "$ref": "RemoteObject",
+ "optional": true,
+ "description": "The value associated with the property."
+ }
+ ],
+ "hidden": true
+ },
+ {
+ "id": "CallArgument",
+ "type": "object",
+ "description": "Represents function call argument. Either remote object id <code>objectId</code> or primitive <code>value</code> or neither of (for undefined) them should be specified.",
+ "properties": [
+ {
+ "name": "value",
+ "type": "any",
+ "optional": true,
+ "description": "Primitive value, or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0)."
+ },
+ {
+ "name": "objectId",
+ "$ref": "RemoteObjectId",
+ "optional": true,
+ "description": "Remote object handle."
+ },
+ {
+ "name": "type",
+ "optional": true,
+ "hidden": true,
+ "type": "string",
+ "enum": [
+ "object",
+ "function",
+ "undefined",
+ "string",
+ "number",
+ "boolean",
+ "symbol"
+ ],
+ "description": "Object type."
+ }
+ ]
+ },
+ {
+ "id": "ExecutionContextId",
+ "type": "integer",
+ "description": "Id of an execution context."
+ },
+ {
+ "id": "ExecutionContextDescription",
+ "type": "object",
+ "description": "Description of an isolated world.",
+ "properties": [
+ {
+ "name": "id",
+ "$ref": "ExecutionContextId",
+ "description": "Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed."
+ },
+ {
+ "name": "isDefault",
+ "type": "boolean",
+ "description": "Whether context is the default page context (as opposite to e.g. context of content script).",
+ "hidden": true
+ },
+ {
+ "name": "origin",
+ "type": "string",
+ "description": "Execution context origin.",
+ "hidden": true
+ },
+ {
+ "name": "name",
+ "type": "string",
+ "description": "Human readable name describing given context.",
+ "hidden": true
+ },
+ {
+ "name": "frameId",
+ "type": "string",
+ "description": "Id of the owning frame. May be an empty string if the context is not associated with a frame."
+ }
+ ]
+ },
+ {
+ "id": "ExceptionDetails",
+ "type": "object",
+ "description": "Detailed information on exception (or error) that was thrown during script compilation or execution.",
+ "properties": [
+ {
+ "name": "text",
+ "type": "string",
+ "description": "Exception text."
+ },
+ {
+ "name": "url",
+ "type": "string",
+ "optional": true,
+ "description": "URL of the message origin."
+ },
+ {
+ "name": "scriptId",
+ "type": "string",
+ "optional": true,
+ "description": "Script ID 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": "stack",
+ "$ref": "StackTrace",
+ "optional": true,
+ "description": "JavaScript stack trace for assertions and error messages."
+ }
+ ]
+ },
+ {
+ "id": "CallFrame",
+ "type": "object",
+ "description": "Stack entry for runtime errors and assertions.",
+ "properties": [
+ {
+ "name": "functionName",
+ "type": "string",
+ "description": "JavaScript function name."
+ },
+ {
+ "name": "scriptId",
+ "$ref": "ScriptId",
+ "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": "object",
+ "description": "Call frames for assertions or error messages.",
+ "properties": [
+ {
+ "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."
+ },
+ {
+ "name": "callFrames",
+ "type": "array",
+ "items": {
+ "$ref": "CallFrame"
+ },
+ "description": "JavaScript function name."
+ },
+ {
+ "name": "parent",
+ "$ref": "StackTrace",
+ "optional": true,
+ "hidden": true,
+ "description": "Asynchronous JavaScript stack trace that preceded this stack, if available."
+ }
+ ]
+ }
+ ],
+ "commands": [
+ {
+ "name": "evaluate",
+ "parameters": [
+ {
+ "name": "expression",
+ "type": "string",
+ "description": "Expression to evaluate."
+ },
+ {
+ "name": "objectGroup",
+ "type": "string",
+ "optional": true,
+ "description": "Symbolic group name that can be used to release multiple objects."
+ },
+ {
+ "name": "includeCommandLineAPI",
+ "type": "boolean",
+ "optional": true,
+ "description": "Determines whether Command Line API should be available during the evaluation.",
+ "hidden": true
+ },
+ {
+ "name": "doNotPauseOnExceptionsAndMuteConsole",
+ "type": "boolean",
+ "optional": true,
+ "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.",
+ "hidden": true
+ },
+ {
+ "name": "contextId",
+ "$ref": "ExecutionContextId",
+ "optional": true,
+ "description": "Specifies in which isolated context to perform evaluation. 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 or 0 the evaluation will be performed in the context of the inspected page."
+ },
+ {
+ "name": "returnByValue",
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether the result is expected to be a JSON object that should be sent by value."
+ },
+ {
+ "name": "generatePreview",
+ "type": "boolean",
+ "optional": true,
+ "hidden": true,
+ "description": "Whether preview should be generated for the result."
+ },
+ {
+ "name": "userGesture",
+ "type": "boolean",
+ "optional": true,
+ "hidden": true,
+ "description": "Whether execution should be treated as initiated by user in the UI."
+ }
+ ],
+ "returns": [
+ {
+ "name": "result",
+ "$ref": "RemoteObject",
+ "description": "Evaluation result."
+ },
+ {
+ "name": "wasThrown",
+ "type": "boolean",
+ "optional": true,
+ "description": "True if the result was thrown during the evaluation."
+ },
+ {
+ "name": "exceptionDetails",
+ "$ref": "ExceptionDetails",
+ "optional": true,
+ "hidden": true,
+ "description": "Exception details."
+ }
+ ],
+ "description": "Evaluates expression on global object."
+ },
+ {
+ "name": "callFunctionOn",
+ "parameters": [
+ {
+ "name": "objectId",
+ "$ref": "RemoteObjectId",
+ "description": "Identifier of the object to call function on."
+ },
+ {
+ "name": "functionDeclaration",
+ "type": "string",
+ "description": "Declaration of the function to call."
+ },
+ {
+ "name": "arguments",
+ "type": "array",
+ "items": {
+ "$ref": "CallArgument",
+ "description": "Call argument."
+ },
+ "optional": true,
+ "description": "Call arguments. All call arguments must belong to the same JavaScript world as the target object."
+ },
+ {
+ "name": "doNotPauseOnExceptionsAndMuteConsole",
+ "type": "boolean",
+ "optional": true,
+ "description": "Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state.",
+ "hidden": true
+ },
+ {
+ "name": "returnByValue",
+ "type": "boolean",
+ "optional": true,
+ "description": "Whether the result is expected to be a JSON object which should be sent by value."
+ },
+ {
+ "name": "generatePreview",
+ "type": "boolean",
+ "optional": true,
+ "hidden": true,
+ "description": "Whether preview should be generated for the result."
+ },
+ {
+ "name": "userGesture",
+ "type": "boolean",
+ "optional": true,
+ "hidden": true,
+ "description": "Whether execution should be treated as initiated by user in the UI."
+ }
+ ],
+ "returns": [
+ {
+ "name": "result",
+ "$ref": "RemoteObject",
+ "description": "Call result."
+ },
+ {
+ "name": "wasThrown",
+ "type": "boolean",
+ "optional": true,
+ "description": "True if the result was thrown during the evaluation."
+ }
+ ],
+ "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
+ },
+ {
+ "name": "getProperties",
+ "parameters": [
+ {
+ "name": "objectId",
+ "$ref": "RemoteObjectId",
+ "description": "Identifier of the object to return properties for."
+ },
+ {
+ "name": "ownProperties",
+ "optional": true,
+ "type": "boolean",
+ "description": "If true, returns properties belonging only to the element itself, not to its prototype chain."
+ },
+ {
+ "name": "accessorPropertiesOnly",
+ "optional": true,
+ "type": "boolean",
+ "description": "If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.",
+ "hidden": true
+ },
+ {
+ "name": "generatePreview",
+ "type": "boolean",
+ "optional": true,
+ "hidden": true,
+ "description": "Whether preview should be generated for the results."
+ }
+ ],
+ "returns": [
+ {
+ "name": "result",
+ "type": "array",
+ "items": {
+ "$ref": "PropertyDescriptor"
+ },
+ "description": "Object properties."
+ },
+ {
+ "name": "internalProperties",
+ "optional": true,
+ "type": "array",
+ "items": {
+ "$ref": "InternalPropertyDescriptor"
+ },
+ "description": "Internal object properties (only of the element itself).",
+ "hidden": true
+ },
+ {
+ "name": "exceptionDetails",
+ "$ref": "ExceptionDetails",
+ "optional": true,
+ "hidden": true,
+ "description": "Exception details."
+ }
+ ],
+ "description": "Returns properties of a given object. Object group of the result is inherited from the target object."
+ },
+ {
+ "name": "releaseObject",
+ "parameters": [
+ {
+ "name": "objectId",
+ "$ref": "RemoteObjectId",
+ "description": "Identifier of the object to release."
+ }
+ ],
+ "description": "Releases remote object with given id."
+ },
+ {
+ "name": "releaseObjectGroup",
+ "parameters": [
+ {
+ "name": "objectGroup",
+ "type": "string",
+ "description": "Symbolic object group name."
+ }
+ ],
+ "description": "Releases all remote objects that belong to a given group."
+ },
+ {
+ "name": "run",
+ "hidden": true,
+ "description": "Tells inspected instance(worker or page) that it can run in case it was started paused."
+ },
+ {
+ "name": "enable",
+ "description": "Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context."
+ },
+ {
+ "name": "disable",
+ "hidden": true,
+ "description": "Disables reporting of execution contexts creation."
+ },
+ {
+ "name": "setCustomObjectFormatterEnabled",
+ "parameters": [
+ {
+ "name": "enabled",
+ "type": "boolean"
+ }
+ ],
+ "hidden": true
+ },
+ {
+ "name": "compileScript",
+ "hidden": true,
+ "parameters": [
+ {
+ "name": "expression",
+ "type": "string",
+ "description": "Expression to compile."
+ },
+ {
+ "name": "sourceURL",
+ "type": "string",
+ "description": "Source url to be set for the script."
+ },
+ {
+ "name": "persistScript",
+ "type": "boolean",
+ "description": "Specifies whether the compiled script should be persisted."
+ },
+ {
+ "name": "executionContextId",
+ "$ref": "ExecutionContextId",
+ "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter is used to specify one of those contexts."
+ }
+ ],
+ "returns": [
+ {
+ "name": "scriptId",
+ "$ref": "ScriptId",
+ "optional": true,
+ "description": "Id of the script."
+ },
+ {
+ "name": "exceptionDetails",
+ "$ref": "ExceptionDetails",
+ "optional": true,
+ "description": "Exception details."
+ }
+ ],
+ "description": "Compiles expression."
+ },
+ {
+ "name": "runScript",
+ "hidden": true,
+ "parameters": [
+ {
+ "name": "scriptId",
+ "$ref": "ScriptId",
+ "description": "Id of the script to run."
+ },
+ {
+ "name": "executionContextId",
+ "$ref": "ExecutionContextId",
+ "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter is used to specify one of those contexts."
+ },
+ {
+ "name": "objectGroup",
+ "type": "string",
+ "optional": true,
+ "description": "Symbolic group name that can be used to release multiple objects."
+ },
+ {
+ "name": "doNotPauseOnExceptionsAndMuteConsole",
+ "type": "boolean",
+ "optional": true,
+ "description": "Specifies whether script run should stop on exceptions and mute console. Overrides setPauseOnException state."
+ },
+ {
+ "name": "includeCommandLineAPI",
+ "type": "boolean",
+ "optional": true,
+ "description": "Determines whether Command Line API should be available during the evaluation."
+ }
+ ],
+ "returns": [
+ {
+ "name": "result",
+ "$ref": "RemoteObject",
+ "description": "Run result."
+ },
+ {
+ "name": "exceptionDetails",
+ "$ref": "ExceptionDetails",
+ "optional": true,
+ "description": "Exception details."
+ }
+ ],
+ "description": "Runs script with given id in a given context."
+ }
+ ],
+ "events": [
+ {
+ "name": "executionContextCreated",
+ "parameters": [
+ {
+ "name": "context",
+ "$ref": "ExecutionContextDescription",
+ "description": "A newly created execution contex."
+ }
+ ],
+ "description": "Issued when new execution context is created."
+ },
+ {
+ "name": "executionContextDestroyed",
+ "parameters": [
+ {
+ "name": "executionContextId",
+ "$ref": "ExecutionContextId",
+ "description": "Id of the destroyed context"
+ }
+ ],
+ "description": "Issued when execution context is destroyed."
+ },
+ {
+ "name": "executionContextsCleared",
+ "description": "Issued when all executionContexts were cleared in browser"
+ },
+ {
+ "name": "inspectRequested",
+ "parameters": [
+ {
+ "name": "object",
+ "$ref": "RemoteObject"
+ },
+ {
+ "name": "hints",
+ "type": "object"
+ }
+ ],
+ "hidden": true
+ }
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698