cdproto: github.com/chromedp/cdproto/layertree Index | Files

package layertree

import "github.com/chromedp/cdproto/layertree"

Package layertree provides the Chrome DevTools Protocol commands, types, and events for the LayerTree domain.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go events.go layertree.go types.go

Constants

const (
    CommandCompositingReasons = "LayerTree.compositingReasons"
    CommandDisable            = "LayerTree.disable"
    CommandEnable             = "LayerTree.enable"
    CommandLoadSnapshot       = "LayerTree.loadSnapshot"
    CommandMakeSnapshot       = "LayerTree.makeSnapshot"
    CommandProfileSnapshot    = "LayerTree.profileSnapshot"
    CommandReleaseSnapshot    = "LayerTree.releaseSnapshot"
    CommandReplaySnapshot     = "LayerTree.replaySnapshot"
    CommandSnapshotCommandLog = "LayerTree.snapshotCommandLog"
)

Command names.

type CompositingReasonsParams Uses

type CompositingReasonsParams struct {
    LayerID LayerID `json:"layerId"` // The id of the layer for which we want to get the reasons it was composited.
}

CompositingReasonsParams provides the reasons why the given layer was composited.

func CompositingReasons Uses

func CompositingReasons(layerID LayerID) *CompositingReasonsParams

CompositingReasons provides the reasons why the given layer was composited.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#method-compositingReasons

parameters:

layerID - The id of the layer for which we want to get the reasons it was composited.

func (*CompositingReasonsParams) Do Uses

func (p *CompositingReasonsParams) Do(ctx context.Context) (compositingReasonIds []string, err error)

Do executes LayerTree.compositingReasons against the provided context.

returns:

compositingReasonIds - A list of strings specifying reason IDs for the given layer to become composited.

func (CompositingReasonsParams) MarshalEasyJSON Uses

func (v CompositingReasonsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CompositingReasonsParams) MarshalJSON Uses

func (v CompositingReasonsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CompositingReasonsParams) UnmarshalEasyJSON Uses

func (v *CompositingReasonsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CompositingReasonsParams) UnmarshalJSON Uses

func (v *CompositingReasonsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CompositingReasonsReturns Uses

type CompositingReasonsReturns struct {
    CompositingReasonIds []string `json:"compositingReasonIds,omitempty"` // A list of strings specifying reason IDs for the given layer to become composited.
}

CompositingReasonsReturns return values.

func (CompositingReasonsReturns) MarshalEasyJSON Uses

func (v CompositingReasonsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CompositingReasonsReturns) MarshalJSON Uses

func (v CompositingReasonsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CompositingReasonsReturns) UnmarshalEasyJSON Uses

func (v *CompositingReasonsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CompositingReasonsReturns) UnmarshalJSON Uses

func (v *CompositingReasonsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams disables compositing tree inspection.

func Disable Uses

func Disable() *DisableParams

Disable disables compositing tree inspection.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes LayerTree.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams enables compositing tree inspection.

func Enable Uses

func Enable() *EnableParams

Enable enables compositing tree inspection.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes LayerTree.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventLayerPainted Uses

type EventLayerPainted struct {
    LayerID LayerID   `json:"layerId"` // The id of the painted layer.
    Clip    *dom.Rect `json:"clip"`    // Clip rectangle.
}

EventLayerPainted [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#event-layerPainted

func (EventLayerPainted) MarshalEasyJSON Uses

func (v EventLayerPainted) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLayerPainted) MarshalJSON Uses

func (v EventLayerPainted) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventLayerPainted) UnmarshalEasyJSON Uses

func (v *EventLayerPainted) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLayerPainted) UnmarshalJSON Uses

func (v *EventLayerPainted) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventLayerTreeDidChange Uses

type EventLayerTreeDidChange struct {
    Layers []*Layer `json:"layers,omitempty"` // Layer tree, absent if not in the comspositing mode.
}

EventLayerTreeDidChange [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#event-layerTreeDidChange

func (EventLayerTreeDidChange) MarshalEasyJSON Uses

func (v EventLayerTreeDidChange) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLayerTreeDidChange) MarshalJSON Uses

func (v EventLayerTreeDidChange) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventLayerTreeDidChange) UnmarshalEasyJSON Uses

func (v *EventLayerTreeDidChange) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLayerTreeDidChange) UnmarshalJSON Uses

func (v *EventLayerTreeDidChange) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Layer Uses

type Layer struct {
    LayerID                  LayerID                   `json:"layerId"`                            // The unique id for this layer.
    ParentLayerID            LayerID                   `json:"parentLayerId,omitempty"`            // The id of parent (not present for root).
    BackendNodeID            cdp.BackendNodeID         `json:"backendNodeId,omitempty"`            // The backend id for the node associated with this layer.
    OffsetX                  float64                   `json:"offsetX"`                            // Offset from parent layer, X coordinate.
    OffsetY                  float64                   `json:"offsetY"`                            // Offset from parent layer, Y coordinate.
    Width                    float64                   `json:"width"`                              // Layer width.
    Height                   float64                   `json:"height"`                             // Layer height.
    Transform                []float64                 `json:"transform,omitempty"`                // Transformation matrix for layer, default is identity matrix
    AnchorX                  float64                   `json:"anchorX,omitempty"`                  // Transform anchor point X, absent if no transform specified
    AnchorY                  float64                   `json:"anchorY,omitempty"`                  // Transform anchor point Y, absent if no transform specified
    AnchorZ                  float64                   `json:"anchorZ,omitempty"`                  // Transform anchor point Z, absent if no transform specified
    PaintCount               int64                     `json:"paintCount"`                         // Indicates how many time this layer has painted.
    DrawsContent             bool                      `json:"drawsContent"`                       // Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.
    Invisible                bool                      `json:"invisible,omitempty"`                // Set if layer is not visible.
    ScrollRects              []*ScrollRect             `json:"scrollRects,omitempty"`              // Rectangles scrolling on main thread only.
    StickyPositionConstraint *StickyPositionConstraint `json:"stickyPositionConstraint,omitempty"` // Sticky position constraint information
}

Layer information about a compositing layer.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#type-Layer

func (Layer) MarshalEasyJSON Uses

func (v Layer) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Layer) MarshalJSON Uses

func (v Layer) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Layer) UnmarshalEasyJSON Uses

func (v *Layer) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Layer) UnmarshalJSON Uses

func (v *Layer) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LayerID Uses

type LayerID string

LayerID unique Layer identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#type-LayerId

func (LayerID) String Uses

func (t LayerID) String() string

String returns the LayerID as string value.

type LoadSnapshotParams Uses

type LoadSnapshotParams struct {
    Tiles []*PictureTile `json:"tiles"` // An array of tiles composing the snapshot.
}

LoadSnapshotParams returns the snapshot identifier.

func LoadSnapshot Uses

func LoadSnapshot(tiles []*PictureTile) *LoadSnapshotParams

LoadSnapshot returns the snapshot identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#method-loadSnapshot

parameters:

tiles - An array of tiles composing the snapshot.

func (*LoadSnapshotParams) Do Uses

func (p *LoadSnapshotParams) Do(ctx context.Context) (snapshotID SnapshotID, err error)

Do executes LayerTree.loadSnapshot against the provided context.

returns:

snapshotID - The id of the snapshot.

func (LoadSnapshotParams) MarshalEasyJSON Uses

func (v LoadSnapshotParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadSnapshotParams) MarshalJSON Uses

func (v LoadSnapshotParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LoadSnapshotParams) UnmarshalEasyJSON Uses

func (v *LoadSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadSnapshotParams) UnmarshalJSON Uses

func (v *LoadSnapshotParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LoadSnapshotReturns Uses

type LoadSnapshotReturns struct {
    SnapshotID SnapshotID `json:"snapshotId,omitempty"` // The id of the snapshot.
}

LoadSnapshotReturns return values.

func (LoadSnapshotReturns) MarshalEasyJSON Uses

func (v LoadSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadSnapshotReturns) MarshalJSON Uses

func (v LoadSnapshotReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*LoadSnapshotReturns) UnmarshalEasyJSON Uses

func (v *LoadSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadSnapshotReturns) UnmarshalJSON Uses

func (v *LoadSnapshotReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MakeSnapshotParams Uses

type MakeSnapshotParams struct {
    LayerID LayerID `json:"layerId"` // The id of the layer.
}

MakeSnapshotParams returns the layer snapshot identifier.

func MakeSnapshot Uses

func MakeSnapshot(layerID LayerID) *MakeSnapshotParams

MakeSnapshot returns the layer snapshot identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#method-makeSnapshot

parameters:

layerID - The id of the layer.

func (*MakeSnapshotParams) Do Uses

func (p *MakeSnapshotParams) Do(ctx context.Context) (snapshotID SnapshotID, err error)

Do executes LayerTree.makeSnapshot against the provided context.

returns:

snapshotID - The id of the layer snapshot.

func (MakeSnapshotParams) MarshalEasyJSON Uses

func (v MakeSnapshotParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MakeSnapshotParams) MarshalJSON Uses

func (v MakeSnapshotParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MakeSnapshotParams) UnmarshalEasyJSON Uses

func (v *MakeSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MakeSnapshotParams) UnmarshalJSON Uses

func (v *MakeSnapshotParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MakeSnapshotReturns Uses

type MakeSnapshotReturns struct {
    SnapshotID SnapshotID `json:"snapshotId,omitempty"` // The id of the layer snapshot.
}

MakeSnapshotReturns return values.

func (MakeSnapshotReturns) MarshalEasyJSON Uses

func (v MakeSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MakeSnapshotReturns) MarshalJSON Uses

func (v MakeSnapshotReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MakeSnapshotReturns) UnmarshalEasyJSON Uses

func (v *MakeSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MakeSnapshotReturns) UnmarshalJSON Uses

func (v *MakeSnapshotReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PaintProfile Uses

type PaintProfile []float64

PaintProfile array of timings, one per paint step.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#type-PaintProfile

type PictureTile Uses

type PictureTile struct {
    X       float64 `json:"x"`       // Offset from owning layer left boundary
    Y       float64 `json:"y"`       // Offset from owning layer top boundary
    Picture string  `json:"picture"` // Base64-encoded snapshot data.
}

PictureTile serialized fragment of layer picture along with its offset within the layer.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#type-PictureTile

func (PictureTile) MarshalEasyJSON Uses

func (v PictureTile) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PictureTile) MarshalJSON Uses

func (v PictureTile) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PictureTile) UnmarshalEasyJSON Uses

func (v *PictureTile) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PictureTile) UnmarshalJSON Uses

func (v *PictureTile) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ProfileSnapshotParams Uses

type ProfileSnapshotParams struct {
    SnapshotID     SnapshotID `json:"snapshotId"`               // The id of the layer snapshot.
    MinRepeatCount int64      `json:"minRepeatCount,omitempty"` // The maximum number of times to replay the snapshot (1, if not specified).
    MinDuration    float64    `json:"minDuration,omitempty"`    // The minimum duration (in seconds) to replay the snapshot.
    ClipRect       *dom.Rect  `json:"clipRect,omitempty"`       // The clip rectangle to apply when replaying the snapshot.
}

ProfileSnapshotParams [no description].

func ProfileSnapshot Uses

func ProfileSnapshot(snapshotID SnapshotID) *ProfileSnapshotParams

ProfileSnapshot [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#method-profileSnapshot

parameters:

snapshotID - The id of the layer snapshot.

func (*ProfileSnapshotParams) Do Uses

func (p *ProfileSnapshotParams) Do(ctx context.Context) (timings []PaintProfile, err error)

Do executes LayerTree.profileSnapshot against the provided context.

returns:

timings - The array of paint profiles, one per run.

func (ProfileSnapshotParams) MarshalEasyJSON Uses

func (v ProfileSnapshotParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfileSnapshotParams) MarshalJSON Uses

func (v ProfileSnapshotParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ProfileSnapshotParams) UnmarshalEasyJSON Uses

func (v *ProfileSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfileSnapshotParams) UnmarshalJSON Uses

func (v *ProfileSnapshotParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (ProfileSnapshotParams) WithClipRect Uses

func (p ProfileSnapshotParams) WithClipRect(clipRect *dom.Rect) *ProfileSnapshotParams

WithClipRect the clip rectangle to apply when replaying the snapshot.

func (ProfileSnapshotParams) WithMinDuration Uses

func (p ProfileSnapshotParams) WithMinDuration(minDuration float64) *ProfileSnapshotParams

WithMinDuration the minimum duration (in seconds) to replay the snapshot.

func (ProfileSnapshotParams) WithMinRepeatCount Uses

func (p ProfileSnapshotParams) WithMinRepeatCount(minRepeatCount int64) *ProfileSnapshotParams

WithMinRepeatCount the maximum number of times to replay the snapshot (1, if not specified).

type ProfileSnapshotReturns Uses

type ProfileSnapshotReturns struct {
    Timings []PaintProfile `json:"timings,omitempty"` // The array of paint profiles, one per run.
}

ProfileSnapshotReturns return values.

func (ProfileSnapshotReturns) MarshalEasyJSON Uses

func (v ProfileSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfileSnapshotReturns) MarshalJSON Uses

func (v ProfileSnapshotReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ProfileSnapshotReturns) UnmarshalEasyJSON Uses

func (v *ProfileSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfileSnapshotReturns) UnmarshalJSON Uses

func (v *ProfileSnapshotReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReleaseSnapshotParams Uses

type ReleaseSnapshotParams struct {
    SnapshotID SnapshotID `json:"snapshotId"` // The id of the layer snapshot.
}

ReleaseSnapshotParams releases layer snapshot captured by the back-end.

func ReleaseSnapshot Uses

func ReleaseSnapshot(snapshotID SnapshotID) *ReleaseSnapshotParams

ReleaseSnapshot releases layer snapshot captured by the back-end.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#method-releaseSnapshot

parameters:

snapshotID - The id of the layer snapshot.

func (*ReleaseSnapshotParams) Do Uses

func (p *ReleaseSnapshotParams) Do(ctx context.Context) (err error)

Do executes LayerTree.releaseSnapshot against the provided context.

func (ReleaseSnapshotParams) MarshalEasyJSON Uses

func (v ReleaseSnapshotParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReleaseSnapshotParams) MarshalJSON Uses

func (v ReleaseSnapshotParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReleaseSnapshotParams) UnmarshalEasyJSON Uses

func (v *ReleaseSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReleaseSnapshotParams) UnmarshalJSON Uses

func (v *ReleaseSnapshotParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ReplaySnapshotParams Uses

type ReplaySnapshotParams struct {
    SnapshotID SnapshotID `json:"snapshotId"`         // The id of the layer snapshot.
    FromStep   int64      `json:"fromStep,omitempty"` // The first step to replay from (replay from the very start if not specified).
    ToStep     int64      `json:"toStep,omitempty"`   // The last step to replay to (replay till the end if not specified).
    Scale      float64    `json:"scale,omitempty"`    // The scale to apply while replaying (defaults to 1).
}

ReplaySnapshotParams replays the layer snapshot and returns the resulting bitmap.

func ReplaySnapshot Uses

func ReplaySnapshot(snapshotID SnapshotID) *ReplaySnapshotParams

ReplaySnapshot replays the layer snapshot and returns the resulting bitmap.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#method-replaySnapshot

parameters:

snapshotID - The id of the layer snapshot.

func (*ReplaySnapshotParams) Do Uses

func (p *ReplaySnapshotParams) Do(ctx context.Context) (dataURL string, err error)

Do executes LayerTree.replaySnapshot against the provided context.

returns:

dataURL - A data: URL for resulting image.

func (ReplaySnapshotParams) MarshalEasyJSON Uses

func (v ReplaySnapshotParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReplaySnapshotParams) MarshalJSON Uses

func (v ReplaySnapshotParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReplaySnapshotParams) UnmarshalEasyJSON Uses

func (v *ReplaySnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReplaySnapshotParams) UnmarshalJSON Uses

func (v *ReplaySnapshotParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (ReplaySnapshotParams) WithFromStep Uses

func (p ReplaySnapshotParams) WithFromStep(fromStep int64) *ReplaySnapshotParams

WithFromStep the first step to replay from (replay from the very start if not specified).

func (ReplaySnapshotParams) WithScale Uses

func (p ReplaySnapshotParams) WithScale(scale float64) *ReplaySnapshotParams

WithScale the scale to apply while replaying (defaults to 1).

func (ReplaySnapshotParams) WithToStep Uses

func (p ReplaySnapshotParams) WithToStep(toStep int64) *ReplaySnapshotParams

WithToStep the last step to replay to (replay till the end if not specified).

type ReplaySnapshotReturns Uses

type ReplaySnapshotReturns struct {
    DataURL string `json:"dataURL,omitempty"` // A data: URL for resulting image.
}

ReplaySnapshotReturns return values.

func (ReplaySnapshotReturns) MarshalEasyJSON Uses

func (v ReplaySnapshotReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReplaySnapshotReturns) MarshalJSON Uses

func (v ReplaySnapshotReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ReplaySnapshotReturns) UnmarshalEasyJSON Uses

func (v *ReplaySnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReplaySnapshotReturns) UnmarshalJSON Uses

func (v *ReplaySnapshotReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScrollRect Uses

type ScrollRect struct {
    Rect *dom.Rect      `json:"rect"` // Rectangle itself.
    Type ScrollRectType `json:"type"` // Reason for rectangle to force scrolling on the main thread
}

ScrollRect rectangle where scrolling happens on the main thread.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#type-ScrollRect

func (ScrollRect) MarshalEasyJSON Uses

func (v ScrollRect) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScrollRect) MarshalJSON Uses

func (v ScrollRect) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScrollRect) UnmarshalEasyJSON Uses

func (v *ScrollRect) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScrollRect) UnmarshalJSON Uses

func (v *ScrollRect) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScrollRectType Uses

type ScrollRectType string

ScrollRectType reason for rectangle to force scrolling on the main thread.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#type-ScrollRect

const (
    ScrollRectTypeRepaintsOnScroll  ScrollRectType = "RepaintsOnScroll"
    ScrollRectTypeTouchEventHandler ScrollRectType = "TouchEventHandler"
    ScrollRectTypeWheelEventHandler ScrollRectType = "WheelEventHandler"
)

ScrollRectType values.

func (ScrollRectType) MarshalEasyJSON Uses

func (t ScrollRectType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ScrollRectType) MarshalJSON Uses

func (t ScrollRectType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ScrollRectType) String Uses

func (t ScrollRectType) String() string

String returns the ScrollRectType as string value.

func (*ScrollRectType) UnmarshalEasyJSON Uses

func (t *ScrollRectType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ScrollRectType) UnmarshalJSON Uses

func (t *ScrollRectType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type SnapshotCommandLogParams Uses

type SnapshotCommandLogParams struct {
    SnapshotID SnapshotID `json:"snapshotId"` // The id of the layer snapshot.
}

SnapshotCommandLogParams replays the layer snapshot and returns canvas log.

func SnapshotCommandLog Uses

func SnapshotCommandLog(snapshotID SnapshotID) *SnapshotCommandLogParams

SnapshotCommandLog replays the layer snapshot and returns canvas log.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#method-snapshotCommandLog

parameters:

snapshotID - The id of the layer snapshot.

func (*SnapshotCommandLogParams) Do Uses

func (p *SnapshotCommandLogParams) Do(ctx context.Context) (commandLog []easyjson.RawMessage, err error)

Do executes LayerTree.snapshotCommandLog against the provided context.

returns:

commandLog - The array of canvas function calls.

func (SnapshotCommandLogParams) MarshalEasyJSON Uses

func (v SnapshotCommandLogParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SnapshotCommandLogParams) MarshalJSON Uses

func (v SnapshotCommandLogParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SnapshotCommandLogParams) UnmarshalEasyJSON Uses

func (v *SnapshotCommandLogParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SnapshotCommandLogParams) UnmarshalJSON Uses

func (v *SnapshotCommandLogParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SnapshotCommandLogReturns Uses

type SnapshotCommandLogReturns struct {
    CommandLog []easyjson.RawMessage `json:"commandLog,omitempty"` // The array of canvas function calls.
}

SnapshotCommandLogReturns return values.

func (SnapshotCommandLogReturns) MarshalEasyJSON Uses

func (v SnapshotCommandLogReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SnapshotCommandLogReturns) MarshalJSON Uses

func (v SnapshotCommandLogReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SnapshotCommandLogReturns) UnmarshalEasyJSON Uses

func (v *SnapshotCommandLogReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SnapshotCommandLogReturns) UnmarshalJSON Uses

func (v *SnapshotCommandLogReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SnapshotID Uses

type SnapshotID string

SnapshotID unique snapshot identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#type-SnapshotId

func (SnapshotID) String Uses

func (t SnapshotID) String() string

String returns the SnapshotID as string value.

type StickyPositionConstraint Uses

type StickyPositionConstraint struct {
    StickyBoxRect                       *dom.Rect `json:"stickyBoxRect"`                                 // Layout rectangle of the sticky element before being shifted
    ContainingBlockRect                 *dom.Rect `json:"containingBlockRect"`                           // Layout rectangle of the containing block of the sticky element
    NearestLayerShiftingStickyBox       LayerID   `json:"nearestLayerShiftingStickyBox,omitempty"`       // The nearest sticky layer that shifts the sticky box
    NearestLayerShiftingContainingBlock LayerID   `json:"nearestLayerShiftingContainingBlock,omitempty"` // The nearest sticky layer that shifts the containing block
}

StickyPositionConstraint sticky position constraints.

See: https://chromedevtools.github.io/devtools-protocol/tot/LayerTree#type-StickyPositionConstraint

func (StickyPositionConstraint) MarshalEasyJSON Uses

func (v StickyPositionConstraint) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StickyPositionConstraint) MarshalJSON Uses

func (v StickyPositionConstraint) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StickyPositionConstraint) UnmarshalEasyJSON Uses

func (v *StickyPositionConstraint) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StickyPositionConstraint) UnmarshalJSON Uses

func (v *StickyPositionConstraint) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package layertree imports 8 packages (graph) and is imported by 3 packages. Updated 2021-01-07. Refresh now. Tools for package owners.