id
int32
0
167k
repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
listlengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
listlengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
18,900
mafredri/cdp
protocol/dom/command.go
NewSetInspectedNodeArgs
func NewSetInspectedNodeArgs(nodeID NodeID) *SetInspectedNodeArgs { args := new(SetInspectedNodeArgs) args.NodeID = nodeID return args }
go
func NewSetInspectedNodeArgs(nodeID NodeID) *SetInspectedNodeArgs { args := new(SetInspectedNodeArgs) args.NodeID = nodeID return args }
[ "func", "NewSetInspectedNodeArgs", "(", "nodeID", "NodeID", ")", "*", "SetInspectedNodeArgs", "{", "args", ":=", "new", "(", "SetInspectedNodeArgs", ")", "\n", "args", ".", "NodeID", "=", "nodeID", "\n", "return", "args", "\n", "}" ]
// NewSetInspectedNodeArgs initializes SetInspectedNodeArgs with the required arguments.
[ "NewSetInspectedNodeArgs", "initializes", "SetInspectedNodeArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/dom/command.go#L777-L781
18,901
mafredri/cdp
protocol/dom/command.go
NewSetNodeNameArgs
func NewSetNodeNameArgs(nodeID NodeID, name string) *SetNodeNameArgs { args := new(SetNodeNameArgs) args.NodeID = nodeID args.Name = name return args }
go
func NewSetNodeNameArgs(nodeID NodeID, name string) *SetNodeNameArgs { args := new(SetNodeNameArgs) args.NodeID = nodeID args.Name = name return args }
[ "func", "NewSetNodeNameArgs", "(", "nodeID", "NodeID", ",", "name", "string", ")", "*", "SetNodeNameArgs", "{", "args", ":=", "new", "(", "SetNodeNameArgs", ")", "\n", "args", ".", "NodeID", "=", "nodeID", "\n", "args", ".", "Name", "=", "name", "\n", "return", "args", "\n", "}" ]
// NewSetNodeNameArgs initializes SetNodeNameArgs with the required arguments.
[ "NewSetNodeNameArgs", "initializes", "SetNodeNameArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/dom/command.go#L790-L795
18,902
mafredri/cdp
protocol/dom/command.go
NewSetNodeValueArgs
func NewSetNodeValueArgs(nodeID NodeID, value string) *SetNodeValueArgs { args := new(SetNodeValueArgs) args.NodeID = nodeID args.Value = value return args }
go
func NewSetNodeValueArgs(nodeID NodeID, value string) *SetNodeValueArgs { args := new(SetNodeValueArgs) args.NodeID = nodeID args.Value = value return args }
[ "func", "NewSetNodeValueArgs", "(", "nodeID", "NodeID", ",", "value", "string", ")", "*", "SetNodeValueArgs", "{", "args", ":=", "new", "(", "SetNodeValueArgs", ")", "\n", "args", ".", "NodeID", "=", "nodeID", "\n", "args", ".", "Value", "=", "value", "\n", "return", "args", "\n", "}" ]
// NewSetNodeValueArgs initializes SetNodeValueArgs with the required arguments.
[ "NewSetNodeValueArgs", "initializes", "SetNodeValueArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/dom/command.go#L809-L814
18,903
mafredri/cdp
protocol/dom/command.go
NewSetOuterHTMLArgs
func NewSetOuterHTMLArgs(nodeID NodeID, outerHTML string) *SetOuterHTMLArgs { args := new(SetOuterHTMLArgs) args.NodeID = nodeID args.OuterHTML = outerHTML return args }
go
func NewSetOuterHTMLArgs(nodeID NodeID, outerHTML string) *SetOuterHTMLArgs { args := new(SetOuterHTMLArgs) args.NodeID = nodeID args.OuterHTML = outerHTML return args }
[ "func", "NewSetOuterHTMLArgs", "(", "nodeID", "NodeID", ",", "outerHTML", "string", ")", "*", "SetOuterHTMLArgs", "{", "args", ":=", "new", "(", "SetOuterHTMLArgs", ")", "\n", "args", ".", "NodeID", "=", "nodeID", "\n", "args", ".", "OuterHTML", "=", "outerHTML", "\n", "return", "args", "\n", "}" ]
// NewSetOuterHTMLArgs initializes SetOuterHTMLArgs with the required arguments.
[ "NewSetOuterHTMLArgs", "initializes", "SetOuterHTMLArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/dom/command.go#L823-L828
18,904
mafredri/cdp
protocol/dom/command.go
NewGetFrameOwnerArgs
func NewGetFrameOwnerArgs(frameID internal.PageFrameID) *GetFrameOwnerArgs { args := new(GetFrameOwnerArgs) args.FrameID = frameID return args }
go
func NewGetFrameOwnerArgs(frameID internal.PageFrameID) *GetFrameOwnerArgs { args := new(GetFrameOwnerArgs) args.FrameID = frameID return args }
[ "func", "NewGetFrameOwnerArgs", "(", "frameID", "internal", ".", "PageFrameID", ")", "*", "GetFrameOwnerArgs", "{", "args", ":=", "new", "(", "GetFrameOwnerArgs", ")", "\n", "args", ".", "FrameID", "=", "frameID", "\n", "return", "args", "\n", "}" ]
// NewGetFrameOwnerArgs initializes GetFrameOwnerArgs with the required arguments.
[ "NewGetFrameOwnerArgs", "initializes", "GetFrameOwnerArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/dom/command.go#L836-L840
18,905
mafredri/cdp
protocol/network/types.go
Time
func (t TimeSinceEpoch) Time() time.Time { ts := float64(t) / 1 secs := int64(ts) nsecs := int64((ts - float64(secs)) * 1000000000) return time.Unix(secs, nsecs) }
go
func (t TimeSinceEpoch) Time() time.Time { ts := float64(t) / 1 secs := int64(ts) nsecs := int64((ts - float64(secs)) * 1000000000) return time.Unix(secs, nsecs) }
[ "func", "(", "t", "TimeSinceEpoch", ")", "Time", "(", ")", "time", ".", "Time", "{", "ts", ":=", "float64", "(", "t", ")", "/", "1", "\n", "secs", ":=", "int64", "(", "ts", ")", "\n", "nsecs", ":=", "int64", "(", "(", "ts", "-", "float64", "(", "secs", ")", ")", "*", "1000000000", ")", "\n", "return", "time", ".", "Unix", "(", "secs", ",", "nsecs", ")", "\n", "}" ]
// Time parses the Unix time.
[ "Time", "parses", "the", "Unix", "time", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/types.go#L104-L109
18,906
mafredri/cdp
protocol/network/types.go
MarshalJSON
func (t TimeSinceEpoch) MarshalJSON() ([]byte, error) { if t == 0 { return []byte("null"), nil } f := float64(t) return json.Marshal(&f) }
go
func (t TimeSinceEpoch) MarshalJSON() ([]byte, error) { if t == 0 { return []byte("null"), nil } f := float64(t) return json.Marshal(&f) }
[ "func", "(", "t", "TimeSinceEpoch", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "if", "t", "==", "0", "{", "return", "[", "]", "byte", "(", "\"", "\"", ")", ",", "nil", "\n", "}", "\n", "f", ":=", "float64", "(", "t", ")", "\n", "return", "json", ".", "Marshal", "(", "&", "f", ")", "\n", "}" ]
// MarshalJSON implements json.Marshaler. Encodes to null if t is zero.
[ "MarshalJSON", "implements", "json", ".", "Marshaler", ".", "Encodes", "to", "null", "if", "t", "is", "zero", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/types.go#L112-L118
18,907
mafredri/cdp
protocol/network/types.go
UnmarshalJSON
func (h *Headers) UnmarshalJSON(data []byte) error { if h == nil { return errors.New("network.Headers: UnmarshalJSON on nil pointer") } *h = append((*h)[0:0], data...) return nil }
go
func (h *Headers) UnmarshalJSON(data []byte) error { if h == nil { return errors.New("network.Headers: UnmarshalJSON on nil pointer") } *h = append((*h)[0:0], data...) return nil }
[ "func", "(", "h", "*", "Headers", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "if", "h", "==", "nil", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n", "*", "h", "=", "append", "(", "(", "*", "h", ")", "[", "0", ":", "0", "]", ",", "data", "...", ")", "\n", "return", "nil", "\n", "}" ]
// UnmarshalJSON copies behavior of json.RawMessage.
[ "UnmarshalJSON", "copies", "behavior", "of", "json", ".", "RawMessage", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/types.go#L192-L198
18,908
mafredri/cdp
protocol/layertree/command.go
NewCompositingReasonsArgs
func NewCompositingReasonsArgs(layerID LayerID) *CompositingReasonsArgs { args := new(CompositingReasonsArgs) args.LayerID = layerID return args }
go
func NewCompositingReasonsArgs(layerID LayerID) *CompositingReasonsArgs { args := new(CompositingReasonsArgs) args.LayerID = layerID return args }
[ "func", "NewCompositingReasonsArgs", "(", "layerID", "LayerID", ")", "*", "CompositingReasonsArgs", "{", "args", ":=", "new", "(", "CompositingReasonsArgs", ")", "\n", "args", ".", "LayerID", "=", "layerID", "\n", "return", "args", "\n", "}" ]
// NewCompositingReasonsArgs initializes CompositingReasonsArgs with the required arguments.
[ "NewCompositingReasonsArgs", "initializes", "CompositingReasonsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/layertree/command.go#L17-L21
18,909
mafredri/cdp
protocol/layertree/command.go
NewLoadSnapshotArgs
func NewLoadSnapshotArgs(tiles []PictureTile) *LoadSnapshotArgs { args := new(LoadSnapshotArgs) args.Tiles = tiles return args }
go
func NewLoadSnapshotArgs(tiles []PictureTile) *LoadSnapshotArgs { args := new(LoadSnapshotArgs) args.Tiles = tiles return args }
[ "func", "NewLoadSnapshotArgs", "(", "tiles", "[", "]", "PictureTile", ")", "*", "LoadSnapshotArgs", "{", "args", ":=", "new", "(", "LoadSnapshotArgs", ")", "\n", "args", ".", "Tiles", "=", "tiles", "\n", "return", "args", "\n", "}" ]
// NewLoadSnapshotArgs initializes LoadSnapshotArgs with the required arguments.
[ "NewLoadSnapshotArgs", "initializes", "LoadSnapshotArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/layertree/command.go#L34-L38
18,910
mafredri/cdp
protocol/layertree/command.go
NewMakeSnapshotArgs
func NewMakeSnapshotArgs(layerID LayerID) *MakeSnapshotArgs { args := new(MakeSnapshotArgs) args.LayerID = layerID return args }
go
func NewMakeSnapshotArgs(layerID LayerID) *MakeSnapshotArgs { args := new(MakeSnapshotArgs) args.LayerID = layerID return args }
[ "func", "NewMakeSnapshotArgs", "(", "layerID", "LayerID", ")", "*", "MakeSnapshotArgs", "{", "args", ":=", "new", "(", "MakeSnapshotArgs", ")", "\n", "args", ".", "LayerID", "=", "layerID", "\n", "return", "args", "\n", "}" ]
// NewMakeSnapshotArgs initializes MakeSnapshotArgs with the required arguments.
[ "NewMakeSnapshotArgs", "initializes", "MakeSnapshotArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/layertree/command.go#L51-L55
18,911
mafredri/cdp
protocol/layertree/command.go
NewProfileSnapshotArgs
func NewProfileSnapshotArgs(snapshotID SnapshotID) *ProfileSnapshotArgs { args := new(ProfileSnapshotArgs) args.SnapshotID = snapshotID return args }
go
func NewProfileSnapshotArgs(snapshotID SnapshotID) *ProfileSnapshotArgs { args := new(ProfileSnapshotArgs) args.SnapshotID = snapshotID return args }
[ "func", "NewProfileSnapshotArgs", "(", "snapshotID", "SnapshotID", ")", "*", "ProfileSnapshotArgs", "{", "args", ":=", "new", "(", "ProfileSnapshotArgs", ")", "\n", "args", ".", "SnapshotID", "=", "snapshotID", "\n", "return", "args", "\n", "}" ]
// NewProfileSnapshotArgs initializes ProfileSnapshotArgs with the required arguments.
[ "NewProfileSnapshotArgs", "initializes", "ProfileSnapshotArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/layertree/command.go#L71-L75
18,912
mafredri/cdp
protocol/layertree/command.go
SetClipRect
func (a *ProfileSnapshotArgs) SetClipRect(clipRect dom.Rect) *ProfileSnapshotArgs { a.ClipRect = &clipRect return a }
go
func (a *ProfileSnapshotArgs) SetClipRect(clipRect dom.Rect) *ProfileSnapshotArgs { a.ClipRect = &clipRect return a }
[ "func", "(", "a", "*", "ProfileSnapshotArgs", ")", "SetClipRect", "(", "clipRect", "dom", ".", "Rect", ")", "*", "ProfileSnapshotArgs", "{", "a", ".", "ClipRect", "=", "&", "clipRect", "\n", "return", "a", "\n", "}" ]
// SetClipRect sets the ClipRect optional argument. The clip rectangle // to apply when replaying the snapshot.
[ "SetClipRect", "sets", "the", "ClipRect", "optional", "argument", ".", "The", "clip", "rectangle", "to", "apply", "when", "replaying", "the", "snapshot", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/layertree/command.go#L94-L97
18,913
mafredri/cdp
protocol/layertree/command.go
NewReleaseSnapshotArgs
func NewReleaseSnapshotArgs(snapshotID SnapshotID) *ReleaseSnapshotArgs { args := new(ReleaseSnapshotArgs) args.SnapshotID = snapshotID return args }
go
func NewReleaseSnapshotArgs(snapshotID SnapshotID) *ReleaseSnapshotArgs { args := new(ReleaseSnapshotArgs) args.SnapshotID = snapshotID return args }
[ "func", "NewReleaseSnapshotArgs", "(", "snapshotID", "SnapshotID", ")", "*", "ReleaseSnapshotArgs", "{", "args", ":=", "new", "(", "ReleaseSnapshotArgs", ")", "\n", "args", ".", "SnapshotID", "=", "snapshotID", "\n", "return", "args", "\n", "}" ]
// NewReleaseSnapshotArgs initializes ReleaseSnapshotArgs with the required arguments.
[ "NewReleaseSnapshotArgs", "initializes", "ReleaseSnapshotArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/layertree/command.go#L110-L114
18,914
mafredri/cdp
protocol/layertree/command.go
NewReplaySnapshotArgs
func NewReplaySnapshotArgs(snapshotID SnapshotID) *ReplaySnapshotArgs { args := new(ReplaySnapshotArgs) args.SnapshotID = snapshotID return args }
go
func NewReplaySnapshotArgs(snapshotID SnapshotID) *ReplaySnapshotArgs { args := new(ReplaySnapshotArgs) args.SnapshotID = snapshotID return args }
[ "func", "NewReplaySnapshotArgs", "(", "snapshotID", "SnapshotID", ")", "*", "ReplaySnapshotArgs", "{", "args", ":=", "new", "(", "ReplaySnapshotArgs", ")", "\n", "args", ".", "SnapshotID", "=", "snapshotID", "\n", "return", "args", "\n", "}" ]
// NewReplaySnapshotArgs initializes ReplaySnapshotArgs with the required arguments.
[ "NewReplaySnapshotArgs", "initializes", "ReplaySnapshotArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/layertree/command.go#L125-L129
18,915
mafredri/cdp
protocol/layertree/command.go
NewSnapshotCommandLogArgs
func NewSnapshotCommandLogArgs(snapshotID SnapshotID) *SnapshotCommandLogArgs { args := new(SnapshotCommandLogArgs) args.SnapshotID = snapshotID return args }
go
func NewSnapshotCommandLogArgs(snapshotID SnapshotID) *SnapshotCommandLogArgs { args := new(SnapshotCommandLogArgs) args.SnapshotID = snapshotID return args }
[ "func", "NewSnapshotCommandLogArgs", "(", "snapshotID", "SnapshotID", ")", "*", "SnapshotCommandLogArgs", "{", "args", ":=", "new", "(", "SnapshotCommandLogArgs", ")", "\n", "args", ".", "SnapshotID", "=", "snapshotID", "\n", "return", "args", "\n", "}" ]
// NewSnapshotCommandLogArgs initializes SnapshotCommandLogArgs with the required arguments.
[ "NewSnapshotCommandLogArgs", "initializes", "SnapshotCommandLogArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/layertree/command.go#L163-L167
18,916
mafredri/cdp
protocol/page/command.go
NewAddScriptToEvaluateOnLoadArgs
func NewAddScriptToEvaluateOnLoadArgs(scriptSource string) *AddScriptToEvaluateOnLoadArgs { args := new(AddScriptToEvaluateOnLoadArgs) args.ScriptSource = scriptSource return args }
go
func NewAddScriptToEvaluateOnLoadArgs(scriptSource string) *AddScriptToEvaluateOnLoadArgs { args := new(AddScriptToEvaluateOnLoadArgs) args.ScriptSource = scriptSource return args }
[ "func", "NewAddScriptToEvaluateOnLoadArgs", "(", "scriptSource", "string", ")", "*", "AddScriptToEvaluateOnLoadArgs", "{", "args", ":=", "new", "(", "AddScriptToEvaluateOnLoadArgs", ")", "\n", "args", ".", "ScriptSource", "=", "scriptSource", "\n", "return", "args", "\n", "}" ]
// NewAddScriptToEvaluateOnLoadArgs initializes AddScriptToEvaluateOnLoadArgs with the required arguments.
[ "NewAddScriptToEvaluateOnLoadArgs", "initializes", "AddScriptToEvaluateOnLoadArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L18-L22
18,917
mafredri/cdp
protocol/page/command.go
NewAddScriptToEvaluateOnNewDocumentArgs
func NewAddScriptToEvaluateOnNewDocumentArgs(source string) *AddScriptToEvaluateOnNewDocumentArgs { args := new(AddScriptToEvaluateOnNewDocumentArgs) args.Source = source return args }
go
func NewAddScriptToEvaluateOnNewDocumentArgs(source string) *AddScriptToEvaluateOnNewDocumentArgs { args := new(AddScriptToEvaluateOnNewDocumentArgs) args.Source = source return args }
[ "func", "NewAddScriptToEvaluateOnNewDocumentArgs", "(", "source", "string", ")", "*", "AddScriptToEvaluateOnNewDocumentArgs", "{", "args", ":=", "new", "(", "AddScriptToEvaluateOnNewDocumentArgs", ")", "\n", "args", ".", "Source", "=", "source", "\n", "return", "args", "\n", "}" ]
// NewAddScriptToEvaluateOnNewDocumentArgs initializes AddScriptToEvaluateOnNewDocumentArgs with the required arguments.
[ "NewAddScriptToEvaluateOnNewDocumentArgs", "initializes", "AddScriptToEvaluateOnNewDocumentArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L42-L46
18,918
mafredri/cdp
protocol/page/command.go
SetClip
func (a *CaptureScreenshotArgs) SetClip(clip Viewport) *CaptureScreenshotArgs { a.Clip = &clip return a }
go
func (a *CaptureScreenshotArgs) SetClip(clip Viewport) *CaptureScreenshotArgs { a.Clip = &clip return a }
[ "func", "(", "a", "*", "CaptureScreenshotArgs", ")", "SetClip", "(", "clip", "Viewport", ")", "*", "CaptureScreenshotArgs", "{", "a", ".", "Clip", "=", "&", "clip", "\n", "return", "a", "\n", "}" ]
// SetClip sets the Clip optional argument. Capture the screenshot of // a given region only.
[ "SetClip", "sets", "the", "Clip", "optional", "argument", ".", "Capture", "the", "screenshot", "of", "a", "given", "region", "only", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L105-L108
18,919
mafredri/cdp
protocol/page/command.go
NewCreateIsolatedWorldArgs
func NewCreateIsolatedWorldArgs(frameID FrameID) *CreateIsolatedWorldArgs { args := new(CreateIsolatedWorldArgs) args.FrameID = frameID return args }
go
func NewCreateIsolatedWorldArgs(frameID FrameID) *CreateIsolatedWorldArgs { args := new(CreateIsolatedWorldArgs) args.FrameID = frameID return args }
[ "func", "NewCreateIsolatedWorldArgs", "(", "frameID", "FrameID", ")", "*", "CreateIsolatedWorldArgs", "{", "args", ":=", "new", "(", "CreateIsolatedWorldArgs", ")", "\n", "args", ".", "FrameID", "=", "frameID", "\n", "return", "args", "\n", "}" ]
// NewCreateIsolatedWorldArgs initializes CreateIsolatedWorldArgs with the required arguments.
[ "NewCreateIsolatedWorldArgs", "initializes", "CreateIsolatedWorldArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L161-L165
18,920
mafredri/cdp
protocol/page/command.go
SetWorldName
func (a *CreateIsolatedWorldArgs) SetWorldName(worldName string) *CreateIsolatedWorldArgs { a.WorldName = &worldName return a }
go
func (a *CreateIsolatedWorldArgs) SetWorldName(worldName string) *CreateIsolatedWorldArgs { a.WorldName = &worldName return a }
[ "func", "(", "a", "*", "CreateIsolatedWorldArgs", ")", "SetWorldName", "(", "worldName", "string", ")", "*", "CreateIsolatedWorldArgs", "{", "a", ".", "WorldName", "=", "&", "worldName", "\n", "return", "a", "\n", "}" ]
// SetWorldName sets the WorldName optional argument. An optional name // which is reported in the Execution Context.
[ "SetWorldName", "sets", "the", "WorldName", "optional", "argument", ".", "An", "optional", "name", "which", "is", "reported", "in", "the", "Execution", "Context", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L169-L172
18,921
mafredri/cdp
protocol/page/command.go
SetGrantUniveralAccess
func (a *CreateIsolatedWorldArgs) SetGrantUniveralAccess(grantUniveralAccess bool) *CreateIsolatedWorldArgs { a.GrantUniveralAccess = &grantUniveralAccess return a }
go
func (a *CreateIsolatedWorldArgs) SetGrantUniveralAccess(grantUniveralAccess bool) *CreateIsolatedWorldArgs { a.GrantUniveralAccess = &grantUniveralAccess return a }
[ "func", "(", "a", "*", "CreateIsolatedWorldArgs", ")", "SetGrantUniveralAccess", "(", "grantUniveralAccess", "bool", ")", "*", "CreateIsolatedWorldArgs", "{", "a", ".", "GrantUniveralAccess", "=", "&", "grantUniveralAccess", "\n", "return", "a", "\n", "}" ]
// SetGrantUniveralAccess sets the GrantUniveralAccess optional argument. // Whether or not universal access should be granted to the isolated // world. This is a powerful option, use with caution.
[ "SetGrantUniveralAccess", "sets", "the", "GrantUniveralAccess", "optional", "argument", ".", "Whether", "or", "not", "universal", "access", "should", "be", "granted", "to", "the", "isolated", "world", ".", "This", "is", "a", "powerful", "option", "use", "with", "caution", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L177-L180
18,922
mafredri/cdp
protocol/page/command.go
NewGetResourceContentArgs
func NewGetResourceContentArgs(frameID FrameID, url string) *GetResourceContentArgs { args := new(GetResourceContentArgs) args.FrameID = frameID args.URL = url return args }
go
func NewGetResourceContentArgs(frameID FrameID, url string) *GetResourceContentArgs { args := new(GetResourceContentArgs) args.FrameID = frameID args.URL = url return args }
[ "func", "NewGetResourceContentArgs", "(", "frameID", "FrameID", ",", "url", "string", ")", "*", "GetResourceContentArgs", "{", "args", ":=", "new", "(", "GetResourceContentArgs", ")", "\n", "args", ".", "FrameID", "=", "frameID", "\n", "args", ".", "URL", "=", "url", "\n", "return", "args", "\n", "}" ]
// NewGetResourceContentArgs initializes GetResourceContentArgs with the required arguments.
[ "NewGetResourceContentArgs", "initializes", "GetResourceContentArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L224-L229
18,923
mafredri/cdp
protocol/page/command.go
NewHandleJavaScriptDialogArgs
func NewHandleJavaScriptDialogArgs(accept bool) *HandleJavaScriptDialogArgs { args := new(HandleJavaScriptDialogArgs) args.Accept = accept return args }
go
func NewHandleJavaScriptDialogArgs(accept bool) *HandleJavaScriptDialogArgs { args := new(HandleJavaScriptDialogArgs) args.Accept = accept return args }
[ "func", "NewHandleJavaScriptDialogArgs", "(", "accept", "bool", ")", "*", "HandleJavaScriptDialogArgs", "{", "args", ":=", "new", "(", "HandleJavaScriptDialogArgs", ")", "\n", "args", ".", "Accept", "=", "accept", "\n", "return", "args", "\n", "}" ]
// NewHandleJavaScriptDialogArgs initializes HandleJavaScriptDialogArgs with the required arguments.
[ "NewHandleJavaScriptDialogArgs", "initializes", "HandleJavaScriptDialogArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L249-L253
18,924
mafredri/cdp
protocol/page/command.go
SetPromptText
func (a *HandleJavaScriptDialogArgs) SetPromptText(promptText string) *HandleJavaScriptDialogArgs { a.PromptText = &promptText return a }
go
func (a *HandleJavaScriptDialogArgs) SetPromptText(promptText string) *HandleJavaScriptDialogArgs { a.PromptText = &promptText return a }
[ "func", "(", "a", "*", "HandleJavaScriptDialogArgs", ")", "SetPromptText", "(", "promptText", "string", ")", "*", "HandleJavaScriptDialogArgs", "{", "a", ".", "PromptText", "=", "&", "promptText", "\n", "return", "a", "\n", "}" ]
// SetPromptText sets the PromptText optional argument. The text to // enter into the dialog prompt before accepting. Used only if this is // a prompt dialog.
[ "SetPromptText", "sets", "the", "PromptText", "optional", "argument", ".", "The", "text", "to", "enter", "into", "the", "dialog", "prompt", "before", "accepting", ".", "Used", "only", "if", "this", "is", "a", "prompt", "dialog", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L258-L261
18,925
mafredri/cdp
protocol/page/command.go
NewNavigateArgs
func NewNavigateArgs(url string) *NavigateArgs { args := new(NavigateArgs) args.URL = url return args }
go
func NewNavigateArgs(url string) *NavigateArgs { args := new(NavigateArgs) args.URL = url return args }
[ "func", "NewNavigateArgs", "(", "url", "string", ")", "*", "NavigateArgs", "{", "args", ":=", "new", "(", "NavigateArgs", ")", "\n", "args", ".", "URL", "=", "url", "\n", "return", "args", "\n", "}" ]
// NewNavigateArgs initializes NavigateArgs with the required arguments.
[ "NewNavigateArgs", "initializes", "NavigateArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L272-L276
18,926
mafredri/cdp
protocol/page/command.go
SetReferrer
func (a *NavigateArgs) SetReferrer(referrer string) *NavigateArgs { a.Referrer = &referrer return a }
go
func (a *NavigateArgs) SetReferrer(referrer string) *NavigateArgs { a.Referrer = &referrer return a }
[ "func", "(", "a", "*", "NavigateArgs", ")", "SetReferrer", "(", "referrer", "string", ")", "*", "NavigateArgs", "{", "a", ".", "Referrer", "=", "&", "referrer", "\n", "return", "a", "\n", "}" ]
// SetReferrer sets the Referrer optional argument. Referrer URL.
[ "SetReferrer", "sets", "the", "Referrer", "optional", "argument", ".", "Referrer", "URL", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L279-L282
18,927
mafredri/cdp
protocol/page/command.go
SetTransitionType
func (a *NavigateArgs) SetTransitionType(transitionType TransitionType) *NavigateArgs { a.TransitionType = transitionType return a }
go
func (a *NavigateArgs) SetTransitionType(transitionType TransitionType) *NavigateArgs { a.TransitionType = transitionType return a }
[ "func", "(", "a", "*", "NavigateArgs", ")", "SetTransitionType", "(", "transitionType", "TransitionType", ")", "*", "NavigateArgs", "{", "a", ".", "TransitionType", "=", "transitionType", "\n", "return", "a", "\n", "}" ]
// SetTransitionType sets the TransitionType optional argument. // Intended transition type.
[ "SetTransitionType", "sets", "the", "TransitionType", "optional", "argument", ".", "Intended", "transition", "type", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L286-L289
18,928
mafredri/cdp
protocol/page/command.go
SetFrameID
func (a *NavigateArgs) SetFrameID(frameID FrameID) *NavigateArgs { a.FrameID = &frameID return a }
go
func (a *NavigateArgs) SetFrameID(frameID FrameID) *NavigateArgs { a.FrameID = &frameID return a }
[ "func", "(", "a", "*", "NavigateArgs", ")", "SetFrameID", "(", "frameID", "FrameID", ")", "*", "NavigateArgs", "{", "a", ".", "FrameID", "=", "&", "frameID", "\n", "return", "a", "\n", "}" ]
// SetFrameID sets the FrameID optional argument. Frame id to // navigate, if not specified navigates the top frame.
[ "SetFrameID", "sets", "the", "FrameID", "optional", "argument", ".", "Frame", "id", "to", "navigate", "if", "not", "specified", "navigates", "the", "top", "frame", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L293-L296
18,929
mafredri/cdp
protocol/page/command.go
NewNavigateToHistoryEntryArgs
func NewNavigateToHistoryEntryArgs(entryID int) *NavigateToHistoryEntryArgs { args := new(NavigateToHistoryEntryArgs) args.EntryID = entryID return args }
go
func NewNavigateToHistoryEntryArgs(entryID int) *NavigateToHistoryEntryArgs { args := new(NavigateToHistoryEntryArgs) args.EntryID = entryID return args }
[ "func", "NewNavigateToHistoryEntryArgs", "(", "entryID", "int", ")", "*", "NavigateToHistoryEntryArgs", "{", "args", ":=", "new", "(", "NavigateToHistoryEntryArgs", ")", "\n", "args", ".", "EntryID", "=", "entryID", "\n", "return", "args", "\n", "}" ]
// NewNavigateToHistoryEntryArgs initializes NavigateToHistoryEntryArgs with the required arguments.
[ "NewNavigateToHistoryEntryArgs", "initializes", "NavigateToHistoryEntryArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L311-L315
18,930
mafredri/cdp
protocol/page/command.go
SetLandscape
func (a *PrintToPDFArgs) SetLandscape(landscape bool) *PrintToPDFArgs { a.Landscape = &landscape return a }
go
func (a *PrintToPDFArgs) SetLandscape(landscape bool) *PrintToPDFArgs { a.Landscape = &landscape return a }
[ "func", "(", "a", "*", "PrintToPDFArgs", ")", "SetLandscape", "(", "landscape", "bool", ")", "*", "PrintToPDFArgs", "{", "a", ".", "Landscape", "=", "&", "landscape", "\n", "return", "a", "\n", "}" ]
// SetLandscape sets the Landscape optional argument. Paper // orientation. Defaults to false.
[ "SetLandscape", "sets", "the", "Landscape", "optional", "argument", ".", "Paper", "orientation", ".", "Defaults", "to", "false", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L345-L348
18,931
mafredri/cdp
protocol/page/command.go
SetDisplayHeaderFooter
func (a *PrintToPDFArgs) SetDisplayHeaderFooter(displayHeaderFooter bool) *PrintToPDFArgs { a.DisplayHeaderFooter = &displayHeaderFooter return a }
go
func (a *PrintToPDFArgs) SetDisplayHeaderFooter(displayHeaderFooter bool) *PrintToPDFArgs { a.DisplayHeaderFooter = &displayHeaderFooter return a }
[ "func", "(", "a", "*", "PrintToPDFArgs", ")", "SetDisplayHeaderFooter", "(", "displayHeaderFooter", "bool", ")", "*", "PrintToPDFArgs", "{", "a", ".", "DisplayHeaderFooter", "=", "&", "displayHeaderFooter", "\n", "return", "a", "\n", "}" ]
// SetDisplayHeaderFooter sets the DisplayHeaderFooter optional argument. // Display header and footer. Defaults to false.
[ "SetDisplayHeaderFooter", "sets", "the", "DisplayHeaderFooter", "optional", "argument", ".", "Display", "header", "and", "footer", ".", "Defaults", "to", "false", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L352-L355
18,932
mafredri/cdp
protocol/page/command.go
SetPrintBackground
func (a *PrintToPDFArgs) SetPrintBackground(printBackground bool) *PrintToPDFArgs { a.PrintBackground = &printBackground return a }
go
func (a *PrintToPDFArgs) SetPrintBackground(printBackground bool) *PrintToPDFArgs { a.PrintBackground = &printBackground return a }
[ "func", "(", "a", "*", "PrintToPDFArgs", ")", "SetPrintBackground", "(", "printBackground", "bool", ")", "*", "PrintToPDFArgs", "{", "a", ".", "PrintBackground", "=", "&", "printBackground", "\n", "return", "a", "\n", "}" ]
// SetPrintBackground sets the PrintBackground optional argument. // Print background graphics. Defaults to false.
[ "SetPrintBackground", "sets", "the", "PrintBackground", "optional", "argument", ".", "Print", "background", "graphics", ".", "Defaults", "to", "false", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L359-L362
18,933
mafredri/cdp
protocol/page/command.go
SetScale
func (a *PrintToPDFArgs) SetScale(scale float64) *PrintToPDFArgs { a.Scale = &scale return a }
go
func (a *PrintToPDFArgs) SetScale(scale float64) *PrintToPDFArgs { a.Scale = &scale return a }
[ "func", "(", "a", "*", "PrintToPDFArgs", ")", "SetScale", "(", "scale", "float64", ")", "*", "PrintToPDFArgs", "{", "a", ".", "Scale", "=", "&", "scale", "\n", "return", "a", "\n", "}" ]
// SetScale sets the Scale optional argument. Scale of the webpage // rendering. Defaults to 1.
[ "SetScale", "sets", "the", "Scale", "optional", "argument", ".", "Scale", "of", "the", "webpage", "rendering", ".", "Defaults", "to", "1", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L366-L369
18,934
mafredri/cdp
protocol/page/command.go
SetPaperWidth
func (a *PrintToPDFArgs) SetPaperWidth(paperWidth float64) *PrintToPDFArgs { a.PaperWidth = &paperWidth return a }
go
func (a *PrintToPDFArgs) SetPaperWidth(paperWidth float64) *PrintToPDFArgs { a.PaperWidth = &paperWidth return a }
[ "func", "(", "a", "*", "PrintToPDFArgs", ")", "SetPaperWidth", "(", "paperWidth", "float64", ")", "*", "PrintToPDFArgs", "{", "a", ".", "PaperWidth", "=", "&", "paperWidth", "\n", "return", "a", "\n", "}" ]
// SetPaperWidth sets the PaperWidth optional argument. Paper width in // inches. Defaults to 8.5 inches.
[ "SetPaperWidth", "sets", "the", "PaperWidth", "optional", "argument", ".", "Paper", "width", "in", "inches", ".", "Defaults", "to", "8", ".", "5", "inches", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L373-L376
18,935
mafredri/cdp
protocol/page/command.go
SetPaperHeight
func (a *PrintToPDFArgs) SetPaperHeight(paperHeight float64) *PrintToPDFArgs { a.PaperHeight = &paperHeight return a }
go
func (a *PrintToPDFArgs) SetPaperHeight(paperHeight float64) *PrintToPDFArgs { a.PaperHeight = &paperHeight return a }
[ "func", "(", "a", "*", "PrintToPDFArgs", ")", "SetPaperHeight", "(", "paperHeight", "float64", ")", "*", "PrintToPDFArgs", "{", "a", ".", "PaperHeight", "=", "&", "paperHeight", "\n", "return", "a", "\n", "}" ]
// SetPaperHeight sets the PaperHeight optional argument. Paper height // in inches. Defaults to 11 inches.
[ "SetPaperHeight", "sets", "the", "PaperHeight", "optional", "argument", ".", "Paper", "height", "in", "inches", ".", "Defaults", "to", "11", "inches", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L380-L383
18,936
mafredri/cdp
protocol/page/command.go
SetIgnoreInvalidPageRanges
func (a *PrintToPDFArgs) SetIgnoreInvalidPageRanges(ignoreInvalidPageRanges bool) *PrintToPDFArgs { a.IgnoreInvalidPageRanges = &ignoreInvalidPageRanges return a }
go
func (a *PrintToPDFArgs) SetIgnoreInvalidPageRanges(ignoreInvalidPageRanges bool) *PrintToPDFArgs { a.IgnoreInvalidPageRanges = &ignoreInvalidPageRanges return a }
[ "func", "(", "a", "*", "PrintToPDFArgs", ")", "SetIgnoreInvalidPageRanges", "(", "ignoreInvalidPageRanges", "bool", ")", "*", "PrintToPDFArgs", "{", "a", ".", "IgnoreInvalidPageRanges", "=", "&", "ignoreInvalidPageRanges", "\n", "return", "a", "\n", "}" ]
// SetIgnoreInvalidPageRanges sets the IgnoreInvalidPageRanges optional argument. // Whether to silently ignore invalid but successfully parsed page // ranges, such as '3-2'. Defaults to false.
[ "SetIgnoreInvalidPageRanges", "sets", "the", "IgnoreInvalidPageRanges", "optional", "argument", ".", "Whether", "to", "silently", "ignore", "invalid", "but", "successfully", "parsed", "page", "ranges", "such", "as", "3", "-", "2", ".", "Defaults", "to", "false", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L424-L427
18,937
mafredri/cdp
protocol/page/command.go
SetFooterTemplate
func (a *PrintToPDFArgs) SetFooterTemplate(footerTemplate string) *PrintToPDFArgs { a.FooterTemplate = &footerTemplate return a }
go
func (a *PrintToPDFArgs) SetFooterTemplate(footerTemplate string) *PrintToPDFArgs { a.FooterTemplate = &footerTemplate return a }
[ "func", "(", "a", "*", "PrintToPDFArgs", ")", "SetFooterTemplate", "(", "footerTemplate", "string", ")", "*", "PrintToPDFArgs", "{", "a", ".", "FooterTemplate", "=", "&", "footerTemplate", "\n", "return", "a", "\n", "}" ]
// SetFooterTemplate sets the FooterTemplate optional argument. HTML // template for the print footer. Should use the same format as the // `headerTemplate`.
[ "SetFooterTemplate", "sets", "the", "FooterTemplate", "optional", "argument", ".", "HTML", "template", "for", "the", "print", "footer", ".", "Should", "use", "the", "same", "format", "as", "the", "headerTemplate", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L446-L449
18,938
mafredri/cdp
protocol/page/command.go
SetPreferCSSPageSize
func (a *PrintToPDFArgs) SetPreferCSSPageSize(preferCSSPageSize bool) *PrintToPDFArgs { a.PreferCSSPageSize = &preferCSSPageSize return a }
go
func (a *PrintToPDFArgs) SetPreferCSSPageSize(preferCSSPageSize bool) *PrintToPDFArgs { a.PreferCSSPageSize = &preferCSSPageSize return a }
[ "func", "(", "a", "*", "PrintToPDFArgs", ")", "SetPreferCSSPageSize", "(", "preferCSSPageSize", "bool", ")", "*", "PrintToPDFArgs", "{", "a", ".", "PreferCSSPageSize", "=", "&", "preferCSSPageSize", "\n", "return", "a", "\n", "}" ]
// SetPreferCSSPageSize sets the PreferCSSPageSize optional argument. // Whether or not to prefer page size as defined by css. Defaults to // false, in which case the content will be scaled to fit the paper // size.
[ "SetPreferCSSPageSize", "sets", "the", "PreferCSSPageSize", "optional", "argument", ".", "Whether", "or", "not", "to", "prefer", "page", "size", "as", "defined", "by", "css", ".", "Defaults", "to", "false", "in", "which", "case", "the", "content", "will", "be", "scaled", "to", "fit", "the", "paper", "size", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L455-L458
18,939
mafredri/cdp
protocol/page/command.go
SetScriptToEvaluateOnLoad
func (a *ReloadArgs) SetScriptToEvaluateOnLoad(scriptToEvaluateOnLoad string) *ReloadArgs { a.ScriptToEvaluateOnLoad = &scriptToEvaluateOnLoad return a }
go
func (a *ReloadArgs) SetScriptToEvaluateOnLoad(scriptToEvaluateOnLoad string) *ReloadArgs { a.ScriptToEvaluateOnLoad = &scriptToEvaluateOnLoad return a }
[ "func", "(", "a", "*", "ReloadArgs", ")", "SetScriptToEvaluateOnLoad", "(", "scriptToEvaluateOnLoad", "string", ")", "*", "ReloadArgs", "{", "a", ".", "ScriptToEvaluateOnLoad", "=", "&", "scriptToEvaluateOnLoad", "\n", "return", "a", "\n", "}" ]
// SetScriptToEvaluateOnLoad sets the ScriptToEvaluateOnLoad optional argument. // If set, the script will be injected into all frames of the inspected // page after reload. Argument will be ignored if reloading dataURL // origin.
[ "SetScriptToEvaluateOnLoad", "sets", "the", "ScriptToEvaluateOnLoad", "optional", "argument", ".", "If", "set", "the", "script", "will", "be", "injected", "into", "all", "frames", "of", "the", "inspected", "page", "after", "reload", ".", "Argument", "will", "be", "ignored", "if", "reloading", "dataURL", "origin", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L489-L492
18,940
mafredri/cdp
protocol/page/command.go
NewRemoveScriptToEvaluateOnLoadArgs
func NewRemoveScriptToEvaluateOnLoadArgs(identifier ScriptIdentifier) *RemoveScriptToEvaluateOnLoadArgs { args := new(RemoveScriptToEvaluateOnLoadArgs) args.Identifier = identifier return args }
go
func NewRemoveScriptToEvaluateOnLoadArgs(identifier ScriptIdentifier) *RemoveScriptToEvaluateOnLoadArgs { args := new(RemoveScriptToEvaluateOnLoadArgs) args.Identifier = identifier return args }
[ "func", "NewRemoveScriptToEvaluateOnLoadArgs", "(", "identifier", "ScriptIdentifier", ")", "*", "RemoveScriptToEvaluateOnLoadArgs", "{", "args", ":=", "new", "(", "RemoveScriptToEvaluateOnLoadArgs", ")", "\n", "args", ".", "Identifier", "=", "identifier", "\n", "return", "args", "\n", "}" ]
// NewRemoveScriptToEvaluateOnLoadArgs initializes RemoveScriptToEvaluateOnLoadArgs with the required arguments.
[ "NewRemoveScriptToEvaluateOnLoadArgs", "initializes", "RemoveScriptToEvaluateOnLoadArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L500-L504
18,941
mafredri/cdp
protocol/page/command.go
NewRemoveScriptToEvaluateOnNewDocumentArgs
func NewRemoveScriptToEvaluateOnNewDocumentArgs(identifier ScriptIdentifier) *RemoveScriptToEvaluateOnNewDocumentArgs { args := new(RemoveScriptToEvaluateOnNewDocumentArgs) args.Identifier = identifier return args }
go
func NewRemoveScriptToEvaluateOnNewDocumentArgs(identifier ScriptIdentifier) *RemoveScriptToEvaluateOnNewDocumentArgs { args := new(RemoveScriptToEvaluateOnNewDocumentArgs) args.Identifier = identifier return args }
[ "func", "NewRemoveScriptToEvaluateOnNewDocumentArgs", "(", "identifier", "ScriptIdentifier", ")", "*", "RemoveScriptToEvaluateOnNewDocumentArgs", "{", "args", ":=", "new", "(", "RemoveScriptToEvaluateOnNewDocumentArgs", ")", "\n", "args", ".", "Identifier", "=", "identifier", "\n", "return", "args", "\n", "}" ]
// NewRemoveScriptToEvaluateOnNewDocumentArgs initializes RemoveScriptToEvaluateOnNewDocumentArgs with the required arguments.
[ "NewRemoveScriptToEvaluateOnNewDocumentArgs", "initializes", "RemoveScriptToEvaluateOnNewDocumentArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L512-L516
18,942
mafredri/cdp
protocol/page/command.go
NewScreencastFrameAckArgs
func NewScreencastFrameAckArgs(sessionID int) *ScreencastFrameAckArgs { args := new(ScreencastFrameAckArgs) args.SessionID = sessionID return args }
go
func NewScreencastFrameAckArgs(sessionID int) *ScreencastFrameAckArgs { args := new(ScreencastFrameAckArgs) args.SessionID = sessionID return args }
[ "func", "NewScreencastFrameAckArgs", "(", "sessionID", "int", ")", "*", "ScreencastFrameAckArgs", "{", "args", ":=", "new", "(", "ScreencastFrameAckArgs", ")", "\n", "args", ".", "SessionID", "=", "sessionID", "\n", "return", "args", "\n", "}" ]
// NewScreencastFrameAckArgs initializes ScreencastFrameAckArgs with the required arguments.
[ "NewScreencastFrameAckArgs", "initializes", "ScreencastFrameAckArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L524-L528
18,943
mafredri/cdp
protocol/page/command.go
NewSearchInResourceArgs
func NewSearchInResourceArgs(frameID FrameID, url string, query string) *SearchInResourceArgs { args := new(SearchInResourceArgs) args.FrameID = frameID args.URL = url args.Query = query return args }
go
func NewSearchInResourceArgs(frameID FrameID, url string, query string) *SearchInResourceArgs { args := new(SearchInResourceArgs) args.FrameID = frameID args.URL = url args.Query = query return args }
[ "func", "NewSearchInResourceArgs", "(", "frameID", "FrameID", ",", "url", "string", ",", "query", "string", ")", "*", "SearchInResourceArgs", "{", "args", ":=", "new", "(", "SearchInResourceArgs", ")", "\n", "args", ".", "FrameID", "=", "frameID", "\n", "args", ".", "URL", "=", "url", "\n", "args", ".", "Query", "=", "query", "\n", "return", "args", "\n", "}" ]
// NewSearchInResourceArgs initializes SearchInResourceArgs with the required arguments.
[ "NewSearchInResourceArgs", "initializes", "SearchInResourceArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L540-L546
18,944
mafredri/cdp
protocol/page/command.go
NewSetAdBlockingEnabledArgs
func NewSetAdBlockingEnabledArgs(enabled bool) *SetAdBlockingEnabledArgs { args := new(SetAdBlockingEnabledArgs) args.Enabled = enabled return args }
go
func NewSetAdBlockingEnabledArgs(enabled bool) *SetAdBlockingEnabledArgs { args := new(SetAdBlockingEnabledArgs) args.Enabled = enabled return args }
[ "func", "NewSetAdBlockingEnabledArgs", "(", "enabled", "bool", ")", "*", "SetAdBlockingEnabledArgs", "{", "args", ":=", "new", "(", "SetAdBlockingEnabledArgs", ")", "\n", "args", ".", "Enabled", "=", "enabled", "\n", "return", "args", "\n", "}" ]
// NewSetAdBlockingEnabledArgs initializes SetAdBlockingEnabledArgs with the required arguments.
[ "NewSetAdBlockingEnabledArgs", "initializes", "SetAdBlockingEnabledArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L573-L577
18,945
mafredri/cdp
protocol/page/command.go
NewSetBypassCSPArgs
func NewSetBypassCSPArgs(enabled bool) *SetBypassCSPArgs { args := new(SetBypassCSPArgs) args.Enabled = enabled return args }
go
func NewSetBypassCSPArgs(enabled bool) *SetBypassCSPArgs { args := new(SetBypassCSPArgs) args.Enabled = enabled return args }
[ "func", "NewSetBypassCSPArgs", "(", "enabled", "bool", ")", "*", "SetBypassCSPArgs", "{", "args", ":=", "new", "(", "SetBypassCSPArgs", ")", "\n", "args", ".", "Enabled", "=", "enabled", "\n", "return", "args", "\n", "}" ]
// NewSetBypassCSPArgs initializes SetBypassCSPArgs with the required arguments.
[ "NewSetBypassCSPArgs", "initializes", "SetBypassCSPArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L585-L589
18,946
mafredri/cdp
protocol/page/command.go
NewSetFontFamiliesArgs
func NewSetFontFamiliesArgs(fontFamilies FontFamilies) *SetFontFamiliesArgs { args := new(SetFontFamiliesArgs) args.FontFamilies = fontFamilies return args }
go
func NewSetFontFamiliesArgs(fontFamilies FontFamilies) *SetFontFamiliesArgs { args := new(SetFontFamiliesArgs) args.FontFamilies = fontFamilies return args }
[ "func", "NewSetFontFamiliesArgs", "(", "fontFamilies", "FontFamilies", ")", "*", "SetFontFamiliesArgs", "{", "args", ":=", "new", "(", "SetFontFamiliesArgs", ")", "\n", "args", ".", "FontFamilies", "=", "fontFamilies", "\n", "return", "args", "\n", "}" ]
// NewSetFontFamiliesArgs initializes SetFontFamiliesArgs with the required arguments.
[ "NewSetFontFamiliesArgs", "initializes", "SetFontFamiliesArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L597-L601
18,947
mafredri/cdp
protocol/page/command.go
NewSetFontSizesArgs
func NewSetFontSizesArgs(fontSizes FontSizes) *SetFontSizesArgs { args := new(SetFontSizesArgs) args.FontSizes = fontSizes return args }
go
func NewSetFontSizesArgs(fontSizes FontSizes) *SetFontSizesArgs { args := new(SetFontSizesArgs) args.FontSizes = fontSizes return args }
[ "func", "NewSetFontSizesArgs", "(", "fontSizes", "FontSizes", ")", "*", "SetFontSizesArgs", "{", "args", ":=", "new", "(", "SetFontSizesArgs", ")", "\n", "args", ".", "FontSizes", "=", "fontSizes", "\n", "return", "args", "\n", "}" ]
// NewSetFontSizesArgs initializes SetFontSizesArgs with the required arguments.
[ "NewSetFontSizesArgs", "initializes", "SetFontSizesArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L609-L613
18,948
mafredri/cdp
protocol/page/command.go
NewSetDocumentContentArgs
func NewSetDocumentContentArgs(frameID FrameID, html string) *SetDocumentContentArgs { args := new(SetDocumentContentArgs) args.FrameID = frameID args.HTML = html return args }
go
func NewSetDocumentContentArgs(frameID FrameID, html string) *SetDocumentContentArgs { args := new(SetDocumentContentArgs) args.FrameID = frameID args.HTML = html return args }
[ "func", "NewSetDocumentContentArgs", "(", "frameID", "FrameID", ",", "html", "string", ")", "*", "SetDocumentContentArgs", "{", "args", ":=", "new", "(", "SetDocumentContentArgs", ")", "\n", "args", ".", "FrameID", "=", "frameID", "\n", "args", ".", "HTML", "=", "html", "\n", "return", "args", "\n", "}" ]
// NewSetDocumentContentArgs initializes SetDocumentContentArgs with the required arguments.
[ "NewSetDocumentContentArgs", "initializes", "SetDocumentContentArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L622-L627
18,949
mafredri/cdp
protocol/page/command.go
NewSetDownloadBehaviorArgs
func NewSetDownloadBehaviorArgs(behavior string) *SetDownloadBehaviorArgs { args := new(SetDownloadBehaviorArgs) args.Behavior = behavior return args }
go
func NewSetDownloadBehaviorArgs(behavior string) *SetDownloadBehaviorArgs { args := new(SetDownloadBehaviorArgs) args.Behavior = behavior return args }
[ "func", "NewSetDownloadBehaviorArgs", "(", "behavior", "string", ")", "*", "SetDownloadBehaviorArgs", "{", "args", ":=", "new", "(", "SetDownloadBehaviorArgs", ")", "\n", "args", ".", "Behavior", "=", "behavior", "\n", "return", "args", "\n", "}" ]
// NewSetDownloadBehaviorArgs initializes SetDownloadBehaviorArgs with the required arguments.
[ "NewSetDownloadBehaviorArgs", "initializes", "SetDownloadBehaviorArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L640-L644
18,950
mafredri/cdp
protocol/page/command.go
SetDownloadPath
func (a *SetDownloadBehaviorArgs) SetDownloadPath(downloadPath string) *SetDownloadBehaviorArgs { a.DownloadPath = &downloadPath return a }
go
func (a *SetDownloadBehaviorArgs) SetDownloadPath(downloadPath string) *SetDownloadBehaviorArgs { a.DownloadPath = &downloadPath return a }
[ "func", "(", "a", "*", "SetDownloadBehaviorArgs", ")", "SetDownloadPath", "(", "downloadPath", "string", ")", "*", "SetDownloadBehaviorArgs", "{", "a", ".", "DownloadPath", "=", "&", "downloadPath", "\n", "return", "a", "\n", "}" ]
// SetDownloadPath sets the DownloadPath optional argument. The // default path to save downloaded files to. This is required if // behavior is set to 'allow'
[ "SetDownloadPath", "sets", "the", "DownloadPath", "optional", "argument", ".", "The", "default", "path", "to", "save", "downloaded", "files", "to", ".", "This", "is", "required", "if", "behavior", "is", "set", "to", "allow" ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L649-L652
18,951
mafredri/cdp
protocol/page/command.go
NewSetLifecycleEventsEnabledArgs
func NewSetLifecycleEventsEnabledArgs(enabled bool) *SetLifecycleEventsEnabledArgs { args := new(SetLifecycleEventsEnabledArgs) args.Enabled = enabled return args }
go
func NewSetLifecycleEventsEnabledArgs(enabled bool) *SetLifecycleEventsEnabledArgs { args := new(SetLifecycleEventsEnabledArgs) args.Enabled = enabled return args }
[ "func", "NewSetLifecycleEventsEnabledArgs", "(", "enabled", "bool", ")", "*", "SetLifecycleEventsEnabledArgs", "{", "args", ":=", "new", "(", "SetLifecycleEventsEnabledArgs", ")", "\n", "args", ".", "Enabled", "=", "enabled", "\n", "return", "args", "\n", "}" ]
// NewSetLifecycleEventsEnabledArgs initializes SetLifecycleEventsEnabledArgs with the required arguments.
[ "NewSetLifecycleEventsEnabledArgs", "initializes", "SetLifecycleEventsEnabledArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L660-L664
18,952
mafredri/cdp
protocol/page/command.go
SetMaxWidth
func (a *StartScreencastArgs) SetMaxWidth(maxWidth int) *StartScreencastArgs { a.MaxWidth = &maxWidth return a }
go
func (a *StartScreencastArgs) SetMaxWidth(maxWidth int) *StartScreencastArgs { a.MaxWidth = &maxWidth return a }
[ "func", "(", "a", "*", "StartScreencastArgs", ")", "SetMaxWidth", "(", "maxWidth", "int", ")", "*", "StartScreencastArgs", "{", "a", ".", "MaxWidth", "=", "&", "maxWidth", "\n", "return", "a", "\n", "}" ]
// SetMaxWidth sets the MaxWidth optional argument. Maximum screenshot // width.
[ "SetMaxWidth", "sets", "the", "MaxWidth", "optional", "argument", ".", "Maximum", "screenshot", "width", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L703-L706
18,953
mafredri/cdp
protocol/page/command.go
SetMaxHeight
func (a *StartScreencastArgs) SetMaxHeight(maxHeight int) *StartScreencastArgs { a.MaxHeight = &maxHeight return a }
go
func (a *StartScreencastArgs) SetMaxHeight(maxHeight int) *StartScreencastArgs { a.MaxHeight = &maxHeight return a }
[ "func", "(", "a", "*", "StartScreencastArgs", ")", "SetMaxHeight", "(", "maxHeight", "int", ")", "*", "StartScreencastArgs", "{", "a", ".", "MaxHeight", "=", "&", "maxHeight", "\n", "return", "a", "\n", "}" ]
// SetMaxHeight sets the MaxHeight optional argument. Maximum // screenshot height.
[ "SetMaxHeight", "sets", "the", "MaxHeight", "optional", "argument", ".", "Maximum", "screenshot", "height", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L710-L713
18,954
mafredri/cdp
protocol/page/command.go
SetEveryNthFrame
func (a *StartScreencastArgs) SetEveryNthFrame(everyNthFrame int) *StartScreencastArgs { a.EveryNthFrame = &everyNthFrame return a }
go
func (a *StartScreencastArgs) SetEveryNthFrame(everyNthFrame int) *StartScreencastArgs { a.EveryNthFrame = &everyNthFrame return a }
[ "func", "(", "a", "*", "StartScreencastArgs", ")", "SetEveryNthFrame", "(", "everyNthFrame", "int", ")", "*", "StartScreencastArgs", "{", "a", ".", "EveryNthFrame", "=", "&", "everyNthFrame", "\n", "return", "a", "\n", "}" ]
// SetEveryNthFrame sets the EveryNthFrame optional argument. Send // every n-th frame.
[ "SetEveryNthFrame", "sets", "the", "EveryNthFrame", "optional", "argument", ".", "Send", "every", "n", "-", "th", "frame", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L717-L720
18,955
mafredri/cdp
protocol/page/command.go
NewSetWebLifecycleStateArgs
func NewSetWebLifecycleStateArgs(state string) *SetWebLifecycleStateArgs { args := new(SetWebLifecycleStateArgs) args.State = state return args }
go
func NewSetWebLifecycleStateArgs(state string) *SetWebLifecycleStateArgs { args := new(SetWebLifecycleStateArgs) args.State = state return args }
[ "func", "NewSetWebLifecycleStateArgs", "(", "state", "string", ")", "*", "SetWebLifecycleStateArgs", "{", "args", ":=", "new", "(", "SetWebLifecycleStateArgs", ")", "\n", "args", ".", "State", "=", "state", "\n", "return", "args", "\n", "}" ]
// NewSetWebLifecycleStateArgs initializes SetWebLifecycleStateArgs with the required arguments.
[ "NewSetWebLifecycleStateArgs", "initializes", "SetWebLifecycleStateArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L731-L735
18,956
mafredri/cdp
protocol/page/command.go
NewSetProduceCompilationCacheArgs
func NewSetProduceCompilationCacheArgs(enabled bool) *SetProduceCompilationCacheArgs { args := new(SetProduceCompilationCacheArgs) args.Enabled = enabled return args }
go
func NewSetProduceCompilationCacheArgs(enabled bool) *SetProduceCompilationCacheArgs { args := new(SetProduceCompilationCacheArgs) args.Enabled = enabled return args }
[ "func", "NewSetProduceCompilationCacheArgs", "(", "enabled", "bool", ")", "*", "SetProduceCompilationCacheArgs", "{", "args", ":=", "new", "(", "SetProduceCompilationCacheArgs", ")", "\n", "args", ".", "Enabled", "=", "enabled", "\n", "return", "args", "\n", "}" ]
// NewSetProduceCompilationCacheArgs initializes SetProduceCompilationCacheArgs with the required arguments.
[ "NewSetProduceCompilationCacheArgs", "initializes", "SetProduceCompilationCacheArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L743-L747
18,957
mafredri/cdp
protocol/page/command.go
NewAddCompilationCacheArgs
func NewAddCompilationCacheArgs(url string, data []byte) *AddCompilationCacheArgs { args := new(AddCompilationCacheArgs) args.URL = url args.Data = data return args }
go
func NewAddCompilationCacheArgs(url string, data []byte) *AddCompilationCacheArgs { args := new(AddCompilationCacheArgs) args.URL = url args.Data = data return args }
[ "func", "NewAddCompilationCacheArgs", "(", "url", "string", ",", "data", "[", "]", "byte", ")", "*", "AddCompilationCacheArgs", "{", "args", ":=", "new", "(", "AddCompilationCacheArgs", ")", "\n", "args", ".", "URL", "=", "url", "\n", "args", ".", "Data", "=", "data", "\n", "return", "args", "\n", "}" ]
// NewAddCompilationCacheArgs initializes AddCompilationCacheArgs with the required arguments.
[ "NewAddCompilationCacheArgs", "initializes", "AddCompilationCacheArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L756-L761
18,958
mafredri/cdp
protocol/page/command.go
SetGroup
func (a *GenerateTestReportArgs) SetGroup(group string) *GenerateTestReportArgs { a.Group = &group return a }
go
func (a *GenerateTestReportArgs) SetGroup(group string) *GenerateTestReportArgs { a.Group = &group return a }
[ "func", "(", "a", "*", "GenerateTestReportArgs", ")", "SetGroup", "(", "group", "string", ")", "*", "GenerateTestReportArgs", "{", "a", ".", "Group", "=", "&", "group", "\n", "return", "a", "\n", "}" ]
// SetGroup sets the Group optional argument. Specifies the endpoint // group to deliver the report to.
[ "SetGroup", "sets", "the", "Group", "optional", "argument", ".", "Specifies", "the", "endpoint", "group", "to", "deliver", "the", "report", "to", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/page/command.go#L778-L781
18,959
mafredri/cdp
protocol/emulation/command.go
NewSetFocusEmulationEnabledArgs
func NewSetFocusEmulationEnabledArgs(enabled bool) *SetFocusEmulationEnabledArgs { args := new(SetFocusEmulationEnabledArgs) args.Enabled = enabled return args }
go
func NewSetFocusEmulationEnabledArgs(enabled bool) *SetFocusEmulationEnabledArgs { args := new(SetFocusEmulationEnabledArgs) args.Enabled = enabled return args }
[ "func", "NewSetFocusEmulationEnabledArgs", "(", "enabled", "bool", ")", "*", "SetFocusEmulationEnabledArgs", "{", "args", ":=", "new", "(", "SetFocusEmulationEnabledArgs", ")", "\n", "args", ".", "Enabled", "=", "enabled", "\n", "return", "args", "\n", "}" ]
// NewSetFocusEmulationEnabledArgs initializes SetFocusEmulationEnabledArgs with the required arguments.
[ "NewSetFocusEmulationEnabledArgs", "initializes", "SetFocusEmulationEnabledArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L22-L26
18,960
mafredri/cdp
protocol/emulation/command.go
NewSetCPUThrottlingRateArgs
func NewSetCPUThrottlingRateArgs(rate float64) *SetCPUThrottlingRateArgs { args := new(SetCPUThrottlingRateArgs) args.Rate = rate return args }
go
func NewSetCPUThrottlingRateArgs(rate float64) *SetCPUThrottlingRateArgs { args := new(SetCPUThrottlingRateArgs) args.Rate = rate return args }
[ "func", "NewSetCPUThrottlingRateArgs", "(", "rate", "float64", ")", "*", "SetCPUThrottlingRateArgs", "{", "args", ":=", "new", "(", "SetCPUThrottlingRateArgs", ")", "\n", "args", ".", "Rate", "=", "rate", "\n", "return", "args", "\n", "}" ]
// NewSetCPUThrottlingRateArgs initializes SetCPUThrottlingRateArgs with the required arguments.
[ "NewSetCPUThrottlingRateArgs", "initializes", "SetCPUThrottlingRateArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L34-L38
18,961
mafredri/cdp
protocol/emulation/command.go
SetColor
func (a *SetDefaultBackgroundColorOverrideArgs) SetColor(color dom.RGBA) *SetDefaultBackgroundColorOverrideArgs { a.Color = &color return a }
go
func (a *SetDefaultBackgroundColorOverrideArgs) SetColor(color dom.RGBA) *SetDefaultBackgroundColorOverrideArgs { a.Color = &color return a }
[ "func", "(", "a", "*", "SetDefaultBackgroundColorOverrideArgs", ")", "SetColor", "(", "color", "dom", ".", "RGBA", ")", "*", "SetDefaultBackgroundColorOverrideArgs", "{", "a", ".", "Color", "=", "&", "color", "\n", "return", "a", "\n", "}" ]
// SetColor sets the Color optional argument. RGBA of the default // background color. If not specified, any existing override will be // cleared.
[ "SetColor", "sets", "the", "Color", "optional", "argument", ".", "RGBA", "of", "the", "default", "background", "color", ".", "If", "not", "specified", "any", "existing", "override", "will", "be", "cleared", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L55-L58
18,962
mafredri/cdp
protocol/emulation/command.go
NewSetDeviceMetricsOverrideArgs
func NewSetDeviceMetricsOverrideArgs(width int, height int, deviceScaleFactor float64, mobile bool) *SetDeviceMetricsOverrideArgs { args := new(SetDeviceMetricsOverrideArgs) args.Width = width args.Height = height args.DeviceScaleFactor = deviceScaleFactor args.Mobile = mobile return args }
go
func NewSetDeviceMetricsOverrideArgs(width int, height int, deviceScaleFactor float64, mobile bool) *SetDeviceMetricsOverrideArgs { args := new(SetDeviceMetricsOverrideArgs) args.Width = width args.Height = height args.DeviceScaleFactor = deviceScaleFactor args.Mobile = mobile return args }
[ "func", "NewSetDeviceMetricsOverrideArgs", "(", "width", "int", ",", "height", "int", ",", "deviceScaleFactor", "float64", ",", "mobile", "bool", ")", "*", "SetDeviceMetricsOverrideArgs", "{", "args", ":=", "new", "(", "SetDeviceMetricsOverrideArgs", ")", "\n", "args", ".", "Width", "=", "width", "\n", "args", ".", "Height", "=", "height", "\n", "args", ".", "DeviceScaleFactor", "=", "deviceScaleFactor", "\n", "args", ".", "Mobile", "=", "mobile", "\n", "return", "args", "\n", "}" ]
// NewSetDeviceMetricsOverrideArgs initializes SetDeviceMetricsOverrideArgs with the required arguments.
[ "NewSetDeviceMetricsOverrideArgs", "initializes", "SetDeviceMetricsOverrideArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L105-L112
18,963
mafredri/cdp
protocol/emulation/command.go
SetScreenOrientation
func (a *SetDeviceMetricsOverrideArgs) SetScreenOrientation(screenOrientation ScreenOrientation) *SetDeviceMetricsOverrideArgs { a.ScreenOrientation = &screenOrientation return a }
go
func (a *SetDeviceMetricsOverrideArgs) SetScreenOrientation(screenOrientation ScreenOrientation) *SetDeviceMetricsOverrideArgs { a.ScreenOrientation = &screenOrientation return a }
[ "func", "(", "a", "*", "SetDeviceMetricsOverrideArgs", ")", "SetScreenOrientation", "(", "screenOrientation", "ScreenOrientation", ")", "*", "SetDeviceMetricsOverrideArgs", "{", "a", ".", "ScreenOrientation", "=", "&", "screenOrientation", "\n", "return", "a", "\n", "}" ]
// SetScreenOrientation sets the ScreenOrientation optional argument. // Screen orientation override.
[ "SetScreenOrientation", "sets", "the", "ScreenOrientation", "optional", "argument", ".", "Screen", "orientation", "override", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L171-L174
18,964
mafredri/cdp
protocol/emulation/command.go
NewSetScrollbarsHiddenArgs
func NewSetScrollbarsHiddenArgs(hidden bool) *SetScrollbarsHiddenArgs { args := new(SetScrollbarsHiddenArgs) args.Hidden = hidden return args }
go
func NewSetScrollbarsHiddenArgs(hidden bool) *SetScrollbarsHiddenArgs { args := new(SetScrollbarsHiddenArgs) args.Hidden = hidden return args }
[ "func", "NewSetScrollbarsHiddenArgs", "(", "hidden", "bool", ")", "*", "SetScrollbarsHiddenArgs", "{", "args", ":=", "new", "(", "SetScrollbarsHiddenArgs", ")", "\n", "args", ".", "Hidden", "=", "hidden", "\n", "return", "args", "\n", "}" ]
// NewSetScrollbarsHiddenArgs initializes SetScrollbarsHiddenArgs with the required arguments.
[ "NewSetScrollbarsHiddenArgs", "initializes", "SetScrollbarsHiddenArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L193-L197
18,965
mafredri/cdp
protocol/emulation/command.go
NewSetDocumentCookieDisabledArgs
func NewSetDocumentCookieDisabledArgs(disabled bool) *SetDocumentCookieDisabledArgs { args := new(SetDocumentCookieDisabledArgs) args.Disabled = disabled return args }
go
func NewSetDocumentCookieDisabledArgs(disabled bool) *SetDocumentCookieDisabledArgs { args := new(SetDocumentCookieDisabledArgs) args.Disabled = disabled return args }
[ "func", "NewSetDocumentCookieDisabledArgs", "(", "disabled", "bool", ")", "*", "SetDocumentCookieDisabledArgs", "{", "args", ":=", "new", "(", "SetDocumentCookieDisabledArgs", ")", "\n", "args", ".", "Disabled", "=", "disabled", "\n", "return", "args", "\n", "}" ]
// NewSetDocumentCookieDisabledArgs initializes SetDocumentCookieDisabledArgs with the required arguments.
[ "NewSetDocumentCookieDisabledArgs", "initializes", "SetDocumentCookieDisabledArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L205-L209
18,966
mafredri/cdp
protocol/emulation/command.go
NewSetEmitTouchEventsForMouseArgs
func NewSetEmitTouchEventsForMouseArgs(enabled bool) *SetEmitTouchEventsForMouseArgs { args := new(SetEmitTouchEventsForMouseArgs) args.Enabled = enabled return args }
go
func NewSetEmitTouchEventsForMouseArgs(enabled bool) *SetEmitTouchEventsForMouseArgs { args := new(SetEmitTouchEventsForMouseArgs) args.Enabled = enabled return args }
[ "func", "NewSetEmitTouchEventsForMouseArgs", "(", "enabled", "bool", ")", "*", "SetEmitTouchEventsForMouseArgs", "{", "args", ":=", "new", "(", "SetEmitTouchEventsForMouseArgs", ")", "\n", "args", ".", "Enabled", "=", "enabled", "\n", "return", "args", "\n", "}" ]
// NewSetEmitTouchEventsForMouseArgs initializes SetEmitTouchEventsForMouseArgs with the required arguments.
[ "NewSetEmitTouchEventsForMouseArgs", "initializes", "SetEmitTouchEventsForMouseArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L222-L226
18,967
mafredri/cdp
protocol/emulation/command.go
NewSetEmulatedMediaArgs
func NewSetEmulatedMediaArgs(media string) *SetEmulatedMediaArgs { args := new(SetEmulatedMediaArgs) args.Media = media return args }
go
func NewSetEmulatedMediaArgs(media string) *SetEmulatedMediaArgs { args := new(SetEmulatedMediaArgs) args.Media = media return args }
[ "func", "NewSetEmulatedMediaArgs", "(", "media", "string", ")", "*", "SetEmulatedMediaArgs", "{", "args", ":=", "new", "(", "SetEmulatedMediaArgs", ")", "\n", "args", ".", "Media", "=", "media", "\n", "return", "args", "\n", "}" ]
// NewSetEmulatedMediaArgs initializes SetEmulatedMediaArgs with the required arguments.
[ "NewSetEmulatedMediaArgs", "initializes", "SetEmulatedMediaArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L243-L247
18,968
mafredri/cdp
protocol/emulation/command.go
SetLatitude
func (a *SetGeolocationOverrideArgs) SetLatitude(latitude float64) *SetGeolocationOverrideArgs { a.Latitude = &latitude return a }
go
func (a *SetGeolocationOverrideArgs) SetLatitude(latitude float64) *SetGeolocationOverrideArgs { a.Latitude = &latitude return a }
[ "func", "(", "a", "*", "SetGeolocationOverrideArgs", ")", "SetLatitude", "(", "latitude", "float64", ")", "*", "SetGeolocationOverrideArgs", "{", "a", ".", "Latitude", "=", "&", "latitude", "\n", "return", "a", "\n", "}" ]
// SetLatitude sets the Latitude optional argument. Mock latitude
[ "SetLatitude", "sets", "the", "Latitude", "optional", "argument", ".", "Mock", "latitude" ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L264-L267
18,969
mafredri/cdp
protocol/emulation/command.go
SetLongitude
func (a *SetGeolocationOverrideArgs) SetLongitude(longitude float64) *SetGeolocationOverrideArgs { a.Longitude = &longitude return a }
go
func (a *SetGeolocationOverrideArgs) SetLongitude(longitude float64) *SetGeolocationOverrideArgs { a.Longitude = &longitude return a }
[ "func", "(", "a", "*", "SetGeolocationOverrideArgs", ")", "SetLongitude", "(", "longitude", "float64", ")", "*", "SetGeolocationOverrideArgs", "{", "a", ".", "Longitude", "=", "&", "longitude", "\n", "return", "a", "\n", "}" ]
// SetLongitude sets the Longitude optional argument. Mock longitude
[ "SetLongitude", "sets", "the", "Longitude", "optional", "argument", ".", "Mock", "longitude" ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L270-L273
18,970
mafredri/cdp
protocol/emulation/command.go
SetAccuracy
func (a *SetGeolocationOverrideArgs) SetAccuracy(accuracy float64) *SetGeolocationOverrideArgs { a.Accuracy = &accuracy return a }
go
func (a *SetGeolocationOverrideArgs) SetAccuracy(accuracy float64) *SetGeolocationOverrideArgs { a.Accuracy = &accuracy return a }
[ "func", "(", "a", "*", "SetGeolocationOverrideArgs", ")", "SetAccuracy", "(", "accuracy", "float64", ")", "*", "SetGeolocationOverrideArgs", "{", "a", ".", "Accuracy", "=", "&", "accuracy", "\n", "return", "a", "\n", "}" ]
// SetAccuracy sets the Accuracy optional argument. Mock accuracy
[ "SetAccuracy", "sets", "the", "Accuracy", "optional", "argument", ".", "Mock", "accuracy" ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L276-L279
18,971
mafredri/cdp
protocol/emulation/command.go
NewSetNavigatorOverridesArgs
func NewSetNavigatorOverridesArgs(platform string) *SetNavigatorOverridesArgs { args := new(SetNavigatorOverridesArgs) args.Platform = platform return args }
go
func NewSetNavigatorOverridesArgs(platform string) *SetNavigatorOverridesArgs { args := new(SetNavigatorOverridesArgs) args.Platform = platform return args }
[ "func", "NewSetNavigatorOverridesArgs", "(", "platform", "string", ")", "*", "SetNavigatorOverridesArgs", "{", "args", ":=", "new", "(", "SetNavigatorOverridesArgs", ")", "\n", "args", ".", "Platform", "=", "platform", "\n", "return", "args", "\n", "}" ]
// NewSetNavigatorOverridesArgs initializes SetNavigatorOverridesArgs with the required arguments.
[ "NewSetNavigatorOverridesArgs", "initializes", "SetNavigatorOverridesArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L287-L291
18,972
mafredri/cdp
protocol/emulation/command.go
NewSetPageScaleFactorArgs
func NewSetPageScaleFactorArgs(pageScaleFactor float64) *SetPageScaleFactorArgs { args := new(SetPageScaleFactorArgs) args.PageScaleFactor = pageScaleFactor return args }
go
func NewSetPageScaleFactorArgs(pageScaleFactor float64) *SetPageScaleFactorArgs { args := new(SetPageScaleFactorArgs) args.PageScaleFactor = pageScaleFactor return args }
[ "func", "NewSetPageScaleFactorArgs", "(", "pageScaleFactor", "float64", ")", "*", "SetPageScaleFactorArgs", "{", "args", ":=", "new", "(", "SetPageScaleFactorArgs", ")", "\n", "args", ".", "PageScaleFactor", "=", "pageScaleFactor", "\n", "return", "args", "\n", "}" ]
// NewSetPageScaleFactorArgs initializes SetPageScaleFactorArgs with the required arguments.
[ "NewSetPageScaleFactorArgs", "initializes", "SetPageScaleFactorArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L299-L303
18,973
mafredri/cdp
protocol/emulation/command.go
NewSetScriptExecutionDisabledArgs
func NewSetScriptExecutionDisabledArgs(value bool) *SetScriptExecutionDisabledArgs { args := new(SetScriptExecutionDisabledArgs) args.Value = value return args }
go
func NewSetScriptExecutionDisabledArgs(value bool) *SetScriptExecutionDisabledArgs { args := new(SetScriptExecutionDisabledArgs) args.Value = value return args }
[ "func", "NewSetScriptExecutionDisabledArgs", "(", "value", "bool", ")", "*", "SetScriptExecutionDisabledArgs", "{", "args", ":=", "new", "(", "SetScriptExecutionDisabledArgs", ")", "\n", "args", ".", "Value", "=", "value", "\n", "return", "args", "\n", "}" ]
// NewSetScriptExecutionDisabledArgs initializes SetScriptExecutionDisabledArgs with the required arguments.
[ "NewSetScriptExecutionDisabledArgs", "initializes", "SetScriptExecutionDisabledArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L311-L315
18,974
mafredri/cdp
protocol/emulation/command.go
NewSetTouchEmulationEnabledArgs
func NewSetTouchEmulationEnabledArgs(enabled bool) *SetTouchEmulationEnabledArgs { args := new(SetTouchEmulationEnabledArgs) args.Enabled = enabled return args }
go
func NewSetTouchEmulationEnabledArgs(enabled bool) *SetTouchEmulationEnabledArgs { args := new(SetTouchEmulationEnabledArgs) args.Enabled = enabled return args }
[ "func", "NewSetTouchEmulationEnabledArgs", "(", "enabled", "bool", ")", "*", "SetTouchEmulationEnabledArgs", "{", "args", ":=", "new", "(", "SetTouchEmulationEnabledArgs", ")", "\n", "args", ".", "Enabled", "=", "enabled", "\n", "return", "args", "\n", "}" ]
// NewSetTouchEmulationEnabledArgs initializes SetTouchEmulationEnabledArgs with the required arguments.
[ "NewSetTouchEmulationEnabledArgs", "initializes", "SetTouchEmulationEnabledArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L324-L328
18,975
mafredri/cdp
protocol/emulation/command.go
SetMaxTouchPoints
func (a *SetTouchEmulationEnabledArgs) SetMaxTouchPoints(maxTouchPoints int) *SetTouchEmulationEnabledArgs { a.MaxTouchPoints = &maxTouchPoints return a }
go
func (a *SetTouchEmulationEnabledArgs) SetMaxTouchPoints(maxTouchPoints int) *SetTouchEmulationEnabledArgs { a.MaxTouchPoints = &maxTouchPoints return a }
[ "func", "(", "a", "*", "SetTouchEmulationEnabledArgs", ")", "SetMaxTouchPoints", "(", "maxTouchPoints", "int", ")", "*", "SetTouchEmulationEnabledArgs", "{", "a", ".", "MaxTouchPoints", "=", "&", "maxTouchPoints", "\n", "return", "a", "\n", "}" ]
// SetMaxTouchPoints sets the MaxTouchPoints optional argument. // Maximum touch points supported. Defaults to one.
[ "SetMaxTouchPoints", "sets", "the", "MaxTouchPoints", "optional", "argument", ".", "Maximum", "touch", "points", "supported", ".", "Defaults", "to", "one", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L332-L335
18,976
mafredri/cdp
protocol/emulation/command.go
NewSetVirtualTimePolicyArgs
func NewSetVirtualTimePolicyArgs(policy VirtualTimePolicy) *SetVirtualTimePolicyArgs { args := new(SetVirtualTimePolicyArgs) args.Policy = policy return args }
go
func NewSetVirtualTimePolicyArgs(policy VirtualTimePolicy) *SetVirtualTimePolicyArgs { args := new(SetVirtualTimePolicyArgs) args.Policy = policy return args }
[ "func", "NewSetVirtualTimePolicyArgs", "(", "policy", "VirtualTimePolicy", ")", "*", "SetVirtualTimePolicyArgs", "{", "args", ":=", "new", "(", "SetVirtualTimePolicyArgs", ")", "\n", "args", ".", "Policy", "=", "policy", "\n", "return", "args", "\n", "}" ]
// NewSetVirtualTimePolicyArgs initializes SetVirtualTimePolicyArgs with the required arguments.
[ "NewSetVirtualTimePolicyArgs", "initializes", "SetVirtualTimePolicyArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L347-L351
18,977
mafredri/cdp
protocol/emulation/command.go
SetBudget
func (a *SetVirtualTimePolicyArgs) SetBudget(budget float64) *SetVirtualTimePolicyArgs { a.Budget = &budget return a }
go
func (a *SetVirtualTimePolicyArgs) SetBudget(budget float64) *SetVirtualTimePolicyArgs { a.Budget = &budget return a }
[ "func", "(", "a", "*", "SetVirtualTimePolicyArgs", ")", "SetBudget", "(", "budget", "float64", ")", "*", "SetVirtualTimePolicyArgs", "{", "a", ".", "Budget", "=", "&", "budget", "\n", "return", "a", "\n", "}" ]
// SetBudget sets the Budget optional argument. If set, after this // many virtual milliseconds have elapsed virtual time will be paused // and a virtualTimeBudgetExpired event is sent.
[ "SetBudget", "sets", "the", "Budget", "optional", "argument", ".", "If", "set", "after", "this", "many", "virtual", "milliseconds", "have", "elapsed", "virtual", "time", "will", "be", "paused", "and", "a", "virtualTimeBudgetExpired", "event", "is", "sent", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L356-L359
18,978
mafredri/cdp
protocol/emulation/command.go
SetMaxVirtualTimeTaskStarvationCount
func (a *SetVirtualTimePolicyArgs) SetMaxVirtualTimeTaskStarvationCount(maxVirtualTimeTaskStarvationCount int) *SetVirtualTimePolicyArgs { a.MaxVirtualTimeTaskStarvationCount = &maxVirtualTimeTaskStarvationCount return a }
go
func (a *SetVirtualTimePolicyArgs) SetMaxVirtualTimeTaskStarvationCount(maxVirtualTimeTaskStarvationCount int) *SetVirtualTimePolicyArgs { a.MaxVirtualTimeTaskStarvationCount = &maxVirtualTimeTaskStarvationCount return a }
[ "func", "(", "a", "*", "SetVirtualTimePolicyArgs", ")", "SetMaxVirtualTimeTaskStarvationCount", "(", "maxVirtualTimeTaskStarvationCount", "int", ")", "*", "SetVirtualTimePolicyArgs", "{", "a", ".", "MaxVirtualTimeTaskStarvationCount", "=", "&", "maxVirtualTimeTaskStarvationCount", "\n", "return", "a", "\n", "}" ]
// SetMaxVirtualTimeTaskStarvationCount sets the MaxVirtualTimeTaskStarvationCount optional argument. // If set this specifies the maximum number of tasks that can be run // before virtual is forced forwards to prevent deadlock.
[ "SetMaxVirtualTimeTaskStarvationCount", "sets", "the", "MaxVirtualTimeTaskStarvationCount", "optional", "argument", ".", "If", "set", "this", "specifies", "the", "maximum", "number", "of", "tasks", "that", "can", "be", "run", "before", "virtual", "is", "forced", "forwards", "to", "prevent", "deadlock", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L364-L367
18,979
mafredri/cdp
protocol/emulation/command.go
SetWaitForNavigation
func (a *SetVirtualTimePolicyArgs) SetWaitForNavigation(waitForNavigation bool) *SetVirtualTimePolicyArgs { a.WaitForNavigation = &waitForNavigation return a }
go
func (a *SetVirtualTimePolicyArgs) SetWaitForNavigation(waitForNavigation bool) *SetVirtualTimePolicyArgs { a.WaitForNavigation = &waitForNavigation return a }
[ "func", "(", "a", "*", "SetVirtualTimePolicyArgs", ")", "SetWaitForNavigation", "(", "waitForNavigation", "bool", ")", "*", "SetVirtualTimePolicyArgs", "{", "a", ".", "WaitForNavigation", "=", "&", "waitForNavigation", "\n", "return", "a", "\n", "}" ]
// SetWaitForNavigation sets the WaitForNavigation optional argument. // If set the virtual time policy change should be deferred until any // frame starts navigating. Note any previous deferred policy change is // superseded.
[ "SetWaitForNavigation", "sets", "the", "WaitForNavigation", "optional", "argument", ".", "If", "set", "the", "virtual", "time", "policy", "change", "should", "be", "deferred", "until", "any", "frame", "starts", "navigating", ".", "Note", "any", "previous", "deferred", "policy", "change", "is", "superseded", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L373-L376
18,980
mafredri/cdp
protocol/emulation/command.go
NewSetVisibleSizeArgs
func NewSetVisibleSizeArgs(width int, height int) *SetVisibleSizeArgs { args := new(SetVisibleSizeArgs) args.Width = width args.Height = height return args }
go
func NewSetVisibleSizeArgs(width int, height int) *SetVisibleSizeArgs { args := new(SetVisibleSizeArgs) args.Width = width args.Height = height return args }
[ "func", "NewSetVisibleSizeArgs", "(", "width", "int", ",", "height", "int", ")", "*", "SetVisibleSizeArgs", "{", "args", ":=", "new", "(", "SetVisibleSizeArgs", ")", "\n", "args", ".", "Width", "=", "width", "\n", "args", ".", "Height", "=", "height", "\n", "return", "args", "\n", "}" ]
// NewSetVisibleSizeArgs initializes SetVisibleSizeArgs with the required arguments.
[ "NewSetVisibleSizeArgs", "initializes", "SetVisibleSizeArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L398-L403
18,981
mafredri/cdp
protocol/emulation/command.go
NewSetUserAgentOverrideArgs
func NewSetUserAgentOverrideArgs(userAgent string) *SetUserAgentOverrideArgs { args := new(SetUserAgentOverrideArgs) args.UserAgent = userAgent return args }
go
func NewSetUserAgentOverrideArgs(userAgent string) *SetUserAgentOverrideArgs { args := new(SetUserAgentOverrideArgs) args.UserAgent = userAgent return args }
[ "func", "NewSetUserAgentOverrideArgs", "(", "userAgent", "string", ")", "*", "SetUserAgentOverrideArgs", "{", "args", ":=", "new", "(", "SetUserAgentOverrideArgs", ")", "\n", "args", ".", "UserAgent", "=", "userAgent", "\n", "return", "args", "\n", "}" ]
// NewSetUserAgentOverrideArgs initializes SetUserAgentOverrideArgs with the required arguments.
[ "NewSetUserAgentOverrideArgs", "initializes", "SetUserAgentOverrideArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L413-L417
18,982
mafredri/cdp
protocol/emulation/command.go
SetAcceptLanguage
func (a *SetUserAgentOverrideArgs) SetAcceptLanguage(acceptLanguage string) *SetUserAgentOverrideArgs { a.AcceptLanguage = &acceptLanguage return a }
go
func (a *SetUserAgentOverrideArgs) SetAcceptLanguage(acceptLanguage string) *SetUserAgentOverrideArgs { a.AcceptLanguage = &acceptLanguage return a }
[ "func", "(", "a", "*", "SetUserAgentOverrideArgs", ")", "SetAcceptLanguage", "(", "acceptLanguage", "string", ")", "*", "SetUserAgentOverrideArgs", "{", "a", ".", "AcceptLanguage", "=", "&", "acceptLanguage", "\n", "return", "a", "\n", "}" ]
// SetAcceptLanguage sets the AcceptLanguage optional argument. // Browser langugage to emulate.
[ "SetAcceptLanguage", "sets", "the", "AcceptLanguage", "optional", "argument", ".", "Browser", "langugage", "to", "emulate", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L421-L424
18,983
mafredri/cdp
protocol/emulation/command.go
SetPlatform
func (a *SetUserAgentOverrideArgs) SetPlatform(platform string) *SetUserAgentOverrideArgs { a.Platform = &platform return a }
go
func (a *SetUserAgentOverrideArgs) SetPlatform(platform string) *SetUserAgentOverrideArgs { a.Platform = &platform return a }
[ "func", "(", "a", "*", "SetUserAgentOverrideArgs", ")", "SetPlatform", "(", "platform", "string", ")", "*", "SetUserAgentOverrideArgs", "{", "a", ".", "Platform", "=", "&", "platform", "\n", "return", "a", "\n", "}" ]
// SetPlatform sets the Platform optional argument. The platform // navigator.platform should return.
[ "SetPlatform", "sets", "the", "Platform", "optional", "argument", ".", "The", "platform", "navigator", ".", "platform", "should", "return", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/emulation/command.go#L428-L431
18,984
mafredri/cdp
protocol/fetch/domain.go
GetResponseBody
func (d *domainClient) GetResponseBody(ctx context.Context, args *GetResponseBodyArgs) (reply *GetResponseBodyReply, err error) { reply = new(GetResponseBodyReply) if args != nil { err = rpcc.Invoke(ctx, "Fetch.getResponseBody", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Fetch.getResponseBody", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "Fetch", Op: "GetResponseBody", Err: err} } return }
go
func (d *domainClient) GetResponseBody(ctx context.Context, args *GetResponseBodyArgs) (reply *GetResponseBodyReply, err error) { reply = new(GetResponseBodyReply) if args != nil { err = rpcc.Invoke(ctx, "Fetch.getResponseBody", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Fetch.getResponseBody", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "Fetch", Op: "GetResponseBody", Err: err} } return }
[ "func", "(", "d", "*", "domainClient", ")", "GetResponseBody", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetResponseBodyArgs", ")", "(", "reply", "*", "GetResponseBodyReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "GetResponseBodyReply", ")", "\n", "if", "args", "!=", "nil", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "args", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "else", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "nil", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "\n", "if", "err", "!=", "nil", "{", "err", "=", "&", "internal", ".", "OpError", "{", "Domain", ":", "\"", "\"", ",", "Op", ":", "\"", "\"", ",", "Err", ":", "err", "}", "\n", "}", "\n", "return", "\n", "}" ]
// GetResponseBody invokes the Fetch method. Causes the body of the response // to be received from the server and returned as a single string. May only be // issued for a request that is paused in the Response stage and is mutually // exclusive with takeResponseBodyForInterceptionAsStream. Calling other // methods that affect the request or disabling fetch domain before body is // received results in an undefined behavior.
[ "GetResponseBody", "invokes", "the", "Fetch", "method", ".", "Causes", "the", "body", "of", "the", "response", "to", "be", "received", "from", "the", "server", "and", "returned", "as", "a", "single", "string", ".", "May", "only", "be", "issued", "for", "a", "request", "that", "is", "paused", "in", "the", "Response", "stage", "and", "is", "mutually", "exclusive", "with", "takeResponseBodyForInterceptionAsStream", ".", "Calling", "other", "methods", "that", "affect", "the", "request", "or", "disabling", "fetch", "domain", "before", "body", "is", "received", "results", "in", "an", "undefined", "behavior", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/domain.go#L108-L119
18,985
mafredri/cdp
protocol/domstorage/command.go
NewClearArgs
func NewClearArgs(storageID StorageID) *ClearArgs { args := new(ClearArgs) args.StorageID = storageID return args }
go
func NewClearArgs(storageID StorageID) *ClearArgs { args := new(ClearArgs) args.StorageID = storageID return args }
[ "func", "NewClearArgs", "(", "storageID", "StorageID", ")", "*", "ClearArgs", "{", "args", ":=", "new", "(", "ClearArgs", ")", "\n", "args", ".", "StorageID", "=", "storageID", "\n", "return", "args", "\n", "}" ]
// NewClearArgs initializes ClearArgs with the required arguments.
[ "NewClearArgs", "initializes", "ClearArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domstorage/command.go#L11-L15
18,986
mafredri/cdp
protocol/domstorage/command.go
NewGetDOMStorageItemsArgs
func NewGetDOMStorageItemsArgs(storageID StorageID) *GetDOMStorageItemsArgs { args := new(GetDOMStorageItemsArgs) args.StorageID = storageID return args }
go
func NewGetDOMStorageItemsArgs(storageID StorageID) *GetDOMStorageItemsArgs { args := new(GetDOMStorageItemsArgs) args.StorageID = storageID return args }
[ "func", "NewGetDOMStorageItemsArgs", "(", "storageID", "StorageID", ")", "*", "GetDOMStorageItemsArgs", "{", "args", ":=", "new", "(", "GetDOMStorageItemsArgs", ")", "\n", "args", ".", "StorageID", "=", "storageID", "\n", "return", "args", "\n", "}" ]
// NewGetDOMStorageItemsArgs initializes GetDOMStorageItemsArgs with the required arguments.
[ "NewGetDOMStorageItemsArgs", "initializes", "GetDOMStorageItemsArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domstorage/command.go#L23-L27
18,987
mafredri/cdp
protocol/domstorage/command.go
NewRemoveDOMStorageItemArgs
func NewRemoveDOMStorageItemArgs(storageID StorageID, key string) *RemoveDOMStorageItemArgs { args := new(RemoveDOMStorageItemArgs) args.StorageID = storageID args.Key = key return args }
go
func NewRemoveDOMStorageItemArgs(storageID StorageID, key string) *RemoveDOMStorageItemArgs { args := new(RemoveDOMStorageItemArgs) args.StorageID = storageID args.Key = key return args }
[ "func", "NewRemoveDOMStorageItemArgs", "(", "storageID", "StorageID", ",", "key", "string", ")", "*", "RemoveDOMStorageItemArgs", "{", "args", ":=", "new", "(", "RemoveDOMStorageItemArgs", ")", "\n", "args", ".", "StorageID", "=", "storageID", "\n", "args", ".", "Key", "=", "key", "\n", "return", "args", "\n", "}" ]
// NewRemoveDOMStorageItemArgs initializes RemoveDOMStorageItemArgs with the required arguments.
[ "NewRemoveDOMStorageItemArgs", "initializes", "RemoveDOMStorageItemArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domstorage/command.go#L41-L46
18,988
mafredri/cdp
protocol/domstorage/command.go
NewSetDOMStorageItemArgs
func NewSetDOMStorageItemArgs(storageID StorageID, key string, value string) *SetDOMStorageItemArgs { args := new(SetDOMStorageItemArgs) args.StorageID = storageID args.Key = key args.Value = value return args }
go
func NewSetDOMStorageItemArgs(storageID StorageID, key string, value string) *SetDOMStorageItemArgs { args := new(SetDOMStorageItemArgs) args.StorageID = storageID args.Key = key args.Value = value return args }
[ "func", "NewSetDOMStorageItemArgs", "(", "storageID", "StorageID", ",", "key", "string", ",", "value", "string", ")", "*", "SetDOMStorageItemArgs", "{", "args", ":=", "new", "(", "SetDOMStorageItemArgs", ")", "\n", "args", ".", "StorageID", "=", "storageID", "\n", "args", ".", "Key", "=", "key", "\n", "args", ".", "Value", "=", "value", "\n", "return", "args", "\n", "}" ]
// NewSetDOMStorageItemArgs initializes SetDOMStorageItemArgs with the required arguments.
[ "NewSetDOMStorageItemArgs", "initializes", "SetDOMStorageItemArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domstorage/command.go#L56-L62
18,989
mafredri/cdp
protocol/database/domain.go
ExecuteSQL
func (d *domainClient) ExecuteSQL(ctx context.Context, args *ExecuteSQLArgs) (reply *ExecuteSQLReply, err error) { reply = new(ExecuteSQLReply) if args != nil { err = rpcc.Invoke(ctx, "Database.executeSQL", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Database.executeSQL", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "Database", Op: "ExecuteSQL", Err: err} } return }
go
func (d *domainClient) ExecuteSQL(ctx context.Context, args *ExecuteSQLArgs) (reply *ExecuteSQLReply, err error) { reply = new(ExecuteSQLReply) if args != nil { err = rpcc.Invoke(ctx, "Database.executeSQL", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Database.executeSQL", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "Database", Op: "ExecuteSQL", Err: err} } return }
[ "func", "(", "d", "*", "domainClient", ")", "ExecuteSQL", "(", "ctx", "context", ".", "Context", ",", "args", "*", "ExecuteSQLArgs", ")", "(", "reply", "*", "ExecuteSQLReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "ExecuteSQLReply", ")", "\n", "if", "args", "!=", "nil", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "args", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "else", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "nil", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "\n", "if", "err", "!=", "nil", "{", "err", "=", "&", "internal", ".", "OpError", "{", "Domain", ":", "\"", "\"", ",", "Op", ":", "\"", "\"", ",", "Err", ":", "err", "}", "\n", "}", "\n", "return", "\n", "}" ]
// ExecuteSQL invokes the Database method.
[ "ExecuteSQL", "invokes", "the", "Database", "method", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/database/domain.go#L42-L53
18,990
mafredri/cdp
protocol/database/domain.go
GetDatabaseTableNames
func (d *domainClient) GetDatabaseTableNames(ctx context.Context, args *GetDatabaseTableNamesArgs) (reply *GetDatabaseTableNamesReply, err error) { reply = new(GetDatabaseTableNamesReply) if args != nil { err = rpcc.Invoke(ctx, "Database.getDatabaseTableNames", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Database.getDatabaseTableNames", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "Database", Op: "GetDatabaseTableNames", Err: err} } return }
go
func (d *domainClient) GetDatabaseTableNames(ctx context.Context, args *GetDatabaseTableNamesArgs) (reply *GetDatabaseTableNamesReply, err error) { reply = new(GetDatabaseTableNamesReply) if args != nil { err = rpcc.Invoke(ctx, "Database.getDatabaseTableNames", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "Database.getDatabaseTableNames", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "Database", Op: "GetDatabaseTableNames", Err: err} } return }
[ "func", "(", "d", "*", "domainClient", ")", "GetDatabaseTableNames", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetDatabaseTableNamesArgs", ")", "(", "reply", "*", "GetDatabaseTableNamesReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "GetDatabaseTableNamesReply", ")", "\n", "if", "args", "!=", "nil", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "args", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "else", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "nil", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "\n", "if", "err", "!=", "nil", "{", "err", "=", "&", "internal", ".", "OpError", "{", "Domain", ":", "\"", "\"", ",", "Op", ":", "\"", "\"", ",", "Err", ":", "err", "}", "\n", "}", "\n", "return", "\n", "}" ]
// GetDatabaseTableNames invokes the Database method.
[ "GetDatabaseTableNames", "invokes", "the", "Database", "method", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/database/domain.go#L56-L67
18,991
mafredri/cdp
protocol/heapprofiler/domain.go
GetHeapObjectID
func (d *domainClient) GetHeapObjectID(ctx context.Context, args *GetHeapObjectIDArgs) (reply *GetHeapObjectIDReply, err error) { reply = new(GetHeapObjectIDReply) if args != nil { err = rpcc.Invoke(ctx, "HeapProfiler.getHeapObjectId", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "HeapProfiler.getHeapObjectId", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "HeapProfiler", Op: "GetHeapObjectID", Err: err} } return }
go
func (d *domainClient) GetHeapObjectID(ctx context.Context, args *GetHeapObjectIDArgs) (reply *GetHeapObjectIDReply, err error) { reply = new(GetHeapObjectIDReply) if args != nil { err = rpcc.Invoke(ctx, "HeapProfiler.getHeapObjectId", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "HeapProfiler.getHeapObjectId", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "HeapProfiler", Op: "GetHeapObjectID", Err: err} } return }
[ "func", "(", "d", "*", "domainClient", ")", "GetHeapObjectID", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetHeapObjectIDArgs", ")", "(", "reply", "*", "GetHeapObjectIDReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "GetHeapObjectIDReply", ")", "\n", "if", "args", "!=", "nil", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "args", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "else", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "nil", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "\n", "if", "err", "!=", "nil", "{", "err", "=", "&", "internal", ".", "OpError", "{", "Domain", ":", "\"", "\"", ",", "Op", ":", "\"", "\"", ",", "Err", ":", "err", "}", "\n", "}", "\n", "return", "\n", "}" ]
// GetHeapObjectID invokes the HeapProfiler method.
[ "GetHeapObjectID", "invokes", "the", "HeapProfiler", "method", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/heapprofiler/domain.go#L64-L75
18,992
mafredri/cdp
protocol/heapprofiler/domain.go
GetObjectByHeapObjectID
func (d *domainClient) GetObjectByHeapObjectID(ctx context.Context, args *GetObjectByHeapObjectIDArgs) (reply *GetObjectByHeapObjectIDReply, err error) { reply = new(GetObjectByHeapObjectIDReply) if args != nil { err = rpcc.Invoke(ctx, "HeapProfiler.getObjectByHeapObjectId", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "HeapProfiler.getObjectByHeapObjectId", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "HeapProfiler", Op: "GetObjectByHeapObjectID", Err: err} } return }
go
func (d *domainClient) GetObjectByHeapObjectID(ctx context.Context, args *GetObjectByHeapObjectIDArgs) (reply *GetObjectByHeapObjectIDReply, err error) { reply = new(GetObjectByHeapObjectIDReply) if args != nil { err = rpcc.Invoke(ctx, "HeapProfiler.getObjectByHeapObjectId", args, reply, d.conn) } else { err = rpcc.Invoke(ctx, "HeapProfiler.getObjectByHeapObjectId", nil, reply, d.conn) } if err != nil { err = &internal.OpError{Domain: "HeapProfiler", Op: "GetObjectByHeapObjectID", Err: err} } return }
[ "func", "(", "d", "*", "domainClient", ")", "GetObjectByHeapObjectID", "(", "ctx", "context", ".", "Context", ",", "args", "*", "GetObjectByHeapObjectIDArgs", ")", "(", "reply", "*", "GetObjectByHeapObjectIDReply", ",", "err", "error", ")", "{", "reply", "=", "new", "(", "GetObjectByHeapObjectIDReply", ")", "\n", "if", "args", "!=", "nil", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "args", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "else", "{", "err", "=", "rpcc", ".", "Invoke", "(", "ctx", ",", "\"", "\"", ",", "nil", ",", "reply", ",", "d", ".", "conn", ")", "\n", "}", "\n", "if", "err", "!=", "nil", "{", "err", "=", "&", "internal", ".", "OpError", "{", "Domain", ":", "\"", "\"", ",", "Op", ":", "\"", "\"", ",", "Err", ":", "err", "}", "\n", "}", "\n", "return", "\n", "}" ]
// GetObjectByHeapObjectID invokes the HeapProfiler method.
[ "GetObjectByHeapObjectID", "invokes", "the", "HeapProfiler", "method", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/heapprofiler/domain.go#L78-L89
18,993
mafredri/cdp
protocol/serviceworker/command.go
NewDeliverPushMessageArgs
func NewDeliverPushMessageArgs(origin string, registrationID RegistrationID, data string) *DeliverPushMessageArgs { args := new(DeliverPushMessageArgs) args.Origin = origin args.RegistrationID = registrationID args.Data = data return args }
go
func NewDeliverPushMessageArgs(origin string, registrationID RegistrationID, data string) *DeliverPushMessageArgs { args := new(DeliverPushMessageArgs) args.Origin = origin args.RegistrationID = registrationID args.Data = data return args }
[ "func", "NewDeliverPushMessageArgs", "(", "origin", "string", ",", "registrationID", "RegistrationID", ",", "data", "string", ")", "*", "DeliverPushMessageArgs", "{", "args", ":=", "new", "(", "DeliverPushMessageArgs", ")", "\n", "args", ".", "Origin", "=", "origin", "\n", "args", ".", "RegistrationID", "=", "registrationID", "\n", "args", ".", "Data", "=", "data", "\n", "return", "args", "\n", "}" ]
// NewDeliverPushMessageArgs initializes DeliverPushMessageArgs with the required arguments.
[ "NewDeliverPushMessageArgs", "initializes", "DeliverPushMessageArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/serviceworker/command.go#L13-L19
18,994
mafredri/cdp
protocol/serviceworker/command.go
NewDispatchSyncEventArgs
func NewDispatchSyncEventArgs(origin string, registrationID RegistrationID, tag string, lastChance bool) *DispatchSyncEventArgs { args := new(DispatchSyncEventArgs) args.Origin = origin args.RegistrationID = registrationID args.Tag = tag args.LastChance = lastChance return args }
go
func NewDispatchSyncEventArgs(origin string, registrationID RegistrationID, tag string, lastChance bool) *DispatchSyncEventArgs { args := new(DispatchSyncEventArgs) args.Origin = origin args.RegistrationID = registrationID args.Tag = tag args.LastChance = lastChance return args }
[ "func", "NewDispatchSyncEventArgs", "(", "origin", "string", ",", "registrationID", "RegistrationID", ",", "tag", "string", ",", "lastChance", "bool", ")", "*", "DispatchSyncEventArgs", "{", "args", ":=", "new", "(", "DispatchSyncEventArgs", ")", "\n", "args", ".", "Origin", "=", "origin", "\n", "args", ".", "RegistrationID", "=", "registrationID", "\n", "args", ".", "Tag", "=", "tag", "\n", "args", ".", "LastChance", "=", "lastChance", "\n", "return", "args", "\n", "}" ]
// NewDispatchSyncEventArgs initializes DispatchSyncEventArgs with the required arguments.
[ "NewDispatchSyncEventArgs", "initializes", "DispatchSyncEventArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/serviceworker/command.go#L30-L37
18,995
mafredri/cdp
protocol/serviceworker/command.go
NewInspectWorkerArgs
func NewInspectWorkerArgs(versionID string) *InspectWorkerArgs { args := new(InspectWorkerArgs) args.VersionID = versionID return args }
go
func NewInspectWorkerArgs(versionID string) *InspectWorkerArgs { args := new(InspectWorkerArgs) args.VersionID = versionID return args }
[ "func", "NewInspectWorkerArgs", "(", "versionID", "string", ")", "*", "InspectWorkerArgs", "{", "args", ":=", "new", "(", "InspectWorkerArgs", ")", "\n", "args", ".", "VersionID", "=", "versionID", "\n", "return", "args", "\n", "}" ]
// NewInspectWorkerArgs initializes InspectWorkerArgs with the required arguments.
[ "NewInspectWorkerArgs", "initializes", "InspectWorkerArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/serviceworker/command.go#L45-L49
18,996
mafredri/cdp
protocol/serviceworker/command.go
NewSetForceUpdateOnPageLoadArgs
func NewSetForceUpdateOnPageLoadArgs(forceUpdateOnPageLoad bool) *SetForceUpdateOnPageLoadArgs { args := new(SetForceUpdateOnPageLoadArgs) args.ForceUpdateOnPageLoad = forceUpdateOnPageLoad return args }
go
func NewSetForceUpdateOnPageLoadArgs(forceUpdateOnPageLoad bool) *SetForceUpdateOnPageLoadArgs { args := new(SetForceUpdateOnPageLoadArgs) args.ForceUpdateOnPageLoad = forceUpdateOnPageLoad return args }
[ "func", "NewSetForceUpdateOnPageLoadArgs", "(", "forceUpdateOnPageLoad", "bool", ")", "*", "SetForceUpdateOnPageLoadArgs", "{", "args", ":=", "new", "(", "SetForceUpdateOnPageLoadArgs", ")", "\n", "args", ".", "ForceUpdateOnPageLoad", "=", "forceUpdateOnPageLoad", "\n", "return", "args", "\n", "}" ]
// NewSetForceUpdateOnPageLoadArgs initializes SetForceUpdateOnPageLoadArgs with the required arguments.
[ "NewSetForceUpdateOnPageLoadArgs", "initializes", "SetForceUpdateOnPageLoadArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/serviceworker/command.go#L57-L61
18,997
mafredri/cdp
protocol/serviceworker/command.go
NewSkipWaitingArgs
func NewSkipWaitingArgs(scopeURL string) *SkipWaitingArgs { args := new(SkipWaitingArgs) args.ScopeURL = scopeURL return args }
go
func NewSkipWaitingArgs(scopeURL string) *SkipWaitingArgs { args := new(SkipWaitingArgs) args.ScopeURL = scopeURL return args }
[ "func", "NewSkipWaitingArgs", "(", "scopeURL", "string", ")", "*", "SkipWaitingArgs", "{", "args", ":=", "new", "(", "SkipWaitingArgs", ")", "\n", "args", ".", "ScopeURL", "=", "scopeURL", "\n", "return", "args", "\n", "}" ]
// NewSkipWaitingArgs initializes SkipWaitingArgs with the required arguments.
[ "NewSkipWaitingArgs", "initializes", "SkipWaitingArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/serviceworker/command.go#L69-L73
18,998
mafredri/cdp
protocol/serviceworker/command.go
NewStartWorkerArgs
func NewStartWorkerArgs(scopeURL string) *StartWorkerArgs { args := new(StartWorkerArgs) args.ScopeURL = scopeURL return args }
go
func NewStartWorkerArgs(scopeURL string) *StartWorkerArgs { args := new(StartWorkerArgs) args.ScopeURL = scopeURL return args }
[ "func", "NewStartWorkerArgs", "(", "scopeURL", "string", ")", "*", "StartWorkerArgs", "{", "args", ":=", "new", "(", "StartWorkerArgs", ")", "\n", "args", ".", "ScopeURL", "=", "scopeURL", "\n", "return", "args", "\n", "}" ]
// NewStartWorkerArgs initializes StartWorkerArgs with the required arguments.
[ "NewStartWorkerArgs", "initializes", "StartWorkerArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/serviceworker/command.go#L81-L85
18,999
mafredri/cdp
protocol/serviceworker/command.go
NewStopWorkerArgs
func NewStopWorkerArgs(versionID string) *StopWorkerArgs { args := new(StopWorkerArgs) args.VersionID = versionID return args }
go
func NewStopWorkerArgs(versionID string) *StopWorkerArgs { args := new(StopWorkerArgs) args.VersionID = versionID return args }
[ "func", "NewStopWorkerArgs", "(", "versionID", "string", ")", "*", "StopWorkerArgs", "{", "args", ":=", "new", "(", "StopWorkerArgs", ")", "\n", "args", ".", "VersionID", "=", "versionID", "\n", "return", "args", "\n", "}" ]
// NewStopWorkerArgs initializes StopWorkerArgs with the required arguments.
[ "NewStopWorkerArgs", "initializes", "StopWorkerArgs", "with", "the", "required", "arguments", "." ]
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/serviceworker/command.go#L93-L97