layertree

package
v0.0.0-...-60dbb97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

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

Generated by the chromedp-gen command.

Index

Constants

This section is empty.

Variables

EventTypes all event types in the domain.

Functions

This section is empty.

Types

type CompositingReasonsParams

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

func CompositingReasons(layerID LayerID) *CompositingReasonsParams

CompositingReasons provides the reasons why the given layer was composited.

parameters:

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

func (*CompositingReasonsParams) Do

func (p *CompositingReasonsParams) Do(ctxt context.Context, h cdp.Handler) (compositingReasons []string, err error)

Do executes LayerTree.compositingReasons against the provided context and target handler.

returns:

compositingReasons - A list of strings specifying reasons for the given layer to become composited.

func (CompositingReasonsParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CompositingReasonsParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CompositingReasonsParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CompositingReasonsParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type CompositingReasonsReturns

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

CompositingReasonsReturns return values.

func (CompositingReasonsReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CompositingReasonsReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*CompositingReasonsReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CompositingReasonsReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams

type DisableParams struct{}

DisableParams disables compositing tree inspection.

func Disable

func Disable() *DisableParams

Disable disables compositing tree inspection.

func (*DisableParams) Do

func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes LayerTree.disable against the provided context and target handler.

func (DisableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams

type EnableParams struct{}

EnableParams enables compositing tree inspection.

func Enable

func Enable() *EnableParams

Enable enables compositing tree inspection.

func (*EnableParams) Do

func (p *EnableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes LayerTree.enable against the provided context and target handler.

func (EnableParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventLayerPainted

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

EventLayerPainted [no description].

func (EventLayerPainted) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLayerPainted) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventLayerPainted) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLayerPainted) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type EventLayerTreeDidChange

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

EventLayerTreeDidChange [no description].

func (EventLayerTreeDidChange) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLayerTreeDidChange) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*EventLayerTreeDidChange) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLayerTreeDidChange) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Layer

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.

func (Layer) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Layer) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Layer) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Layer) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type LayerID

type LayerID string

LayerID unique Layer identifier.

func (LayerID) String

func (t LayerID) String() string

String returns the LayerID as string value.

type LoadSnapshotParams

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

LoadSnapshotParams returns the snapshot identifier.

func LoadSnapshot

func LoadSnapshot(tiles []*PictureTile) *LoadSnapshotParams

LoadSnapshot returns the snapshot identifier.

parameters:

tiles - An array of tiles composing the snapshot.

func (*LoadSnapshotParams) Do

func (p *LoadSnapshotParams) Do(ctxt context.Context, h cdp.Handler) (snapshotID SnapshotID, err error)

Do executes LayerTree.loadSnapshot against the provided context and target handler.

returns:

snapshotID - The id of the snapshot.

