| Index: third_party/WebKit/Source/core/inspector/protocol-1.1/LayerTree.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/protocol-1.1/LayerTree.json b/third_party/WebKit/Source/core/inspector/protocol-1.1/LayerTree.json
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6742f1eed0033c3719442352aa2ace4f52df84c2
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/inspector/protocol-1.1/LayerTree.json
|
| @@ -0,0 +1,157 @@
|
| +{
|
| + "domain": "LayerTree",
|
| + "version": {
|
| + "major": "1",
|
| + "minor": "1"
|
| + },
|
| + "hidden": true,
|
| + "types": [
|
| + {
|
| + "id": "LayerId",
|
| + "type": "string",
|
| + "description": "Unique Layer identifier."
|
| + },
|
| + {
|
| + "id": "Layer",
|
| + "type": "object",
|
| + "description": "Information about a compositing layer.",
|
| + "properties": [
|
| + {
|
| + "name": "layerId",
|
| + "$ref": "LayerId",
|
| + "description": "The unique id for this layer."
|
| + },
|
| + {
|
| + "name": "parentLayerId",
|
| + "$ref": "LayerId",
|
| + "optional": true,
|
| + "description": "The id of parent (not present for root)."
|
| + },
|
| + {
|
| + "name": "nodeId",
|
| + "$ref": "DOM.NodeId",
|
| + "optional": true,
|
| + "description": "The id for the node associated with this layer."
|
| + },
|
| + {
|
| + "name": "offsetX",
|
| + "type": "number",
|
| + "description": "Offset from parent layer, X coordinate."
|
| + },
|
| + {
|
| + "name": "offsetY",
|
| + "type": "number",
|
| + "description": "Offset from parent layer, X coordinate."
|
| + },
|
| + {
|
| + "name": "width",
|
| + "type": "number",
|
| + "description": "Layer width."
|
| + },
|
| + {
|
| + "name": "height",
|
| + "type": "number",
|
| + "description": "Layer height."
|
| + },
|
| + {
|
| + "name": "transform",
|
| + "type": "array",
|
| + "items": {
|
| + "type": "number"
|
| + },
|
| + "minItems": 16,
|
| + "maxItems": 16,
|
| + "optional": true,
|
| + "description": "Transformation matrix for layer, default is identity matrix"
|
| + },
|
| + {
|
| + "name": "anchorX",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Transform anchor point X, absent if no transform specified"
|
| + },
|
| + {
|
| + "name": "anchorY",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Transform anchor point Y, absent if no transform specified"
|
| + },
|
| + {
|
| + "name": "anchorZ",
|
| + "type": "number",
|
| + "optional": true,
|
| + "description": "Transform anchor point Z, absent if no transform specified"
|
| + },
|
| + {
|
| + "name": "paintCount",
|
| + "type": "integer",
|
| + "description": "Indicates how many time this layer has painted."
|
| + },
|
| + {
|
| + "name": "invisible",
|
| + "type": "boolean",
|
| + "optional": true,
|
| + "description": "Set if layer is not visible."
|
| + }
|
| + ]
|
| + }
|
| + ],
|
| + "commands": [
|
| + {
|
| + "name": "enable",
|
| + "description": "Enables compositing tree inspection."
|
| + },
|
| + {
|
| + "name": "disable",
|
| + "description": "Disables compositing tree inspection."
|
| + },
|
| + {
|
| + "name": "getLayers",
|
| + "parameters": [
|
| + {
|
| + "name": "nodeId",
|
| + "optional": true,
|
| + "$ref": "DOM.NodeId",
|
| + "description": "Root of the subtree for which we want to gather layers (return entire tree if not specified)"
|
| + }
|
| + ],
|
| + "description": "Returns the layer tree structure of the current page.",
|
| + "returns": [
|
| + {
|
| + "name": "layers",
|
| + "type": "array",
|
| + "items": {
|
| + "$ref": "Layer"
|
| + },
|
| + "description": "Child layers."
|
| + }
|
| + ]
|
| + },
|
| + {
|
| + "name": "compositingReasons",
|
| + "parameters": [
|
| + {
|
| + "name": "layerId",
|
| + "$ref": "LayerId",
|
| + "description": "The id of the layer for which we want to get the reasons it was composited."
|
| + }
|
| + ],
|
| + "description": "Provides the reasons why the given layer was composited.",
|
| + "returns": [
|
| + {
|
| + "name": "compositingReasons",
|
| + "type": "array",
|
| + "items": {
|
| + "type": "string"
|
| + },
|
| + "description": "A list of strings specifying reasons for the given layer to become composited."
|
| + }
|
| + ]
|
| + }
|
| + ],
|
| + "events": [
|
| + {
|
| + "name": "layerTreeDidChange"
|
| + }
|
| + ]
|
| +}
|
|
|