Versions in this module Expand all Collapse all v0 v0.1.1 Oct 17, 2019 Changes in this version + const CommandCompositingReasons + const CommandDisable + const CommandEnable + const CommandLoadSnapshot + const CommandMakeSnapshot + const CommandProfileSnapshot + const CommandReleaseSnapshot + const CommandReplaySnapshot + const CommandSnapshotCommandLog + type CompositingReasonsParams struct + LayerID LayerID + func CompositingReasons(layerID LayerID) *CompositingReasonsParams + func (p *CompositingReasonsParams) Do(ctx context.Context) (compositingReasons []string, err error) + func (v *CompositingReasonsParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CompositingReasonsParams) UnmarshalJSON(data []byte) error + func (v CompositingReasonsParams) MarshalEasyJSON(w *jwriter.Writer) + func (v CompositingReasonsParams) MarshalJSON() ([]byte, error) + type CompositingReasonsReturns struct + CompositingReasons []string + func (v *CompositingReasonsReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *CompositingReasonsReturns) UnmarshalJSON(data []byte) error + func (v CompositingReasonsReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v CompositingReasonsReturns) MarshalJSON() ([]byte, error) + type DisableParams struct + func Disable() *DisableParams + func (p *DisableParams) Do(ctx context.Context) (err error) + func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DisableParams) UnmarshalJSON(data []byte) error + func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DisableParams) MarshalJSON() ([]byte, error) + type EnableParams struct + func Enable() *EnableParams + func (p *EnableParams) Do(ctx context.Context) (err error) + func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EnableParams) UnmarshalJSON(data []byte) error + func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v EnableParams) MarshalJSON() ([]byte, error) + type EventLayerPainted struct + Clip *dom.Rect + LayerID LayerID + func (v *EventLayerPainted) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventLayerPainted) UnmarshalJSON(data []byte) error + func (v EventLayerPainted) MarshalEasyJSON(w *jwriter.Writer) + func (v EventLayerPainted) MarshalJSON() ([]byte, error) + type EventLayerTreeDidChange struct + Layers []*Layer + func (v *EventLayerTreeDidChange) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventLayerTreeDidChange) UnmarshalJSON(data []byte) error + func (v EventLayerTreeDidChange) MarshalEasyJSON(w *jwriter.Writer) + func (v EventLayerTreeDidChange) MarshalJSON() ([]byte, error) + type Layer struct + AnchorX float64 + AnchorY float64 + AnchorZ float64 + BackendNodeID cdp.BackendNodeID + DrawsContent bool + Height float64 + Invisible bool + LayerID LayerID + OffsetX float64 + OffsetY float64 + PaintCount int64 + ParentLayerID LayerID + ScrollRects []*ScrollRect + StickyPositionConstraint *StickyPositionConstraint + Transform []float64 + Width float64 + func (v *Layer) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Layer) UnmarshalJSON(data []byte) error + func (v Layer) MarshalEasyJSON(w *jwriter.Writer) + func (v Layer) MarshalJSON() ([]byte, error) + type LayerID string + func (t LayerID) String() string + type LoadSnapshotParams struct + Tiles []*PictureTile + func LoadSnapshot(tiles []*PictureTile) *LoadSnapshotParams + func (p *LoadSnapshotParams) Do(ctx context.Context) (snapshotID SnapshotID, err error) + func (v *LoadSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *LoadSnapshotParams) UnmarshalJSON(data []byte) error + func (v LoadSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) + func (v LoadSnapshotParams) MarshalJSON() ([]byte, error) + type LoadSnapshotReturns struct + SnapshotID SnapshotID + func (v *LoadSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *LoadSnapshotReturns) UnmarshalJSON(data []byte) error + func (v LoadSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v LoadSnapshotReturns) MarshalJSON() ([]byte, error) + type MakeSnapshotParams struct + LayerID LayerID + func MakeSnapshot(layerID LayerID) *MakeSnapshotParams + func (p *MakeSnapshotParams) Do(ctx context.Context) (snapshotID SnapshotID, err error) + func (v *MakeSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *MakeSnapshotParams) UnmarshalJSON(data []byte) error + func (v MakeSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) + func (v MakeSnapshotParams) MarshalJSON() ([]byte, error) + type MakeSnapshotReturns struct + SnapshotID SnapshotID + func (v *MakeSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *MakeSnapshotReturns) UnmarshalJSON(data []byte) error + func (v MakeSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v MakeSnapshotReturns) MarshalJSON() ([]byte, error) + type PaintProfile []float64 + type PictureTile struct + Picture string + X float64 + Y float64 + func (v *PictureTile) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *PictureTile) UnmarshalJSON(data []byte) error + func (v PictureTile) MarshalEasyJSON(w *jwriter.Writer) + func (v PictureTile) MarshalJSON() ([]byte, error) + type ProfileSnapshotParams struct + ClipRect *dom.Rect + MinDuration float64 + MinRepeatCount int64 + SnapshotID SnapshotID + func ProfileSnapshot(snapshotID SnapshotID) *ProfileSnapshotParams + func (p *ProfileSnapshotParams) Do(ctx context.Context) (timings []PaintProfile, err error) + func (p ProfileSnapshotParams) WithClipRect(clipRect *dom.Rect) *ProfileSnapshotParams + func (p ProfileSnapshotParams) WithMinDuration(minDuration float64) *ProfileSnapshotParams + func (p ProfileSnapshotParams) WithMinRepeatCount(minRepeatCount int64) *ProfileSnapshotParams + func (v *ProfileSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ProfileSnapshotParams) UnmarshalJSON(data []byte) error + func (v ProfileSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ProfileSnapshotParams) MarshalJSON() ([]byte, error) + type ProfileSnapshotReturns struct + Timings []PaintProfile + func (v *ProfileSnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ProfileSnapshotReturns) UnmarshalJSON(data []byte) error + func (v ProfileSnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v ProfileSnapshotReturns) MarshalJSON() ([]byte, error) + type ReleaseSnapshotParams struct + SnapshotID SnapshotID + func ReleaseSnapshot(snapshotID SnapshotID) *ReleaseSnapshotParams + func (p *ReleaseSnapshotParams) Do(ctx context.Context) (err error) + func (v *ReleaseSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ReleaseSnapshotParams) UnmarshalJSON(data []byte) error + func (v ReleaseSnapshotParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ReleaseSnapshotParams) MarshalJSON() ([]byte, error) + type ReplaySnapshotParams struct + FromStep int64 + Scale float64 + SnapshotID SnapshotID + ToStep int64 + func ReplaySnapshot(snapshotID SnapshotID) *ReplaySnapshotParams + func (p *ReplaySnapshotParams) Do(ctx context.Context) (dataURL string, err error) + func (p ReplaySnapshotParams) WithFromStep(fromStep int64) *ReplaySnapshotParams + func (p ReplaySnapshotParams) WithScale(scale float64) *ReplaySnapshotParams + func (p ReplaySnapshotParams) WithToStep(toStep int64) *ReplaySnapshotParams + func (v *ReplaySnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ReplaySnapshotParams) UnmarshalJSON(data []byte) error + func (v ReplaySnapshotParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ReplaySnapshotParams) MarshalJSON() ([]byte, error) + type ReplaySnapshotReturns struct + DataURL string + func (v *ReplaySnapshotReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ReplaySnapshotReturns) UnmarshalJSON(data []byte) error + func (v ReplaySnapshotReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v ReplaySnapshotReturns) MarshalJSON() ([]byte, error) + type ScrollRect struct + Rect *dom.Rect + Type ScrollRectType + func (v *ScrollRect) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ScrollRect) UnmarshalJSON(data []byte) error + func (v ScrollRect) MarshalEasyJSON(w *jwriter.Writer) + func (v ScrollRect) MarshalJSON() ([]byte, error) + type ScrollRectType string + const ScrollRectTypeRepaintsOnScroll + const ScrollRectTypeTouchEventHandler + const ScrollRectTypeWheelEventHandler + func (t *ScrollRectType) UnmarshalEasyJSON(in *jlexer.Lexer) + func (t *ScrollRectType) UnmarshalJSON(buf []byte) error + func (t ScrollRectType) MarshalEasyJSON(out *jwriter.Writer) + func (t ScrollRectType) MarshalJSON() ([]byte, error) + func (t ScrollRectType) String() string + type SnapshotCommandLogParams struct + SnapshotID SnapshotID + func SnapshotCommandLog(snapshotID SnapshotID) *SnapshotCommandLogParams + func (p *SnapshotCommandLogParams) Do(ctx context.Context) (commandLog []easyjson.RawMessage, err error) + func (v *SnapshotCommandLogParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SnapshotCommandLogParams) UnmarshalJSON(data []byte) error + func (v SnapshotCommandLogParams) MarshalEasyJSON(w *jwriter.Writer) + func (v SnapshotCommandLogParams) MarshalJSON() ([]byte, error) + type SnapshotCommandLogReturns struct + CommandLog []easyjson.RawMessage + func (v *SnapshotCommandLogReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *SnapshotCommandLogReturns) UnmarshalJSON(data []byte) error + func (v SnapshotCommandLogReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v SnapshotCommandLogReturns) MarshalJSON() ([]byte, error) + type SnapshotID string + func (t SnapshotID) String() string + type StickyPositionConstraint struct + ContainingBlockRect *dom.Rect + NearestLayerShiftingContainingBlock LayerID + NearestLayerShiftingStickyBox LayerID + StickyBoxRect *dom.Rect + func (v *StickyPositionConstraint) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *StickyPositionConstraint) UnmarshalJSON(data []byte) error + func (v StickyPositionConstraint) MarshalEasyJSON(w *jwriter.Writer) + func (v StickyPositionConstraint) MarshalJSON() ([]byte, error)