func (LoadSnapshotParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadSnapshotParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*LoadSnapshotParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadSnapshotParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type LoadSnapshotReturns

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

LoadSnapshotReturns return values.

func (LoadSnapshotReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (LoadSnapshotReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*LoadSnapshotReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LoadSnapshotReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type MakeSnapshotParams

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

MakeSnapshotParams returns the layer snapshot identifier.

func MakeSnapshot

func MakeSnapshot(layerID LayerID) *MakeSnapshotParams

MakeSnapshot returns the layer snapshot identifier.

parameters:

layerID - The id of the layer.

func (*MakeSnapshotParams) Do

func (p *MakeSnapshotParams) Do(ctxt context.Context, h cdp.Handler) (snapshotID SnapshotID, err error)

Do executes LayerTree.makeSnapshot against the provided context and target handler.

returns:

snapshotID - The id of the layer snapshot.

func (MakeSnapshotParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (MakeSnapshotParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*MakeSnapshotParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MakeSnapshotParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type MakeSnapshotReturns

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

MakeSnapshotReturns return values.

func (MakeSnapshotReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (MakeSnapshotReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*MakeSnapshotReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MakeSnapshotReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type PaintProfile

type PaintProfile []float64

PaintProfile array of timings, one per paint step.

type PictureTile

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.

func (PictureTile) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (PictureTile) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PictureTile) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PictureTile) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ProfileSnapshotParams

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

func ProfileSnapshot(snapshotID SnapshotID) *ProfileSnapshotParams

ProfileSnapshot [no description].

parameters:

snapshotID - The id of the layer snapshot.

func (*ProfileSnapshotParams) Do

func (p *ProfileSnapshotParams) Do(ctxt context.Context, h cdp.Handler) (timings []PaintProfile, err error)

Do executes LayerTree.profileSnapshot against the provided context and target handler.

returns:

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

func (ProfileSnapshotParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfileSnapshotParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ProfileSnapshotParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfileSnapshotParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (ProfileSnapshotParams) WithClipRect

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

WithClipRect the clip rectangle to apply when replaying the snapshot.

func (ProfileSnapshotParams) WithMinDuration

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

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

func (ProfileSnapshotParams) WithMinRepeatCount

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

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

type ProfileSnapshotReturns

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

ProfileSnapshotReturns return values.

func (ProfileSnapshotReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ProfileSnapshotReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ProfileSnapshotReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ProfileSnapshotReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ReleaseSnapshotParams

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

ReleaseSnapshotParams releases layer snapshot captured by the back-end.

func ReleaseSnapshot

func ReleaseSnapshot(snapshotID SnapshotID) *ReleaseSnapshotParams

ReleaseSnapshot releases layer snapshot captured by the back-end.

parameters:

snapshotID - The id of the layer snapshot.

func (*ReleaseSnapshotParams) Do

func (p *ReleaseSnapshotParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes LayerTree.releaseSnapshot against the provided context and target handler.

func (ReleaseSnapshotParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReleaseSnapshotParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReleaseSnapshotParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReleaseSnapshotParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ReplaySnapshotParams

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

func ReplaySnapshot(snapshotID SnapshotID) *ReplaySnapshotParams

ReplaySnapshot replays the layer snapshot and returns the resulting bitmap.

parameters:

snapshotID - The id of the layer snapshot.

func (*ReplaySnapshotParams) Do

func (p *ReplaySnapshotParams) Do(ctxt context.Context, h cdp.Handler) (dataURL string, err error)

Do executes LayerTree.replaySnapshot against the provided context and target handler.

returns:

dataURL - A data: URL for resulting image.

func (ReplaySnapshotParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReplaySnapshotParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReplaySnapshotParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReplaySnapshotParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (ReplaySnapshotParams) WithFromStep

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

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

func (ReplaySnapshotParams) WithToStep

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

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

type ReplaySnapshotReturns

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

ReplaySnapshotReturns return values.

func (ReplaySnapshotReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ReplaySnapshotReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ReplaySnapshotReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ReplaySnapshotReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ScrollRect

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.

func (ScrollRect) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScrollRect) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ScrollRect) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScrollRect) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ScrollRectType

type ScrollRectType string

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

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

ScrollRectType values.

func (ScrollRectType) MarshalEasyJSON

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ScrollRectType) MarshalJSON

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

MarshalJSON satisfies json.Marshaler.

func (ScrollRectType) String

func (t ScrollRectType) String() string

String returns the ScrollRectType as string value.

func (*ScrollRectType) UnmarshalEasyJSON

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ScrollRectType) UnmarshalJSON

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

UnmarshalJSON satisfies json.Unmarshaler.

type SnapshotCommandLogParams

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

SnapshotCommandLogParams replays the layer snapshot and returns canvas log.

func SnapshotCommandLog

func SnapshotCommandLog(snapshotID SnapshotID) *SnapshotCommandLogParams

SnapshotCommandLog replays the layer snapshot and returns canvas log.

parameters:

snapshotID - The id of the layer snapshot.

func (*SnapshotCommandLogParams) Do

func (p *SnapshotCommandLogParams) Do(ctxt context.Context, h cdp.Handler) (commandLog []easyjson.RawMessage, err error)

Do executes LayerTree.snapshotCommandLog against the provided context and target handler.

returns:

commandLog - The array of canvas function calls.

func (SnapshotCommandLogParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SnapshotCommandLogParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SnapshotCommandLogParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SnapshotCommandLogParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SnapshotCommandLogReturns

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

SnapshotCommandLogReturns return values.

func (SnapshotCommandLogReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SnapshotCommandLogReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SnapshotCommandLogReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SnapshotCommandLogReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SnapshotID

type SnapshotID string

SnapshotID unique snapshot identifier.

func (SnapshotID) String

func (t SnapshotID) String() string

String returns the SnapshotID as string value.

type StickyPositionConstraint

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.

func (StickyPositionConstraint) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StickyPositionConstraint) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StickyPositionConstraint) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StickyPositionConstraint) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL