| Index: third_party/WebKit/Source/core/inspector/protocol-1.1/Canvas.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/protocol-1.1/Canvas.json b/third_party/WebKit/Source/core/inspector/protocol-1.1/Canvas.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f0ed0e79e26a424eab8ccd4061defafdf02b2f8b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/protocol-1.1/Canvas.json
|
| @@ -0,0 +1,460 @@
|
| +{
|
| + "domain": "Canvas",
|
| + "version": {
|
| + "major": "1",
|
| + "minor": "1"
|
| + },
|
| + "hidden": true,
|
| + "types": [
|
| + {
|
| + "id": "ResourceId",
|
| + "type": "string",
|
| + "description": "Unique resource identifier."
|
| + },
|
| + {
|
| + "id": "ResourceStateDescriptor",
|
| + "type": "object",
|
| + "description": "Resource state descriptor.",
|
| + "properties": [
|
| + {
|
| + "name": "name",
|
| + "type": "string",
|
| + "description": "State name."
|
| + },
|
| + {
|
| + "name": "enumValueForName",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "String representation of the enum value, if <code>name</code> stands for an enum."
|
| + },
|
| + {
|
| + "name": "value",
|
| + "$ref": "CallArgument",
|
| + "optional": true,
|
| + "description": "The value associated with the particular state."
|
| + },
|
| + {
|
| + "name": "values",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "ResourceStateDescriptor"
|
| + },
|
| + "optional": true,
|
| + "description": "Array of values associated with the particular state. Either <code>value</code> or <code>values</code> will be specified."
|
| + },
|
| + {
|
| + "name": "isArray",
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "description": "True iff the given <code>values</code> items stand for an array rather than a list of grouped states."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "ResourceState",
|
| + "type": "object",
|
| + "description": "Resource state.",
|
| + "properties": [
|
| + {
|
| + "name": "id",
|
| + "$ref": "ResourceId"
|
| + },
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId"
|
| + },
|
| + {
|
| + "name": "descriptors",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "ResourceStateDescriptor"
|
| + },
|
| + "optional": true,
|
| + "description": "Describes current <code>Resource</code> state."
|
| + },
|
| + {
|
| + "name": "imageURL",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "Screenshot image data URL."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "CallArgument",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "description",
|
| + "type": "string",
|
| + "description": "String representation of the object."
|
| + },
|
| + {
|
| + "name": "enumName",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "Enum name, if any, that stands for the value (for example, a WebGL enum name)."
|
| + },
|
| + {
|
| + "name": "resourceId",
|
| + "$ref": "ResourceId",
|
| + "optional": true,
|
| + "description": "Resource identifier. Specified for <code>Resource</code> objects only."
|
| + },
|
| + {
|
| + "name": "type",
|
| + "type": "string",
|
| + "optional": true,
|
| + "enum": [
|
| + "object",
|
| + "function",
|
| + "undefined",
|
| + "string",
|
| + "number",
|
| + "boolean"
|
| + ],
|
| + "description": "Object type. Specified for non <code>Resource</code> objects only."
|
| + },
|
| + {
|
| + "name": "subtype",
|
| + "type": "string",
|
| + "optional": true,
|
| + "enum": [
|
| + "array",
|
| + "null",
|
| + "node",
|
| + "regexp",
|
| + "date"
|
| + ],
|
| + "description": "Object subtype hint. Specified for <code>object</code> type values only."
|
| + },
|
| + {
|
| + "name": "remoteObject",
|
| + "$ref": "Runtime.RemoteObject",
|
| + "optional": true,
|
| + "description": "The <code>RemoteObject</code>, if requested."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "Call",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "contextId",
|
| + "$ref": "ResourceId"
|
| + },
|
| + {
|
| + "name": "functionName",
|
| + "type": "string",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "arguments",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "CallArgument"
|
| + },
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "result",
|
| + "$ref": "CallArgument",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "isDrawingCall",
|
| + "type": "boolean",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "isFrameEndCall",
|
| + "type": "boolean",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "property",
|
| + "type": "string",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "value",
|
| + "$ref": "CallArgument",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "sourceURL",
|
| + "type": "string",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "lineNumber",
|
| + "type": "integer",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "columnNumber",
|
| + "type": "integer",
|
| + "optional": true
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "id": "TraceLogId",
|
| + "type": "string",
|
| + "description": "Unique trace log identifier."
|
| + },
|
| + {
|
| + "id": "TraceLog",
|
| + "type": "object",
|
| + "properties": [
|
| + {
|
| + "name": "id",
|
| + "$ref": "TraceLogId"
|
| + },
|
| + {
|
| + "name": "calls",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "Call"
|
| + }
|
| + },
|
| + {
|
| + "name": "contexts",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "CallArgument"
|
| + }
|
| + },
|
| + {
|
| + "name": "startOffset",
|
| + "type": "integer"
|
| + },
|
| + {
|
| + "name": "alive",
|
| + "type": "boolean"
|
| + },
|
| + {
|
| + "name": "totalAvailableCalls",
|
| + "type": "number"
|
| + }
|
| + ]
|
| + }
|
| + ],
|
| + "commands": [
|
| + {
|
| + "name": "enable",
|
| + "description": "Enables Canvas inspection."
|
| + },
|
| + {
|
| + "name": "disable",
|
| + "description": "Disables Canvas inspection."
|
| + },
|
| + {
|
| + "name": "dropTraceLog",
|
| + "parameters": [
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId"
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "hasUninstrumentedCanvases",
|
| + "returns": [
|
| + {
|
| + "name": "result",
|
| + "type": "boolean"
|
| + }
|
| + ],
|
| + "description": "Checks if there is any uninstrumented canvas in the inspected page."
|
| + },
|
| + {
|
| + "name": "captureFrame",
|
| + "parameters": [
|
| + {
|
| + "name": "frameId",
|
| + "$ref": "Page.FrameId",
|
| + "optional": true,
|
| + "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed."
|
| + }
|
| + ],
|
| + "returns": [
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId",
|
| + "description": "Identifier of the trace log containing captured canvas calls."
|
| + }
|
| + ],
|
| + "description": "Starts (or continues) a canvas frame capturing which will be stopped automatically after the next frame is prepared."
|
| + },
|
| + {
|
| + "name": "startCapturing",
|
| + "parameters": [
|
| + {
|
| + "name": "frameId",
|
| + "$ref": "Page.FrameId",
|
| + "optional": true,
|
| + "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed."
|
| + }
|
| + ],
|
| + "returns": [
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId",
|
| + "description": "Identifier of the trace log containing captured canvas calls."
|
| + }
|
| + ],
|
| + "description": "Starts (or continues) consecutive canvas frames capturing. The capturing is stopped by the corresponding stopCapturing command."
|
| + },
|
| + {
|
| + "name": "stopCapturing",
|
| + "parameters": [
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId"
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "getTraceLog",
|
| + "parameters": [
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId"
|
| + },
|
| + {
|
| + "name": "startOffset",
|
| + "type": "integer",
|
| + "optional": true
|
| + },
|
| + {
|
| + "name": "maxLength",
|
| + "type": "integer",
|
| + "optional": true
|
| + }
|
| + ],
|
| + "returns": [
|
| + {
|
| + "name": "traceLog",
|
| + "$ref": "TraceLog"
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "replayTraceLog",
|
| + "parameters": [
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId"
|
| + },
|
| + {
|
| + "name": "stepNo",
|
| + "type": "integer",
|
| + "description": "Last call index in the trace log to replay (zero based)."
|
| + }
|
| + ],
|
| + "returns": [
|
| + {
|
| + "name": "resourceState",
|
| + "$ref": "ResourceState"
|
| + },
|
| + {
|
| + "name": "replayTime",
|
| + "type": "number",
|
| + "description": "Replay time (in milliseconds)."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "getResourceState",
|
| + "parameters": [
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId"
|
| + },
|
| + {
|
| + "name": "resourceId",
|
| + "$ref": "ResourceId"
|
| + }
|
| + ],
|
| + "returns": [
|
| + {
|
| + "name": "resourceState",
|
| + "$ref": "ResourceState"
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "evaluateTraceLogCallArgument",
|
| + "parameters": [
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId"
|
| + },
|
| + {
|
| + "name": "callIndex",
|
| + "type": "integer",
|
| + "description": "Index of the call to evaluate on (zero based)."
|
| + },
|
| + {
|
| + "name": "argumentIndex",
|
| + "type": "integer",
|
| + "description": "Index of the argument to evaluate (zero based). Provide <code>-1</code> to evaluate call result."
|
| + },
|
| + {
|
| + "name": "objectGroup",
|
| + "type": "string",
|
| + "optional": true,
|
| + "description": "String object group name to put result into (allows rapid releasing resulting object handles using <code>Runtime.releaseObjectGroup</code>)."
|
| + }
|
| + ],
|
| + "returns": [
|
| + {
|
| + "name": "result",
|
| + "$ref": "Runtime.RemoteObject",
|
| + "optional": true,
|
| + "description": "Object wrapper for the evaluation result."
|
| + },
|
| + {
|
| + "name": "resourceState",
|
| + "$ref": "ResourceState",
|
| + "optional": true,
|
| + "description": "State of the <code>Resource</code> object."
|
| + }
|
| + ],
|
| + "description": "Evaluates a given trace call argument or its result."
|
| + }
|
| + ],
|
| + "events": [
|
| + {
|
| + "name": "contextCreated",
|
| + "parameters": [
|
| + {
|
| + "name": "frameId",
|
| + "$ref": "Page.FrameId",
|
| + "description": "Identifier of the frame containing a canvas with a context."
|
| + }
|
| + ],
|
| + "description": "Fired when a canvas context has been created in the given frame. The context may not be instrumented (see hasUninstrumentedCanvases command)."
|
| + },
|
| + {
|
| + "name": "traceLogsRemoved",
|
| + "parameters": [
|
| + {
|
| + "name": "frameId",
|
| + "$ref": "Page.FrameId",
|
| + "optional": true,
|
| + "description": "If given, trace logs from the given frame were removed."
|
| + },
|
| + {
|
| + "name": "traceLogId",
|
| + "$ref": "TraceLogId",
|
| + "optional": true,
|
| + "description": "If given, trace log with the given ID was removed."
|
| + }
|
| + ],
|
| + "description": "Fired when a set of trace logs were removed from the backend. If no parameters are given, all trace logs were removed."
|
| + }
|
| + ]
|
| +}
|
|
|