# This file is auto-generated by the CDP protocol generator.
# Do not edit this file manually as your changes will be overwritten.
# Generated from Chrome DevTools Protocol specifications.

"""CDP LayerTree Domain Events"""

from typing import List
from typing_extensions import TypedDict

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from ..dom.types import Rect
    from .types import Layer
    from .types import LayerId


class LayerPaintedEvent(TypedDict):
    layerId: "LayerId"
    """The id of the painted layer."""
    clip: "Rect"
    """Clip rectangle."""


class LayerTreeDidChangeEvent(TypedDict, total=False):
    layers: "List[Layer]"
    """Layer tree, absent if not in the compositing mode."""
