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
|
|---|---|---|---|---|---|---|---|---|---|---|---|
19,100
|
mafredri/cdp
|
rpcc/call.go
|
Invoke
|
func Invoke(ctx context.Context, method string, args, reply interface{}, conn *Conn) error {
if ctx == nil {
ctx = context.Background()
}
call := &rpcCall{
Method: method,
Args: args,
Reply: reply,
Error: make(chan error, 1), // Do not block.
}
err := conn.send(ctx, call)
if err != nil {
return err
}
select {
case <-ctx.Done():
return ctx.Err()
case err = <-call.Error:
return err
}
}
|
go
|
func Invoke(ctx context.Context, method string, args, reply interface{}, conn *Conn) error {
if ctx == nil {
ctx = context.Background()
}
call := &rpcCall{
Method: method,
Args: args,
Reply: reply,
Error: make(chan error, 1), // Do not block.
}
err := conn.send(ctx, call)
if err != nil {
return err
}
select {
case <-ctx.Done():
return ctx.Err()
case err = <-call.Error:
return err
}
}
|
[
"func",
"Invoke",
"(",
"ctx",
"context",
".",
"Context",
",",
"method",
"string",
",",
"args",
",",
"reply",
"interface",
"{",
"}",
",",
"conn",
"*",
"Conn",
")",
"error",
"{",
"if",
"ctx",
"==",
"nil",
"{",
"ctx",
"=",
"context",
".",
"Background",
"(",
")",
"\n",
"}",
"\n\n",
"call",
":=",
"&",
"rpcCall",
"{",
"Method",
":",
"method",
",",
"Args",
":",
"args",
",",
"Reply",
":",
"reply",
",",
"Error",
":",
"make",
"(",
"chan",
"error",
",",
"1",
")",
",",
"// Do not block.",
"}",
"\n\n",
"err",
":=",
"conn",
".",
"send",
"(",
"ctx",
",",
"call",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"err",
"\n",
"}",
"\n\n",
"select",
"{",
"case",
"<-",
"ctx",
".",
"Done",
"(",
")",
":",
"return",
"ctx",
".",
"Err",
"(",
")",
"\n",
"case",
"err",
"=",
"<-",
"call",
".",
"Error",
":",
"return",
"err",
"\n",
"}",
"\n",
"}"
] |
// Invoke sends an RPC request and blocks until the response is received.
// This function is called by generated code but can be used to issue
// requests manually.
|
[
"Invoke",
"sends",
"an",
"RPC",
"request",
"and",
"blocks",
"until",
"the",
"response",
"is",
"received",
".",
"This",
"function",
"is",
"called",
"by",
"generated",
"code",
"but",
"can",
"be",
"used",
"to",
"issue",
"requests",
"manually",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/call.go#L19-L42
|
19,101
|
mafredri/cdp
|
rpcc/stream.go
|
store
|
func (b *messageBuffer) store(m *message) {
b.mu.Lock()
defer b.mu.Unlock()
if len(b.backlog) == 0 {
select {
case b.c <- m:
return
default:
}
}
b.backlog = append(b.backlog, m)
}
|
go
|
func (b *messageBuffer) store(m *message) {
b.mu.Lock()
defer b.mu.Unlock()
if len(b.backlog) == 0 {
select {
case b.c <- m:
return
default:
}
}
b.backlog = append(b.backlog, m)
}
|
[
"func",
"(",
"b",
"*",
"messageBuffer",
")",
"store",
"(",
"m",
"*",
"message",
")",
"{",
"b",
".",
"mu",
".",
"Lock",
"(",
")",
"\n",
"defer",
"b",
".",
"mu",
".",
"Unlock",
"(",
")",
"\n\n",
"if",
"len",
"(",
"b",
".",
"backlog",
")",
"==",
"0",
"{",
"select",
"{",
"case",
"b",
".",
"c",
"<-",
"m",
":",
"return",
"\n",
"default",
":",
"}",
"\n",
"}",
"\n",
"b",
".",
"backlog",
"=",
"append",
"(",
"b",
".",
"backlog",
",",
"m",
")",
"\n",
"}"
] |
// store the message in ch, if empty, otherwise in queue.
|
[
"store",
"the",
"message",
"in",
"ch",
"if",
"empty",
"otherwise",
"in",
"queue",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/stream.go#L37-L49
|
19,102
|
mafredri/cdp
|
rpcc/stream.go
|
load
|
func (b *messageBuffer) load() {
b.mu.Lock()
defer b.mu.Unlock()
if len(b.backlog) > 0 {
select {
case b.c <- b.backlog[0]:
b.backlog[0] = nil // Remove reference from underlying array.
b.backlog = b.backlog[1:]
default:
}
}
}
|
go
|
func (b *messageBuffer) load() {
b.mu.Lock()
defer b.mu.Unlock()
if len(b.backlog) > 0 {
select {
case b.c <- b.backlog[0]:
b.backlog[0] = nil // Remove reference from underlying array.
b.backlog = b.backlog[1:]
default:
}
}
}
|
[
"func",
"(",
"b",
"*",
"messageBuffer",
")",
"load",
"(",
")",
"{",
"b",
".",
"mu",
".",
"Lock",
"(",
")",
"\n",
"defer",
"b",
".",
"mu",
".",
"Unlock",
"(",
")",
"\n",
"if",
"len",
"(",
"b",
".",
"backlog",
")",
">",
"0",
"{",
"select",
"{",
"case",
"b",
".",
"c",
"<-",
"b",
".",
"backlog",
"[",
"0",
"]",
":",
"b",
".",
"backlog",
"[",
"0",
"]",
"=",
"nil",
"// Remove reference from underlying array.",
"\n",
"b",
".",
"backlog",
"=",
"b",
".",
"backlog",
"[",
"1",
":",
"]",
"\n",
"default",
":",
"}",
"\n",
"}",
"\n",
"}"
] |
// load moves a message from the queue into ch.
|
[
"load",
"moves",
"a",
"message",
"from",
"the",
"queue",
"into",
"ch",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/stream.go#L52-L63
|
19,103
|
mafredri/cdp
|
rpcc/stream.go
|
clear
|
func (b *messageBuffer) clear() {
b.mu.Lock()
backlog := b.backlog
b.backlog = nil
b.mu.Unlock()
select {
case m := <-b.c:
m.next()
default:
}
for _, m := range backlog {
m.next()
}
}
|
go
|
func (b *messageBuffer) clear() {
b.mu.Lock()
backlog := b.backlog
b.backlog = nil
b.mu.Unlock()
select {
case m := <-b.c:
m.next()
default:
}
for _, m := range backlog {
m.next()
}
}
|
[
"func",
"(",
"b",
"*",
"messageBuffer",
")",
"clear",
"(",
")",
"{",
"b",
".",
"mu",
".",
"Lock",
"(",
")",
"\n",
"backlog",
":=",
"b",
".",
"backlog",
"\n",
"b",
".",
"backlog",
"=",
"nil",
"\n",
"b",
".",
"mu",
".",
"Unlock",
"(",
")",
"\n\n",
"select",
"{",
"case",
"m",
":=",
"<-",
"b",
".",
"c",
":",
"m",
".",
"next",
"(",
")",
"\n",
"default",
":",
"}",
"\n",
"for",
"_",
",",
"m",
":=",
"range",
"backlog",
"{",
"m",
".",
"next",
"(",
")",
"\n",
"}",
"\n",
"}"
] |
// clear removes all messages from buffer.
|
[
"clear",
"removes",
"all",
"messages",
"from",
"buffer",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/stream.go#L66-L80
|
19,104
|
mafredri/cdp
|
rpcc/stream.go
|
NewStream
|
func NewStream(ctx context.Context, method string, conn *Conn) (Stream, error) {
if ctx == nil {
ctx = context.Background()
}
return newStreamClient(ctx, method, conn)
}
|
go
|
func NewStream(ctx context.Context, method string, conn *Conn) (Stream, error) {
if ctx == nil {
ctx = context.Background()
}
return newStreamClient(ctx, method, conn)
}
|
[
"func",
"NewStream",
"(",
"ctx",
"context",
".",
"Context",
",",
"method",
"string",
",",
"conn",
"*",
"Conn",
")",
"(",
"Stream",
",",
"error",
")",
"{",
"if",
"ctx",
"==",
"nil",
"{",
"ctx",
"=",
"context",
".",
"Background",
"(",
")",
"\n",
"}",
"\n\n",
"return",
"newStreamClient",
"(",
"ctx",
",",
"method",
",",
"conn",
")",
"\n",
"}"
] |
// NewStream creates a new stream that listens to notifications from the
// RPC server. This function is called by generated code.
|
[
"NewStream",
"creates",
"a",
"new",
"stream",
"that",
"listens",
"to",
"notifications",
"from",
"the",
"RPC",
"server",
".",
"This",
"function",
"is",
"called",
"by",
"generated",
"code",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/rpcc/stream.go#L118-L124
|
19,105
|
mafredri/cdp
|
protocol/accessibility/domain.go
|
GetPartialAXTree
|
func (d *domainClient) GetPartialAXTree(ctx context.Context, args *GetPartialAXTreeArgs) (reply *GetPartialAXTreeReply, err error) {
reply = new(GetPartialAXTreeReply)
if args != nil {
err = rpcc.Invoke(ctx, "Accessibility.getPartialAXTree", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Accessibility.getPartialAXTree", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Accessibility", Op: "GetPartialAXTree", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetPartialAXTree(ctx context.Context, args *GetPartialAXTreeArgs) (reply *GetPartialAXTreeReply, err error) {
reply = new(GetPartialAXTreeReply)
if args != nil {
err = rpcc.Invoke(ctx, "Accessibility.getPartialAXTree", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Accessibility.getPartialAXTree", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Accessibility", Op: "GetPartialAXTree", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetPartialAXTree",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetPartialAXTreeArgs",
")",
"(",
"reply",
"*",
"GetPartialAXTreeReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetPartialAXTreeReply",
")",
"\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",
"}"
] |
// GetPartialAXTree invokes the Accessibility method. Fetches the
// accessibility node and partial accessibility tree for this DOM node, if it
// exists.
|
[
"GetPartialAXTree",
"invokes",
"the",
"Accessibility",
"method",
".",
"Fetches",
"the",
"accessibility",
"node",
"and",
"partial",
"accessibility",
"tree",
"for",
"this",
"DOM",
"node",
"if",
"it",
"exists",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/accessibility/domain.go#L46-L57
|
19,106
|
mafredri/cdp
|
protocol/css/domain.go
|
AddRule
|
func (d *domainClient) AddRule(ctx context.Context, args *AddRuleArgs) (reply *AddRuleReply, err error) {
reply = new(AddRuleReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.addRule", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.addRule", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "AddRule", Err: err}
}
return
}
|
go
|
func (d *domainClient) AddRule(ctx context.Context, args *AddRuleArgs) (reply *AddRuleReply, err error) {
reply = new(AddRuleReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.addRule", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.addRule", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "AddRule", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"AddRule",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"AddRuleArgs",
")",
"(",
"reply",
"*",
"AddRuleReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"AddRuleReply",
")",
"\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",
"}"
] |
// AddRule invokes the CSS method. Inserts a new rule with the given
// `ruleText` in a stylesheet with given `styleSheetId`, at the position
// specified by `location`.
|
[
"AddRule",
"invokes",
"the",
"CSS",
"method",
".",
"Inserts",
"a",
"new",
"rule",
"with",
"the",
"given",
"ruleText",
"in",
"a",
"stylesheet",
"with",
"given",
"styleSheetId",
"at",
"the",
"position",
"specified",
"by",
"location",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L40-L51
|
19,107
|
mafredri/cdp
|
protocol/css/domain.go
|
CollectClassNames
|
func (d *domainClient) CollectClassNames(ctx context.Context, args *CollectClassNamesArgs) (reply *CollectClassNamesReply, err error) {
reply = new(CollectClassNamesReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.collectClassNames", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.collectClassNames", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "CollectClassNames", Err: err}
}
return
}
|
go
|
func (d *domainClient) CollectClassNames(ctx context.Context, args *CollectClassNamesArgs) (reply *CollectClassNamesReply, err error) {
reply = new(CollectClassNamesReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.collectClassNames", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.collectClassNames", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "CollectClassNames", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"CollectClassNames",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"CollectClassNamesArgs",
")",
"(",
"reply",
"*",
"CollectClassNamesReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"CollectClassNamesReply",
")",
"\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",
"}"
] |
// CollectClassNames invokes the CSS method. Returns all class names from
// specified stylesheet.
|
[
"CollectClassNames",
"invokes",
"the",
"CSS",
"method",
".",
"Returns",
"all",
"class",
"names",
"from",
"specified",
"stylesheet",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L55-L66
|
19,108
|
mafredri/cdp
|
protocol/css/domain.go
|
CreateStyleSheet
|
func (d *domainClient) CreateStyleSheet(ctx context.Context, args *CreateStyleSheetArgs) (reply *CreateStyleSheetReply, err error) {
reply = new(CreateStyleSheetReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.createStyleSheet", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.createStyleSheet", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "CreateStyleSheet", Err: err}
}
return
}
|
go
|
func (d *domainClient) CreateStyleSheet(ctx context.Context, args *CreateStyleSheetArgs) (reply *CreateStyleSheetReply, err error) {
reply = new(CreateStyleSheetReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.createStyleSheet", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.createStyleSheet", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "CreateStyleSheet", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"CreateStyleSheet",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"CreateStyleSheetArgs",
")",
"(",
"reply",
"*",
"CreateStyleSheetReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"CreateStyleSheetReply",
")",
"\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",
"}"
] |
// CreateStyleSheet invokes the CSS method. Creates a new special
// "via-inspector" stylesheet in the frame with given `frameId`.
|
[
"CreateStyleSheet",
"invokes",
"the",
"CSS",
"method",
".",
"Creates",
"a",
"new",
"special",
"via",
"-",
"inspector",
"stylesheet",
"in",
"the",
"frame",
"with",
"given",
"frameId",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L70-L81
|
19,109
|
mafredri/cdp
|
protocol/css/domain.go
|
GetBackgroundColors
|
func (d *domainClient) GetBackgroundColors(ctx context.Context, args *GetBackgroundColorsArgs) (reply *GetBackgroundColorsReply, err error) {
reply = new(GetBackgroundColorsReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getBackgroundColors", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getBackgroundColors", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetBackgroundColors", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetBackgroundColors(ctx context.Context, args *GetBackgroundColorsArgs) (reply *GetBackgroundColorsReply, err error) {
reply = new(GetBackgroundColorsReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getBackgroundColors", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getBackgroundColors", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetBackgroundColors", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetBackgroundColors",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetBackgroundColorsArgs",
")",
"(",
"reply",
"*",
"GetBackgroundColorsReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetBackgroundColorsReply",
")",
"\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",
"}"
] |
// GetBackgroundColors invokes the CSS method.
|
[
"GetBackgroundColors",
"invokes",
"the",
"CSS",
"method",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L118-L129
|
19,110
|
mafredri/cdp
|
protocol/css/domain.go
|
GetComputedStyleForNode
|
func (d *domainClient) GetComputedStyleForNode(ctx context.Context, args *GetComputedStyleForNodeArgs) (reply *GetComputedStyleForNodeReply, err error) {
reply = new(GetComputedStyleForNodeReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getComputedStyleForNode", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getComputedStyleForNode", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetComputedStyleForNode", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetComputedStyleForNode(ctx context.Context, args *GetComputedStyleForNodeArgs) (reply *GetComputedStyleForNodeReply, err error) {
reply = new(GetComputedStyleForNodeReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getComputedStyleForNode", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getComputedStyleForNode", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetComputedStyleForNode", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetComputedStyleForNode",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetComputedStyleForNodeArgs",
")",
"(",
"reply",
"*",
"GetComputedStyleForNodeReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetComputedStyleForNodeReply",
")",
"\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",
"}"
] |
// GetComputedStyleForNode invokes the CSS method. Returns the computed style
// for a DOM node identified by `nodeId`.
|
[
"GetComputedStyleForNode",
"invokes",
"the",
"CSS",
"method",
".",
"Returns",
"the",
"computed",
"style",
"for",
"a",
"DOM",
"node",
"identified",
"by",
"nodeId",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L133-L144
|
19,111
|
mafredri/cdp
|
protocol/css/domain.go
|
GetMatchedStylesForNode
|
func (d *domainClient) GetMatchedStylesForNode(ctx context.Context, args *GetMatchedStylesForNodeArgs) (reply *GetMatchedStylesForNodeReply, err error) {
reply = new(GetMatchedStylesForNodeReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getMatchedStylesForNode", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getMatchedStylesForNode", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetMatchedStylesForNode", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetMatchedStylesForNode(ctx context.Context, args *GetMatchedStylesForNodeArgs) (reply *GetMatchedStylesForNodeReply, err error) {
reply = new(GetMatchedStylesForNodeReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getMatchedStylesForNode", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getMatchedStylesForNode", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetMatchedStylesForNode", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetMatchedStylesForNode",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetMatchedStylesForNodeArgs",
")",
"(",
"reply",
"*",
"GetMatchedStylesForNodeReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetMatchedStylesForNodeReply",
")",
"\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",
"}"
] |
// GetMatchedStylesForNode invokes the CSS method. Returns requested styles
// for a DOM node identified by `nodeId`.
|
[
"GetMatchedStylesForNode",
"invokes",
"the",
"CSS",
"method",
".",
"Returns",
"requested",
"styles",
"for",
"a",
"DOM",
"node",
"identified",
"by",
"nodeId",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L164-L175
|
19,112
|
mafredri/cdp
|
protocol/css/domain.go
|
GetMediaQueries
|
func (d *domainClient) GetMediaQueries(ctx context.Context) (reply *GetMediaQueriesReply, err error) {
reply = new(GetMediaQueriesReply)
err = rpcc.Invoke(ctx, "CSS.getMediaQueries", nil, reply, d.conn)
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetMediaQueries", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetMediaQueries(ctx context.Context) (reply *GetMediaQueriesReply, err error) {
reply = new(GetMediaQueriesReply)
err = rpcc.Invoke(ctx, "CSS.getMediaQueries", nil, reply, d.conn)
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetMediaQueries", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetMediaQueries",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"reply",
"*",
"GetMediaQueriesReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetMediaQueriesReply",
")",
"\n",
"err",
"=",
"rpcc",
".",
"Invoke",
"(",
"ctx",
",",
"\"",
"\"",
",",
"nil",
",",
"reply",
",",
"d",
".",
"conn",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"err",
"=",
"&",
"internal",
".",
"OpError",
"{",
"Domain",
":",
"\"",
"\"",
",",
"Op",
":",
"\"",
"\"",
",",
"Err",
":",
"err",
"}",
"\n",
"}",
"\n",
"return",
"\n",
"}"
] |
// GetMediaQueries invokes the CSS method. Returns all media queries parsed by
// the rendering engine.
|
[
"GetMediaQueries",
"invokes",
"the",
"CSS",
"method",
".",
"Returns",
"all",
"media",
"queries",
"parsed",
"by",
"the",
"rendering",
"engine",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L179-L186
|
19,113
|
mafredri/cdp
|
protocol/css/domain.go
|
GetPlatformFontsForNode
|
func (d *domainClient) GetPlatformFontsForNode(ctx context.Context, args *GetPlatformFontsForNodeArgs) (reply *GetPlatformFontsForNodeReply, err error) {
reply = new(GetPlatformFontsForNodeReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getPlatformFontsForNode", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getPlatformFontsForNode", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetPlatformFontsForNode", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetPlatformFontsForNode(ctx context.Context, args *GetPlatformFontsForNodeArgs) (reply *GetPlatformFontsForNodeReply, err error) {
reply = new(GetPlatformFontsForNodeReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getPlatformFontsForNode", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getPlatformFontsForNode", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetPlatformFontsForNode", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetPlatformFontsForNode",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetPlatformFontsForNodeArgs",
")",
"(",
"reply",
"*",
"GetPlatformFontsForNodeReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetPlatformFontsForNodeReply",
")",
"\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",
"}"
] |
// GetPlatformFontsForNode invokes the CSS method. Requests information about
// platform fonts which we used to render child TextNodes in the given node.
|
[
"GetPlatformFontsForNode",
"invokes",
"the",
"CSS",
"method",
".",
"Requests",
"information",
"about",
"platform",
"fonts",
"which",
"we",
"used",
"to",
"render",
"child",
"TextNodes",
"in",
"the",
"given",
"node",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L190-L201
|
19,114
|
mafredri/cdp
|
protocol/css/domain.go
|
GetStyleSheetText
|
func (d *domainClient) GetStyleSheetText(ctx context.Context, args *GetStyleSheetTextArgs) (reply *GetStyleSheetTextReply, err error) {
reply = new(GetStyleSheetTextReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getStyleSheetText", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getStyleSheetText", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetStyleSheetText", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetStyleSheetText(ctx context.Context, args *GetStyleSheetTextArgs) (reply *GetStyleSheetTextReply, err error) {
reply = new(GetStyleSheetTextReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.getStyleSheetText", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.getStyleSheetText", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "GetStyleSheetText", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetStyleSheetText",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetStyleSheetTextArgs",
")",
"(",
"reply",
"*",
"GetStyleSheetTextReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetStyleSheetTextReply",
")",
"\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",
"}"
] |
// GetStyleSheetText invokes the CSS method. Returns the current textual
// content for a stylesheet.
|
[
"GetStyleSheetText",
"invokes",
"the",
"CSS",
"method",
".",
"Returns",
"the",
"current",
"textual",
"content",
"for",
"a",
"stylesheet",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L205-L216
|
19,115
|
mafredri/cdp
|
protocol/css/domain.go
|
SetEffectivePropertyValueForNode
|
func (d *domainClient) SetEffectivePropertyValueForNode(ctx context.Context, args *SetEffectivePropertyValueForNodeArgs) (err error) {
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setEffectivePropertyValueForNode", args, nil, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setEffectivePropertyValueForNode", nil, nil, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetEffectivePropertyValueForNode", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetEffectivePropertyValueForNode(ctx context.Context, args *SetEffectivePropertyValueForNodeArgs) (err error) {
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setEffectivePropertyValueForNode", args, nil, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setEffectivePropertyValueForNode", nil, nil, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetEffectivePropertyValueForNode", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetEffectivePropertyValueForNode",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetEffectivePropertyValueForNodeArgs",
")",
"(",
"err",
"error",
")",
"{",
"if",
"args",
"!=",
"nil",
"{",
"err",
"=",
"rpcc",
".",
"Invoke",
"(",
"ctx",
",",
"\"",
"\"",
",",
"args",
",",
"nil",
",",
"d",
".",
"conn",
")",
"\n",
"}",
"else",
"{",
"err",
"=",
"rpcc",
".",
"Invoke",
"(",
"ctx",
",",
"\"",
"\"",
",",
"nil",
",",
"nil",
",",
"d",
".",
"conn",
")",
"\n",
"}",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"err",
"=",
"&",
"internal",
".",
"OpError",
"{",
"Domain",
":",
"\"",
"\"",
",",
"Op",
":",
"\"",
"\"",
",",
"Err",
":",
"err",
"}",
"\n",
"}",
"\n",
"return",
"\n",
"}"
] |
// SetEffectivePropertyValueForNode invokes the CSS method. Find a rule with
// the given active property for the given node and set the new value for this
// property
|
[
"SetEffectivePropertyValueForNode",
"invokes",
"the",
"CSS",
"method",
".",
"Find",
"a",
"rule",
"with",
"the",
"given",
"active",
"property",
"for",
"the",
"given",
"node",
"and",
"set",
"the",
"new",
"value",
"for",
"this",
"property"
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L221-L231
|
19,116
|
mafredri/cdp
|
protocol/css/domain.go
|
SetKeyframeKey
|
func (d *domainClient) SetKeyframeKey(ctx context.Context, args *SetKeyframeKeyArgs) (reply *SetKeyframeKeyReply, err error) {
reply = new(SetKeyframeKeyReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setKeyframeKey", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setKeyframeKey", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetKeyframeKey", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetKeyframeKey(ctx context.Context, args *SetKeyframeKeyArgs) (reply *SetKeyframeKeyReply, err error) {
reply = new(SetKeyframeKeyReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setKeyframeKey", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setKeyframeKey", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetKeyframeKey", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetKeyframeKey",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetKeyframeKeyArgs",
")",
"(",
"reply",
"*",
"SetKeyframeKeyReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetKeyframeKeyReply",
")",
"\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",
"}"
] |
// SetKeyframeKey invokes the CSS method. Modifies the keyframe rule key text.
|
[
"SetKeyframeKey",
"invokes",
"the",
"CSS",
"method",
".",
"Modifies",
"the",
"keyframe",
"rule",
"key",
"text",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L234-L245
|
19,117
|
mafredri/cdp
|
protocol/css/domain.go
|
SetMediaText
|
func (d *domainClient) SetMediaText(ctx context.Context, args *SetMediaTextArgs) (reply *SetMediaTextReply, err error) {
reply = new(SetMediaTextReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setMediaText", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setMediaText", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetMediaText", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetMediaText(ctx context.Context, args *SetMediaTextArgs) (reply *SetMediaTextReply, err error) {
reply = new(SetMediaTextReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setMediaText", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setMediaText", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetMediaText", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetMediaText",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetMediaTextArgs",
")",
"(",
"reply",
"*",
"SetMediaTextReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetMediaTextReply",
")",
"\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",
"}"
] |
// SetMediaText invokes the CSS method. Modifies the rule selector.
|
[
"SetMediaText",
"invokes",
"the",
"CSS",
"method",
".",
"Modifies",
"the",
"rule",
"selector",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L248-L259
|
19,118
|
mafredri/cdp
|
protocol/css/domain.go
|
SetRuleSelector
|
func (d *domainClient) SetRuleSelector(ctx context.Context, args *SetRuleSelectorArgs) (reply *SetRuleSelectorReply, err error) {
reply = new(SetRuleSelectorReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setRuleSelector", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setRuleSelector", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetRuleSelector", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetRuleSelector(ctx context.Context, args *SetRuleSelectorArgs) (reply *SetRuleSelectorReply, err error) {
reply = new(SetRuleSelectorReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setRuleSelector", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setRuleSelector", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetRuleSelector", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetRuleSelector",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetRuleSelectorArgs",
")",
"(",
"reply",
"*",
"SetRuleSelectorReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetRuleSelectorReply",
")",
"\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",
"}"
] |
// SetRuleSelector invokes the CSS method. Modifies the rule selector.
|
[
"SetRuleSelector",
"invokes",
"the",
"CSS",
"method",
".",
"Modifies",
"the",
"rule",
"selector",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L262-L273
|
19,119
|
mafredri/cdp
|
protocol/css/domain.go
|
SetStyleSheetText
|
func (d *domainClient) SetStyleSheetText(ctx context.Context, args *SetStyleSheetTextArgs) (reply *SetStyleSheetTextReply, err error) {
reply = new(SetStyleSheetTextReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setStyleSheetText", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setStyleSheetText", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetStyleSheetText", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetStyleSheetText(ctx context.Context, args *SetStyleSheetTextArgs) (reply *SetStyleSheetTextReply, err error) {
reply = new(SetStyleSheetTextReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setStyleSheetText", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setStyleSheetText", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetStyleSheetText", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetStyleSheetText",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetStyleSheetTextArgs",
")",
"(",
"reply",
"*",
"SetStyleSheetTextReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetStyleSheetTextReply",
")",
"\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",
"}"
] |
// SetStyleSheetText invokes the CSS method. Sets the new stylesheet text.
|
[
"SetStyleSheetText",
"invokes",
"the",
"CSS",
"method",
".",
"Sets",
"the",
"new",
"stylesheet",
"text",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L276-L287
|
19,120
|
mafredri/cdp
|
protocol/css/domain.go
|
SetStyleTexts
|
func (d *domainClient) SetStyleTexts(ctx context.Context, args *SetStyleTextsArgs) (reply *SetStyleTextsReply, err error) {
reply = new(SetStyleTextsReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setStyleTexts", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setStyleTexts", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetStyleTexts", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetStyleTexts(ctx context.Context, args *SetStyleTextsArgs) (reply *SetStyleTextsReply, err error) {
reply = new(SetStyleTextsReply)
if args != nil {
err = rpcc.Invoke(ctx, "CSS.setStyleTexts", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "CSS.setStyleTexts", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "CSS", Op: "SetStyleTexts", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetStyleTexts",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetStyleTextsArgs",
")",
"(",
"reply",
"*",
"SetStyleTextsReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetStyleTextsReply",
")",
"\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",
"}"
] |
// SetStyleTexts invokes the CSS method. Applies specified style edits one
// after another in the given order.
|
[
"SetStyleTexts",
"invokes",
"the",
"CSS",
"method",
".",
"Applies",
"specified",
"style",
"edits",
"one",
"after",
"another",
"in",
"the",
"given",
"order",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/css/domain.go#L291-L302
|
19,121
|
mafredri/cdp
|
protocol/performance/command.go
|
NewSetTimeDomainArgs
|
func NewSetTimeDomainArgs(timeDomain string) *SetTimeDomainArgs {
args := new(SetTimeDomainArgs)
args.TimeDomain = timeDomain
return args
}
|
go
|
func NewSetTimeDomainArgs(timeDomain string) *SetTimeDomainArgs {
args := new(SetTimeDomainArgs)
args.TimeDomain = timeDomain
return args
}
|
[
"func",
"NewSetTimeDomainArgs",
"(",
"timeDomain",
"string",
")",
"*",
"SetTimeDomainArgs",
"{",
"args",
":=",
"new",
"(",
"SetTimeDomainArgs",
")",
"\n",
"args",
".",
"TimeDomain",
"=",
"timeDomain",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetTimeDomainArgs initializes SetTimeDomainArgs with the required arguments.
|
[
"NewSetTimeDomainArgs",
"initializes",
"SetTimeDomainArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/performance/command.go#L14-L18
|
19,122
|
mafredri/cdp
|
protocol/storage/domain.go
|
GetUsageAndQuota
|
func (d *domainClient) GetUsageAndQuota(ctx context.Context, args *GetUsageAndQuotaArgs) (reply *GetUsageAndQuotaReply, err error) {
reply = new(GetUsageAndQuotaReply)
if args != nil {
err = rpcc.Invoke(ctx, "Storage.getUsageAndQuota", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Storage.getUsageAndQuota", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Storage", Op: "GetUsageAndQuota", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetUsageAndQuota(ctx context.Context, args *GetUsageAndQuotaArgs) (reply *GetUsageAndQuotaReply, err error) {
reply = new(GetUsageAndQuotaReply)
if args != nil {
err = rpcc.Invoke(ctx, "Storage.getUsageAndQuota", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Storage.getUsageAndQuota", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Storage", Op: "GetUsageAndQuota", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetUsageAndQuota",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetUsageAndQuotaArgs",
")",
"(",
"reply",
"*",
"GetUsageAndQuotaReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetUsageAndQuotaReply",
")",
"\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",
"}"
] |
// GetUsageAndQuota invokes the Storage method. Returns usage and quota in
// bytes.
|
[
"GetUsageAndQuota",
"invokes",
"the",
"Storage",
"method",
".",
"Returns",
"usage",
"and",
"quota",
"in",
"bytes",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/storage/domain.go#L36-L47
|
19,123
|
mafredri/cdp
|
cdp_client.go
|
NewClient
|
func NewClient(conn *rpcc.Conn) *Client {
return &Client{
Accessibility: accessibility.NewClient(conn),
Animation: animation.NewClient(conn),
ApplicationCache: applicationcache.NewClient(conn),
Audits: audits.NewClient(conn),
BackgroundService: backgroundservice.NewClient(conn),
Browser: browser.NewClient(conn),
CSS: css.NewClient(conn),
CacheStorage: cachestorage.NewClient(conn),
Cast: cast.NewClient(conn),
Console: console.NewClient(conn),
DOM: dom.NewClient(conn),
DOMDebugger: domdebugger.NewClient(conn),
DOMSnapshot: domsnapshot.NewClient(conn),
DOMStorage: domstorage.NewClient(conn),
Database: database.NewClient(conn),
Debugger: debugger.NewClient(conn),
DeviceOrientation: deviceorientation.NewClient(conn),
Emulation: emulation.NewClient(conn),
Fetch: fetch.NewClient(conn),
HeadlessExperimental: headlessexperimental.NewClient(conn),
HeapProfiler: heapprofiler.NewClient(conn),
IO: io.NewClient(conn),
IndexedDB: indexeddb.NewClient(conn),
Input: input.NewClient(conn),
Inspector: inspector.NewClient(conn),
LayerTree: layertree.NewClient(conn),
Log: log.NewClient(conn),
Memory: memory.NewClient(conn),
Network: network.NewClient(conn),
Overlay: overlay.NewClient(conn),
Page: page.NewClient(conn),
Performance: performance.NewClient(conn),
Profiler: profiler.NewClient(conn),
Runtime: runtime.NewClient(conn),
Schema: schema.NewClient(conn),
Security: security.NewClient(conn),
ServiceWorker: serviceworker.NewClient(conn),
Storage: storage.NewClient(conn),
SystemInfo: systeminfo.NewClient(conn),
Target: target.NewClient(conn),
Tethering: tethering.NewClient(conn),
Tracing: tracing.NewClient(conn),
}
}
|
go
|
func NewClient(conn *rpcc.Conn) *Client {
return &Client{
Accessibility: accessibility.NewClient(conn),
Animation: animation.NewClient(conn),
ApplicationCache: applicationcache.NewClient(conn),
Audits: audits.NewClient(conn),
BackgroundService: backgroundservice.NewClient(conn),
Browser: browser.NewClient(conn),
CSS: css.NewClient(conn),
CacheStorage: cachestorage.NewClient(conn),
Cast: cast.NewClient(conn),
Console: console.NewClient(conn),
DOM: dom.NewClient(conn),
DOMDebugger: domdebugger.NewClient(conn),
DOMSnapshot: domsnapshot.NewClient(conn),
DOMStorage: domstorage.NewClient(conn),
Database: database.NewClient(conn),
Debugger: debugger.NewClient(conn),
DeviceOrientation: deviceorientation.NewClient(conn),
Emulation: emulation.NewClient(conn),
Fetch: fetch.NewClient(conn),
HeadlessExperimental: headlessexperimental.NewClient(conn),
HeapProfiler: heapprofiler.NewClient(conn),
IO: io.NewClient(conn),
IndexedDB: indexeddb.NewClient(conn),
Input: input.NewClient(conn),
Inspector: inspector.NewClient(conn),
LayerTree: layertree.NewClient(conn),
Log: log.NewClient(conn),
Memory: memory.NewClient(conn),
Network: network.NewClient(conn),
Overlay: overlay.NewClient(conn),
Page: page.NewClient(conn),
Performance: performance.NewClient(conn),
Profiler: profiler.NewClient(conn),
Runtime: runtime.NewClient(conn),
Schema: schema.NewClient(conn),
Security: security.NewClient(conn),
ServiceWorker: serviceworker.NewClient(conn),
Storage: storage.NewClient(conn),
SystemInfo: systeminfo.NewClient(conn),
Target: target.NewClient(conn),
Tethering: tethering.NewClient(conn),
Tracing: tracing.NewClient(conn),
}
}
|
[
"func",
"NewClient",
"(",
"conn",
"*",
"rpcc",
".",
"Conn",
")",
"*",
"Client",
"{",
"return",
"&",
"Client",
"{",
"Accessibility",
":",
"accessibility",
".",
"NewClient",
"(",
"conn",
")",
",",
"Animation",
":",
"animation",
".",
"NewClient",
"(",
"conn",
")",
",",
"ApplicationCache",
":",
"applicationcache",
".",
"NewClient",
"(",
"conn",
")",
",",
"Audits",
":",
"audits",
".",
"NewClient",
"(",
"conn",
")",
",",
"BackgroundService",
":",
"backgroundservice",
".",
"NewClient",
"(",
"conn",
")",
",",
"Browser",
":",
"browser",
".",
"NewClient",
"(",
"conn",
")",
",",
"CSS",
":",
"css",
".",
"NewClient",
"(",
"conn",
")",
",",
"CacheStorage",
":",
"cachestorage",
".",
"NewClient",
"(",
"conn",
")",
",",
"Cast",
":",
"cast",
".",
"NewClient",
"(",
"conn",
")",
",",
"Console",
":",
"console",
".",
"NewClient",
"(",
"conn",
")",
",",
"DOM",
":",
"dom",
".",
"NewClient",
"(",
"conn",
")",
",",
"DOMDebugger",
":",
"domdebugger",
".",
"NewClient",
"(",
"conn",
")",
",",
"DOMSnapshot",
":",
"domsnapshot",
".",
"NewClient",
"(",
"conn",
")",
",",
"DOMStorage",
":",
"domstorage",
".",
"NewClient",
"(",
"conn",
")",
",",
"Database",
":",
"database",
".",
"NewClient",
"(",
"conn",
")",
",",
"Debugger",
":",
"debugger",
".",
"NewClient",
"(",
"conn",
")",
",",
"DeviceOrientation",
":",
"deviceorientation",
".",
"NewClient",
"(",
"conn",
")",
",",
"Emulation",
":",
"emulation",
".",
"NewClient",
"(",
"conn",
")",
",",
"Fetch",
":",
"fetch",
".",
"NewClient",
"(",
"conn",
")",
",",
"HeadlessExperimental",
":",
"headlessexperimental",
".",
"NewClient",
"(",
"conn",
")",
",",
"HeapProfiler",
":",
"heapprofiler",
".",
"NewClient",
"(",
"conn",
")",
",",
"IO",
":",
"io",
".",
"NewClient",
"(",
"conn",
")",
",",
"IndexedDB",
":",
"indexeddb",
".",
"NewClient",
"(",
"conn",
")",
",",
"Input",
":",
"input",
".",
"NewClient",
"(",
"conn",
")",
",",
"Inspector",
":",
"inspector",
".",
"NewClient",
"(",
"conn",
")",
",",
"LayerTree",
":",
"layertree",
".",
"NewClient",
"(",
"conn",
")",
",",
"Log",
":",
"log",
".",
"NewClient",
"(",
"conn",
")",
",",
"Memory",
":",
"memory",
".",
"NewClient",
"(",
"conn",
")",
",",
"Network",
":",
"network",
".",
"NewClient",
"(",
"conn",
")",
",",
"Overlay",
":",
"overlay",
".",
"NewClient",
"(",
"conn",
")",
",",
"Page",
":",
"page",
".",
"NewClient",
"(",
"conn",
")",
",",
"Performance",
":",
"performance",
".",
"NewClient",
"(",
"conn",
")",
",",
"Profiler",
":",
"profiler",
".",
"NewClient",
"(",
"conn",
")",
",",
"Runtime",
":",
"runtime",
".",
"NewClient",
"(",
"conn",
")",
",",
"Schema",
":",
"schema",
".",
"NewClient",
"(",
"conn",
")",
",",
"Security",
":",
"security",
".",
"NewClient",
"(",
"conn",
")",
",",
"ServiceWorker",
":",
"serviceworker",
".",
"NewClient",
"(",
"conn",
")",
",",
"Storage",
":",
"storage",
".",
"NewClient",
"(",
"conn",
")",
",",
"SystemInfo",
":",
"systeminfo",
".",
"NewClient",
"(",
"conn",
")",
",",
"Target",
":",
"target",
".",
"NewClient",
"(",
"conn",
")",
",",
"Tethering",
":",
"tethering",
".",
"NewClient",
"(",
"conn",
")",
",",
"Tracing",
":",
"tracing",
".",
"NewClient",
"(",
"conn",
")",
",",
"}",
"\n",
"}"
] |
// NewClient returns a new Client that uses conn
// for communication with the debugging target.
|
[
"NewClient",
"returns",
"a",
"new",
"Client",
"that",
"uses",
"conn",
"for",
"communication",
"with",
"the",
"debugging",
"target",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/cdp_client.go#L101-L146
|
19,124
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewHighlightFrameArgs
|
func NewHighlightFrameArgs(frameID page.FrameID) *HighlightFrameArgs {
args := new(HighlightFrameArgs)
args.FrameID = frameID
return args
}
|
go
|
func NewHighlightFrameArgs(frameID page.FrameID) *HighlightFrameArgs {
args := new(HighlightFrameArgs)
args.FrameID = frameID
return args
}
|
[
"func",
"NewHighlightFrameArgs",
"(",
"frameID",
"page",
".",
"FrameID",
")",
"*",
"HighlightFrameArgs",
"{",
"args",
":=",
"new",
"(",
"HighlightFrameArgs",
")",
"\n",
"args",
".",
"FrameID",
"=",
"frameID",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewHighlightFrameArgs initializes HighlightFrameArgs with the required arguments.
|
[
"NewHighlightFrameArgs",
"initializes",
"HighlightFrameArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L38-L42
|
19,125
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewHighlightNodeArgs
|
func NewHighlightNodeArgs(highlightConfig HighlightConfig) *HighlightNodeArgs {
args := new(HighlightNodeArgs)
args.HighlightConfig = highlightConfig
return args
}
|
go
|
func NewHighlightNodeArgs(highlightConfig HighlightConfig) *HighlightNodeArgs {
args := new(HighlightNodeArgs)
args.HighlightConfig = highlightConfig
return args
}
|
[
"func",
"NewHighlightNodeArgs",
"(",
"highlightConfig",
"HighlightConfig",
")",
"*",
"HighlightNodeArgs",
"{",
"args",
":=",
"new",
"(",
"HighlightNodeArgs",
")",
"\n",
"args",
".",
"HighlightConfig",
"=",
"highlightConfig",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewHighlightNodeArgs initializes HighlightNodeArgs with the required arguments.
|
[
"NewHighlightNodeArgs",
"initializes",
"HighlightNodeArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L68-L72
|
19,126
|
mafredri/cdp
|
protocol/overlay/command.go
|
SetNodeID
|
func (a *HighlightNodeArgs) SetNodeID(nodeID dom.NodeID) *HighlightNodeArgs {
a.NodeID = &nodeID
return a
}
|
go
|
func (a *HighlightNodeArgs) SetNodeID(nodeID dom.NodeID) *HighlightNodeArgs {
a.NodeID = &nodeID
return a
}
|
[
"func",
"(",
"a",
"*",
"HighlightNodeArgs",
")",
"SetNodeID",
"(",
"nodeID",
"dom",
".",
"NodeID",
")",
"*",
"HighlightNodeArgs",
"{",
"a",
".",
"NodeID",
"=",
"&",
"nodeID",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetNodeID sets the NodeID optional argument. Identifier of the node
// to highlight.
|
[
"SetNodeID",
"sets",
"the",
"NodeID",
"optional",
"argument",
".",
"Identifier",
"of",
"the",
"node",
"to",
"highlight",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L76-L79
|
19,127
|
mafredri/cdp
|
protocol/overlay/command.go
|
SetBackendNodeID
|
func (a *HighlightNodeArgs) SetBackendNodeID(backendNodeID dom.BackendNodeID) *HighlightNodeArgs {
a.BackendNodeID = &backendNodeID
return a
}
|
go
|
func (a *HighlightNodeArgs) SetBackendNodeID(backendNodeID dom.BackendNodeID) *HighlightNodeArgs {
a.BackendNodeID = &backendNodeID
return a
}
|
[
"func",
"(",
"a",
"*",
"HighlightNodeArgs",
")",
"SetBackendNodeID",
"(",
"backendNodeID",
"dom",
".",
"BackendNodeID",
")",
"*",
"HighlightNodeArgs",
"{",
"a",
".",
"BackendNodeID",
"=",
"&",
"backendNodeID",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetBackendNodeID sets the BackendNodeID optional argument.
// Identifier of the backend node to highlight.
|
[
"SetBackendNodeID",
"sets",
"the",
"BackendNodeID",
"optional",
"argument",
".",
"Identifier",
"of",
"the",
"backend",
"node",
"to",
"highlight",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L83-L86
|
19,128
|
mafredri/cdp
|
protocol/overlay/command.go
|
SetObjectID
|
func (a *HighlightNodeArgs) SetObjectID(objectID runtime.RemoteObjectID) *HighlightNodeArgs {
a.ObjectID = &objectID
return a
}
|
go
|
func (a *HighlightNodeArgs) SetObjectID(objectID runtime.RemoteObjectID) *HighlightNodeArgs {
a.ObjectID = &objectID
return a
}
|
[
"func",
"(",
"a",
"*",
"HighlightNodeArgs",
")",
"SetObjectID",
"(",
"objectID",
"runtime",
".",
"RemoteObjectID",
")",
"*",
"HighlightNodeArgs",
"{",
"a",
".",
"ObjectID",
"=",
"&",
"objectID",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetObjectID sets the ObjectID optional argument. JavaScript object
// id of the node to be highlighted.
|
[
"SetObjectID",
"sets",
"the",
"ObjectID",
"optional",
"argument",
".",
"JavaScript",
"object",
"id",
"of",
"the",
"node",
"to",
"be",
"highlighted",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L90-L93
|
19,129
|
mafredri/cdp
|
protocol/overlay/command.go
|
SetSelector
|
func (a *HighlightNodeArgs) SetSelector(selector string) *HighlightNodeArgs {
a.Selector = &selector
return a
}
|
go
|
func (a *HighlightNodeArgs) SetSelector(selector string) *HighlightNodeArgs {
a.Selector = &selector
return a
}
|
[
"func",
"(",
"a",
"*",
"HighlightNodeArgs",
")",
"SetSelector",
"(",
"selector",
"string",
")",
"*",
"HighlightNodeArgs",
"{",
"a",
".",
"Selector",
"=",
"&",
"selector",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetSelector sets the Selector optional argument. Selectors to
// highlight relevant nodes.
|
[
"SetSelector",
"sets",
"the",
"Selector",
"optional",
"argument",
".",
"Selectors",
"to",
"highlight",
"relevant",
"nodes",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L97-L100
|
19,130
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewHighlightQuadArgs
|
func NewHighlightQuadArgs(quad dom.Quad) *HighlightQuadArgs {
args := new(HighlightQuadArgs)
args.Quad = quad
return args
}
|
go
|
func NewHighlightQuadArgs(quad dom.Quad) *HighlightQuadArgs {
args := new(HighlightQuadArgs)
args.Quad = quad
return args
}
|
[
"func",
"NewHighlightQuadArgs",
"(",
"quad",
"dom",
".",
"Quad",
")",
"*",
"HighlightQuadArgs",
"{",
"args",
":=",
"new",
"(",
"HighlightQuadArgs",
")",
"\n",
"args",
".",
"Quad",
"=",
"quad",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewHighlightQuadArgs initializes HighlightQuadArgs with the required arguments.
|
[
"NewHighlightQuadArgs",
"initializes",
"HighlightQuadArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L110-L114
|
19,131
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewHighlightRectArgs
|
func NewHighlightRectArgs(x int, y int, width int, height int) *HighlightRectArgs {
args := new(HighlightRectArgs)
args.X = x
args.Y = y
args.Width = width
args.Height = height
return args
}
|
go
|
func NewHighlightRectArgs(x int, y int, width int, height int) *HighlightRectArgs {
args := new(HighlightRectArgs)
args.X = x
args.Y = y
args.Width = width
args.Height = height
return args
}
|
[
"func",
"NewHighlightRectArgs",
"(",
"x",
"int",
",",
"y",
"int",
",",
"width",
"int",
",",
"height",
"int",
")",
"*",
"HighlightRectArgs",
"{",
"args",
":=",
"new",
"(",
"HighlightRectArgs",
")",
"\n",
"args",
".",
"X",
"=",
"x",
"\n",
"args",
".",
"Y",
"=",
"y",
"\n",
"args",
".",
"Width",
"=",
"width",
"\n",
"args",
".",
"Height",
"=",
"height",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewHighlightRectArgs initializes HighlightRectArgs with the required arguments.
|
[
"NewHighlightRectArgs",
"initializes",
"HighlightRectArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L141-L148
|
19,132
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewSetInspectModeArgs
|
func NewSetInspectModeArgs(mode InspectMode) *SetInspectModeArgs {
args := new(SetInspectModeArgs)
args.Mode = mode
return args
}
|
go
|
func NewSetInspectModeArgs(mode InspectMode) *SetInspectModeArgs {
args := new(SetInspectModeArgs)
args.Mode = mode
return args
}
|
[
"func",
"NewSetInspectModeArgs",
"(",
"mode",
"InspectMode",
")",
"*",
"SetInspectModeArgs",
"{",
"args",
":=",
"new",
"(",
"SetInspectModeArgs",
")",
"\n",
"args",
".",
"Mode",
"=",
"mode",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetInspectModeArgs initializes SetInspectModeArgs with the required arguments.
|
[
"NewSetInspectModeArgs",
"initializes",
"SetInspectModeArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L171-L175
|
19,133
|
mafredri/cdp
|
protocol/overlay/command.go
|
SetHighlightConfig
|
func (a *SetInspectModeArgs) SetHighlightConfig(highlightConfig HighlightConfig) *SetInspectModeArgs {
a.HighlightConfig = &highlightConfig
return a
}
|
go
|
func (a *SetInspectModeArgs) SetHighlightConfig(highlightConfig HighlightConfig) *SetInspectModeArgs {
a.HighlightConfig = &highlightConfig
return a
}
|
[
"func",
"(",
"a",
"*",
"SetInspectModeArgs",
")",
"SetHighlightConfig",
"(",
"highlightConfig",
"HighlightConfig",
")",
"*",
"SetInspectModeArgs",
"{",
"a",
".",
"HighlightConfig",
"=",
"&",
"highlightConfig",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetHighlightConfig sets the HighlightConfig optional argument. A
// descriptor for the highlight appearance of hovered-over nodes. May
// be omitted if `enabled == false`.
|
[
"SetHighlightConfig",
"sets",
"the",
"HighlightConfig",
"optional",
"argument",
".",
"A",
"descriptor",
"for",
"the",
"highlight",
"appearance",
"of",
"hovered",
"-",
"over",
"nodes",
".",
"May",
"be",
"omitted",
"if",
"enabled",
"==",
"false",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L180-L183
|
19,134
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewSetShowAdHighlightsArgs
|
func NewSetShowAdHighlightsArgs(show bool) *SetShowAdHighlightsArgs {
args := new(SetShowAdHighlightsArgs)
args.Show = show
return args
}
|
go
|
func NewSetShowAdHighlightsArgs(show bool) *SetShowAdHighlightsArgs {
args := new(SetShowAdHighlightsArgs)
args.Show = show
return args
}
|
[
"func",
"NewSetShowAdHighlightsArgs",
"(",
"show",
"bool",
")",
"*",
"SetShowAdHighlightsArgs",
"{",
"args",
":=",
"new",
"(",
"SetShowAdHighlightsArgs",
")",
"\n",
"args",
".",
"Show",
"=",
"show",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetShowAdHighlightsArgs initializes SetShowAdHighlightsArgs with the required arguments.
|
[
"NewSetShowAdHighlightsArgs",
"initializes",
"SetShowAdHighlightsArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L191-L195
|
19,135
|
mafredri/cdp
|
protocol/overlay/command.go
|
SetMessage
|
func (a *SetPausedInDebuggerMessageArgs) SetMessage(message string) *SetPausedInDebuggerMessageArgs {
a.Message = &message
return a
}
|
go
|
func (a *SetPausedInDebuggerMessageArgs) SetMessage(message string) *SetPausedInDebuggerMessageArgs {
a.Message = &message
return a
}
|
[
"func",
"(",
"a",
"*",
"SetPausedInDebuggerMessageArgs",
")",
"SetMessage",
"(",
"message",
"string",
")",
"*",
"SetPausedInDebuggerMessageArgs",
"{",
"a",
".",
"Message",
"=",
"&",
"message",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetMessage sets the Message optional argument. The message to
// display, also triggers resume and step over controls.
|
[
"SetMessage",
"sets",
"the",
"Message",
"optional",
"argument",
".",
"The",
"message",
"to",
"display",
"also",
"triggers",
"resume",
"and",
"step",
"over",
"controls",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L211-L214
|
19,136
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewSetShowDebugBordersArgs
|
func NewSetShowDebugBordersArgs(show bool) *SetShowDebugBordersArgs {
args := new(SetShowDebugBordersArgs)
args.Show = show
return args
}
|
go
|
func NewSetShowDebugBordersArgs(show bool) *SetShowDebugBordersArgs {
args := new(SetShowDebugBordersArgs)
args.Show = show
return args
}
|
[
"func",
"NewSetShowDebugBordersArgs",
"(",
"show",
"bool",
")",
"*",
"SetShowDebugBordersArgs",
"{",
"args",
":=",
"new",
"(",
"SetShowDebugBordersArgs",
")",
"\n",
"args",
".",
"Show",
"=",
"show",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetShowDebugBordersArgs initializes SetShowDebugBordersArgs with the required arguments.
|
[
"NewSetShowDebugBordersArgs",
"initializes",
"SetShowDebugBordersArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L222-L226
|
19,137
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewSetShowFPSCounterArgs
|
func NewSetShowFPSCounterArgs(show bool) *SetShowFPSCounterArgs {
args := new(SetShowFPSCounterArgs)
args.Show = show
return args
}
|
go
|
func NewSetShowFPSCounterArgs(show bool) *SetShowFPSCounterArgs {
args := new(SetShowFPSCounterArgs)
args.Show = show
return args
}
|
[
"func",
"NewSetShowFPSCounterArgs",
"(",
"show",
"bool",
")",
"*",
"SetShowFPSCounterArgs",
"{",
"args",
":=",
"new",
"(",
"SetShowFPSCounterArgs",
")",
"\n",
"args",
".",
"Show",
"=",
"show",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetShowFPSCounterArgs initializes SetShowFPSCounterArgs with the required arguments.
|
[
"NewSetShowFPSCounterArgs",
"initializes",
"SetShowFPSCounterArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L234-L238
|
19,138
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewSetShowPaintRectsArgs
|
func NewSetShowPaintRectsArgs(result bool) *SetShowPaintRectsArgs {
args := new(SetShowPaintRectsArgs)
args.Result = result
return args
}
|
go
|
func NewSetShowPaintRectsArgs(result bool) *SetShowPaintRectsArgs {
args := new(SetShowPaintRectsArgs)
args.Result = result
return args
}
|
[
"func",
"NewSetShowPaintRectsArgs",
"(",
"result",
"bool",
")",
"*",
"SetShowPaintRectsArgs",
"{",
"args",
":=",
"new",
"(",
"SetShowPaintRectsArgs",
")",
"\n",
"args",
".",
"Result",
"=",
"result",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetShowPaintRectsArgs initializes SetShowPaintRectsArgs with the required arguments.
|
[
"NewSetShowPaintRectsArgs",
"initializes",
"SetShowPaintRectsArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L246-L250
|
19,139
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewSetShowScrollBottleneckRectsArgs
|
func NewSetShowScrollBottleneckRectsArgs(show bool) *SetShowScrollBottleneckRectsArgs {
args := new(SetShowScrollBottleneckRectsArgs)
args.Show = show
return args
}
|
go
|
func NewSetShowScrollBottleneckRectsArgs(show bool) *SetShowScrollBottleneckRectsArgs {
args := new(SetShowScrollBottleneckRectsArgs)
args.Show = show
return args
}
|
[
"func",
"NewSetShowScrollBottleneckRectsArgs",
"(",
"show",
"bool",
")",
"*",
"SetShowScrollBottleneckRectsArgs",
"{",
"args",
":=",
"new",
"(",
"SetShowScrollBottleneckRectsArgs",
")",
"\n",
"args",
".",
"Show",
"=",
"show",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetShowScrollBottleneckRectsArgs initializes SetShowScrollBottleneckRectsArgs with the required arguments.
|
[
"NewSetShowScrollBottleneckRectsArgs",
"initializes",
"SetShowScrollBottleneckRectsArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L258-L262
|
19,140
|
mafredri/cdp
|
protocol/overlay/command.go
|
NewSetShowViewportSizeOnResizeArgs
|
func NewSetShowViewportSizeOnResizeArgs(show bool) *SetShowViewportSizeOnResizeArgs {
args := new(SetShowViewportSizeOnResizeArgs)
args.Show = show
return args
}
|
go
|
func NewSetShowViewportSizeOnResizeArgs(show bool) *SetShowViewportSizeOnResizeArgs {
args := new(SetShowViewportSizeOnResizeArgs)
args.Show = show
return args
}
|
[
"func",
"NewSetShowViewportSizeOnResizeArgs",
"(",
"show",
"bool",
")",
"*",
"SetShowViewportSizeOnResizeArgs",
"{",
"args",
":=",
"new",
"(",
"SetShowViewportSizeOnResizeArgs",
")",
"\n",
"args",
".",
"Show",
"=",
"show",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetShowViewportSizeOnResizeArgs initializes SetShowViewportSizeOnResizeArgs with the required arguments.
|
[
"NewSetShowViewportSizeOnResizeArgs",
"initializes",
"SetShowViewportSizeOnResizeArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/overlay/command.go#L282-L286
|
19,141
|
mafredri/cdp
|
protocol/cachestorage/command.go
|
NewDeleteCacheArgs
|
func NewDeleteCacheArgs(cacheID CacheID) *DeleteCacheArgs {
args := new(DeleteCacheArgs)
args.CacheID = cacheID
return args
}
|
go
|
func NewDeleteCacheArgs(cacheID CacheID) *DeleteCacheArgs {
args := new(DeleteCacheArgs)
args.CacheID = cacheID
return args
}
|
[
"func",
"NewDeleteCacheArgs",
"(",
"cacheID",
"CacheID",
")",
"*",
"DeleteCacheArgs",
"{",
"args",
":=",
"new",
"(",
"DeleteCacheArgs",
")",
"\n",
"args",
".",
"CacheID",
"=",
"cacheID",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewDeleteCacheArgs initializes DeleteCacheArgs with the required arguments.
|
[
"NewDeleteCacheArgs",
"initializes",
"DeleteCacheArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/cachestorage/command.go#L11-L15
|
19,142
|
mafredri/cdp
|
protocol/cachestorage/command.go
|
NewDeleteEntryArgs
|
func NewDeleteEntryArgs(cacheID CacheID, request string) *DeleteEntryArgs {
args := new(DeleteEntryArgs)
args.CacheID = cacheID
args.Request = request
return args
}
|
go
|
func NewDeleteEntryArgs(cacheID CacheID, request string) *DeleteEntryArgs {
args := new(DeleteEntryArgs)
args.CacheID = cacheID
args.Request = request
return args
}
|
[
"func",
"NewDeleteEntryArgs",
"(",
"cacheID",
"CacheID",
",",
"request",
"string",
")",
"*",
"DeleteEntryArgs",
"{",
"args",
":=",
"new",
"(",
"DeleteEntryArgs",
")",
"\n",
"args",
".",
"CacheID",
"=",
"cacheID",
"\n",
"args",
".",
"Request",
"=",
"request",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewDeleteEntryArgs initializes DeleteEntryArgs with the required arguments.
|
[
"NewDeleteEntryArgs",
"initializes",
"DeleteEntryArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/cachestorage/command.go#L24-L29
|
19,143
|
mafredri/cdp
|
protocol/cachestorage/command.go
|
NewRequestCacheNamesArgs
|
func NewRequestCacheNamesArgs(securityOrigin string) *RequestCacheNamesArgs {
args := new(RequestCacheNamesArgs)
args.SecurityOrigin = securityOrigin
return args
}
|
go
|
func NewRequestCacheNamesArgs(securityOrigin string) *RequestCacheNamesArgs {
args := new(RequestCacheNamesArgs)
args.SecurityOrigin = securityOrigin
return args
}
|
[
"func",
"NewRequestCacheNamesArgs",
"(",
"securityOrigin",
"string",
")",
"*",
"RequestCacheNamesArgs",
"{",
"args",
":=",
"new",
"(",
"RequestCacheNamesArgs",
")",
"\n",
"args",
".",
"SecurityOrigin",
"=",
"securityOrigin",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewRequestCacheNamesArgs initializes RequestCacheNamesArgs with the required arguments.
|
[
"NewRequestCacheNamesArgs",
"initializes",
"RequestCacheNamesArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/cachestorage/command.go#L37-L41
|
19,144
|
mafredri/cdp
|
protocol/cachestorage/command.go
|
NewRequestCachedResponseArgs
|
func NewRequestCachedResponseArgs(cacheID CacheID, requestURL string, requestHeaders []Header) *RequestCachedResponseArgs {
args := new(RequestCachedResponseArgs)
args.CacheID = cacheID
args.RequestURL = requestURL
args.RequestHeaders = requestHeaders
return args
}
|
go
|
func NewRequestCachedResponseArgs(cacheID CacheID, requestURL string, requestHeaders []Header) *RequestCachedResponseArgs {
args := new(RequestCachedResponseArgs)
args.CacheID = cacheID
args.RequestURL = requestURL
args.RequestHeaders = requestHeaders
return args
}
|
[
"func",
"NewRequestCachedResponseArgs",
"(",
"cacheID",
"CacheID",
",",
"requestURL",
"string",
",",
"requestHeaders",
"[",
"]",
"Header",
")",
"*",
"RequestCachedResponseArgs",
"{",
"args",
":=",
"new",
"(",
"RequestCachedResponseArgs",
")",
"\n",
"args",
".",
"CacheID",
"=",
"cacheID",
"\n",
"args",
".",
"RequestURL",
"=",
"requestURL",
"\n",
"args",
".",
"RequestHeaders",
"=",
"requestHeaders",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewRequestCachedResponseArgs initializes RequestCachedResponseArgs with the required arguments.
|
[
"NewRequestCachedResponseArgs",
"initializes",
"RequestCachedResponseArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/cachestorage/command.go#L56-L62
|
19,145
|
mafredri/cdp
|
protocol/cachestorage/command.go
|
NewRequestEntriesArgs
|
func NewRequestEntriesArgs(cacheID CacheID, skipCount int, pageSize int) *RequestEntriesArgs {
args := new(RequestEntriesArgs)
args.CacheID = cacheID
args.SkipCount = skipCount
args.PageSize = pageSize
return args
}
|
go
|
func NewRequestEntriesArgs(cacheID CacheID, skipCount int, pageSize int) *RequestEntriesArgs {
args := new(RequestEntriesArgs)
args.CacheID = cacheID
args.SkipCount = skipCount
args.PageSize = pageSize
return args
}
|
[
"func",
"NewRequestEntriesArgs",
"(",
"cacheID",
"CacheID",
",",
"skipCount",
"int",
",",
"pageSize",
"int",
")",
"*",
"RequestEntriesArgs",
"{",
"args",
":=",
"new",
"(",
"RequestEntriesArgs",
")",
"\n",
"args",
".",
"CacheID",
"=",
"cacheID",
"\n",
"args",
".",
"SkipCount",
"=",
"skipCount",
"\n",
"args",
".",
"PageSize",
"=",
"pageSize",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewRequestEntriesArgs initializes RequestEntriesArgs with the required arguments.
|
[
"NewRequestEntriesArgs",
"initializes",
"RequestEntriesArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/cachestorage/command.go#L78-L84
|
19,146
|
mafredri/cdp
|
protocol/cachestorage/command.go
|
SetPathFilter
|
func (a *RequestEntriesArgs) SetPathFilter(pathFilter string) *RequestEntriesArgs {
a.PathFilter = &pathFilter
return a
}
|
go
|
func (a *RequestEntriesArgs) SetPathFilter(pathFilter string) *RequestEntriesArgs {
a.PathFilter = &pathFilter
return a
}
|
[
"func",
"(",
"a",
"*",
"RequestEntriesArgs",
")",
"SetPathFilter",
"(",
"pathFilter",
"string",
")",
"*",
"RequestEntriesArgs",
"{",
"a",
".",
"PathFilter",
"=",
"&",
"pathFilter",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetPathFilter sets the PathFilter optional argument. If present,
// only return the entries containing this substring in the path
|
[
"SetPathFilter",
"sets",
"the",
"PathFilter",
"optional",
"argument",
".",
"If",
"present",
"only",
"return",
"the",
"entries",
"containing",
"this",
"substring",
"in",
"the",
"path"
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/cachestorage/command.go#L88-L91
|
19,147
|
mafredri/cdp
|
protocol/network/domain.go
|
GetCertificate
|
func (d *domainClient) GetCertificate(ctx context.Context, args *GetCertificateArgs) (reply *GetCertificateReply, err error) {
reply = new(GetCertificateReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.getCertificate", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.getCertificate", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "GetCertificate", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetCertificate(ctx context.Context, args *GetCertificateArgs) (reply *GetCertificateReply, err error) {
reply = new(GetCertificateReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.getCertificate", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.getCertificate", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "GetCertificate", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetCertificate",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetCertificateArgs",
")",
"(",
"reply",
"*",
"GetCertificateReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetCertificateReply",
")",
"\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",
"}"
] |
// GetCertificate invokes the Network method. Returns the DER-encoded
// certificate.
|
[
"GetCertificate",
"invokes",
"the",
"Network",
"method",
".",
"Returns",
"the",
"DER",
"-",
"encoded",
"certificate",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/domain.go#L162-L173
|
19,148
|
mafredri/cdp
|
protocol/network/domain.go
|
GetCookies
|
func (d *domainClient) GetCookies(ctx context.Context, args *GetCookiesArgs) (reply *GetCookiesReply, err error) {
reply = new(GetCookiesReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.getCookies", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.getCookies", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "GetCookies", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetCookies(ctx context.Context, args *GetCookiesArgs) (reply *GetCookiesReply, err error) {
reply = new(GetCookiesReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.getCookies", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.getCookies", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "GetCookies", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetCookies",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetCookiesArgs",
")",
"(",
"reply",
"*",
"GetCookiesReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetCookiesReply",
")",
"\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",
"}"
] |
// GetCookies invokes the Network method. Returns all browser cookies for the
// current URL. Depending on the backend support, will return detailed cookie
// information in the `cookies` field.
|
[
"GetCookies",
"invokes",
"the",
"Network",
"method",
".",
"Returns",
"all",
"browser",
"cookies",
"for",
"the",
"current",
"URL",
".",
"Depending",
"on",
"the",
"backend",
"support",
"will",
"return",
"detailed",
"cookie",
"information",
"in",
"the",
"cookies",
"field",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/domain.go#L178-L189
|
19,149
|
mafredri/cdp
|
protocol/network/domain.go
|
GetRequestPostData
|
func (d *domainClient) GetRequestPostData(ctx context.Context, args *GetRequestPostDataArgs) (reply *GetRequestPostDataReply, err error) {
reply = new(GetRequestPostDataReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.getRequestPostData", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.getRequestPostData", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "GetRequestPostData", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetRequestPostData(ctx context.Context, args *GetRequestPostDataArgs) (reply *GetRequestPostDataReply, err error) {
reply = new(GetRequestPostDataReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.getRequestPostData", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.getRequestPostData", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "GetRequestPostData", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetRequestPostData",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetRequestPostDataArgs",
")",
"(",
"reply",
"*",
"GetRequestPostDataReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetRequestPostDataReply",
")",
"\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",
"}"
] |
// GetRequestPostData invokes the Network method. Returns post data sent with
// the request. Returns an error when no data was sent with the request.
|
[
"GetRequestPostData",
"invokes",
"the",
"Network",
"method",
".",
"Returns",
"post",
"data",
"sent",
"with",
"the",
"request",
".",
"Returns",
"an",
"error",
"when",
"no",
"data",
"was",
"sent",
"with",
"the",
"request",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/domain.go#L208-L219
|
19,150
|
mafredri/cdp
|
protocol/network/domain.go
|
GetResponseBodyForInterception
|
func (d *domainClient) GetResponseBodyForInterception(ctx context.Context, args *GetResponseBodyForInterceptionArgs) (reply *GetResponseBodyForInterceptionReply, err error) {
reply = new(GetResponseBodyForInterceptionReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.getResponseBodyForInterception", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.getResponseBodyForInterception", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "GetResponseBodyForInterception", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetResponseBodyForInterception(ctx context.Context, args *GetResponseBodyForInterceptionArgs) (reply *GetResponseBodyForInterceptionReply, err error) {
reply = new(GetResponseBodyForInterceptionReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.getResponseBodyForInterception", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.getResponseBodyForInterception", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "GetResponseBodyForInterception", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetResponseBodyForInterception",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetResponseBodyForInterceptionArgs",
")",
"(",
"reply",
"*",
"GetResponseBodyForInterceptionReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetResponseBodyForInterceptionReply",
")",
"\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",
"}"
] |
// GetResponseBodyForInterception invokes the Network method. Returns content
// served for the given currently intercepted request.
|
[
"GetResponseBodyForInterception",
"invokes",
"the",
"Network",
"method",
".",
"Returns",
"content",
"served",
"for",
"the",
"given",
"currently",
"intercepted",
"request",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/domain.go#L223-L234
|
19,151
|
mafredri/cdp
|
protocol/network/domain.go
|
SearchInResponseBody
|
func (d *domainClient) SearchInResponseBody(ctx context.Context, args *SearchInResponseBodyArgs) (reply *SearchInResponseBodyReply, err error) {
reply = new(SearchInResponseBodyReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.searchInResponseBody", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.searchInResponseBody", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "SearchInResponseBody", Err: err}
}
return
}
|
go
|
func (d *domainClient) SearchInResponseBody(ctx context.Context, args *SearchInResponseBodyArgs) (reply *SearchInResponseBodyReply, err error) {
reply = new(SearchInResponseBodyReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.searchInResponseBody", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.searchInResponseBody", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "SearchInResponseBody", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SearchInResponseBody",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SearchInResponseBodyArgs",
")",
"(",
"reply",
"*",
"SearchInResponseBodyReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SearchInResponseBodyReply",
")",
"\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",
"}"
] |
// SearchInResponseBody invokes the Network method. Searches for given string
// in response content.
|
[
"SearchInResponseBody",
"invokes",
"the",
"Network",
"method",
".",
"Searches",
"for",
"given",
"string",
"in",
"response",
"content",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/domain.go#L272-L283
|
19,152
|
mafredri/cdp
|
protocol/network/domain.go
|
SetCookie
|
func (d *domainClient) SetCookie(ctx context.Context, args *SetCookieArgs) (reply *SetCookieReply, err error) {
reply = new(SetCookieReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.setCookie", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.setCookie", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "SetCookie", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetCookie(ctx context.Context, args *SetCookieArgs) (reply *SetCookieReply, err error) {
reply = new(SetCookieReply)
if args != nil {
err = rpcc.Invoke(ctx, "Network.setCookie", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Network.setCookie", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Network", Op: "SetCookie", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetCookie",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetCookieArgs",
")",
"(",
"reply",
"*",
"SetCookieReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetCookieReply",
")",
"\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",
"}"
] |
// SetCookie invokes the Network method. Sets a cookie with the given cookie
// data; may overwrite equivalent cookies if they exist.
|
[
"SetCookie",
"invokes",
"the",
"Network",
"method",
".",
"Sets",
"a",
"cookie",
"with",
"the",
"given",
"cookie",
"data",
";",
"may",
"overwrite",
"equivalent",
"cookies",
"if",
"they",
"exist",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/network/domain.go#L328-L339
|
19,153
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
NewGetEventListenersArgs
|
func NewGetEventListenersArgs(objectID runtime.RemoteObjectID) *GetEventListenersArgs {
args := new(GetEventListenersArgs)
args.ObjectID = objectID
return args
}
|
go
|
func NewGetEventListenersArgs(objectID runtime.RemoteObjectID) *GetEventListenersArgs {
args := new(GetEventListenersArgs)
args.ObjectID = objectID
return args
}
|
[
"func",
"NewGetEventListenersArgs",
"(",
"objectID",
"runtime",
".",
"RemoteObjectID",
")",
"*",
"GetEventListenersArgs",
"{",
"args",
":=",
"new",
"(",
"GetEventListenersArgs",
")",
"\n",
"args",
".",
"ObjectID",
"=",
"objectID",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewGetEventListenersArgs initializes GetEventListenersArgs with the required arguments.
|
[
"NewGetEventListenersArgs",
"initializes",
"GetEventListenersArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L18-L22
|
19,154
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
SetDepth
|
func (a *GetEventListenersArgs) SetDepth(depth int) *GetEventListenersArgs {
a.Depth = &depth
return a
}
|
go
|
func (a *GetEventListenersArgs) SetDepth(depth int) *GetEventListenersArgs {
a.Depth = &depth
return a
}
|
[
"func",
"(",
"a",
"*",
"GetEventListenersArgs",
")",
"SetDepth",
"(",
"depth",
"int",
")",
"*",
"GetEventListenersArgs",
"{",
"a",
".",
"Depth",
"=",
"&",
"depth",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetDepth sets the Depth optional argument. The maximum depth at
// which Node children should be retrieved, defaults to 1. Use -1 for
// the entire subtree or provide an integer larger than 0.
|
[
"SetDepth",
"sets",
"the",
"Depth",
"optional",
"argument",
".",
"The",
"maximum",
"depth",
"at",
"which",
"Node",
"children",
"should",
"be",
"retrieved",
"defaults",
"to",
"1",
".",
"Use",
"-",
"1",
"for",
"the",
"entire",
"subtree",
"or",
"provide",
"an",
"integer",
"larger",
"than",
"0",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L27-L30
|
19,155
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
NewRemoveDOMBreakpointArgs
|
func NewRemoveDOMBreakpointArgs(nodeID dom.NodeID, typ DOMBreakpointType) *RemoveDOMBreakpointArgs {
args := new(RemoveDOMBreakpointArgs)
args.NodeID = nodeID
args.Type = typ
return args
}
|
go
|
func NewRemoveDOMBreakpointArgs(nodeID dom.NodeID, typ DOMBreakpointType) *RemoveDOMBreakpointArgs {
args := new(RemoveDOMBreakpointArgs)
args.NodeID = nodeID
args.Type = typ
return args
}
|
[
"func",
"NewRemoveDOMBreakpointArgs",
"(",
"nodeID",
"dom",
".",
"NodeID",
",",
"typ",
"DOMBreakpointType",
")",
"*",
"RemoveDOMBreakpointArgs",
"{",
"args",
":=",
"new",
"(",
"RemoveDOMBreakpointArgs",
")",
"\n",
"args",
".",
"NodeID",
"=",
"nodeID",
"\n",
"args",
".",
"Type",
"=",
"typ",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewRemoveDOMBreakpointArgs initializes RemoveDOMBreakpointArgs with the required arguments.
|
[
"NewRemoveDOMBreakpointArgs",
"initializes",
"RemoveDOMBreakpointArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L53-L58
|
19,156
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
NewRemoveEventListenerBreakpointArgs
|
func NewRemoveEventListenerBreakpointArgs(eventName string) *RemoveEventListenerBreakpointArgs {
args := new(RemoveEventListenerBreakpointArgs)
args.EventName = eventName
return args
}
|
go
|
func NewRemoveEventListenerBreakpointArgs(eventName string) *RemoveEventListenerBreakpointArgs {
args := new(RemoveEventListenerBreakpointArgs)
args.EventName = eventName
return args
}
|
[
"func",
"NewRemoveEventListenerBreakpointArgs",
"(",
"eventName",
"string",
")",
"*",
"RemoveEventListenerBreakpointArgs",
"{",
"args",
":=",
"new",
"(",
"RemoveEventListenerBreakpointArgs",
")",
"\n",
"args",
".",
"EventName",
"=",
"eventName",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewRemoveEventListenerBreakpointArgs initializes RemoveEventListenerBreakpointArgs with the required arguments.
|
[
"NewRemoveEventListenerBreakpointArgs",
"initializes",
"RemoveEventListenerBreakpointArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L70-L74
|
19,157
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
NewRemoveInstrumentationBreakpointArgs
|
func NewRemoveInstrumentationBreakpointArgs(eventName string) *RemoveInstrumentationBreakpointArgs {
args := new(RemoveInstrumentationBreakpointArgs)
args.EventName = eventName
return args
}
|
go
|
func NewRemoveInstrumentationBreakpointArgs(eventName string) *RemoveInstrumentationBreakpointArgs {
args := new(RemoveInstrumentationBreakpointArgs)
args.EventName = eventName
return args
}
|
[
"func",
"NewRemoveInstrumentationBreakpointArgs",
"(",
"eventName",
"string",
")",
"*",
"RemoveInstrumentationBreakpointArgs",
"{",
"args",
":=",
"new",
"(",
"RemoveInstrumentationBreakpointArgs",
")",
"\n",
"args",
".",
"EventName",
"=",
"eventName",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewRemoveInstrumentationBreakpointArgs initializes RemoveInstrumentationBreakpointArgs with the required arguments.
|
[
"NewRemoveInstrumentationBreakpointArgs",
"initializes",
"RemoveInstrumentationBreakpointArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L91-L95
|
19,158
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
NewRemoveXHRBreakpointArgs
|
func NewRemoveXHRBreakpointArgs(url string) *RemoveXHRBreakpointArgs {
args := new(RemoveXHRBreakpointArgs)
args.URL = url
return args
}
|
go
|
func NewRemoveXHRBreakpointArgs(url string) *RemoveXHRBreakpointArgs {
args := new(RemoveXHRBreakpointArgs)
args.URL = url
return args
}
|
[
"func",
"NewRemoveXHRBreakpointArgs",
"(",
"url",
"string",
")",
"*",
"RemoveXHRBreakpointArgs",
"{",
"args",
":=",
"new",
"(",
"RemoveXHRBreakpointArgs",
")",
"\n",
"args",
".",
"URL",
"=",
"url",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewRemoveXHRBreakpointArgs initializes RemoveXHRBreakpointArgs with the required arguments.
|
[
"NewRemoveXHRBreakpointArgs",
"initializes",
"RemoveXHRBreakpointArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L103-L107
|
19,159
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
NewSetDOMBreakpointArgs
|
func NewSetDOMBreakpointArgs(nodeID dom.NodeID, typ DOMBreakpointType) *SetDOMBreakpointArgs {
args := new(SetDOMBreakpointArgs)
args.NodeID = nodeID
args.Type = typ
return args
}
|
go
|
func NewSetDOMBreakpointArgs(nodeID dom.NodeID, typ DOMBreakpointType) *SetDOMBreakpointArgs {
args := new(SetDOMBreakpointArgs)
args.NodeID = nodeID
args.Type = typ
return args
}
|
[
"func",
"NewSetDOMBreakpointArgs",
"(",
"nodeID",
"dom",
".",
"NodeID",
",",
"typ",
"DOMBreakpointType",
")",
"*",
"SetDOMBreakpointArgs",
"{",
"args",
":=",
"new",
"(",
"SetDOMBreakpointArgs",
")",
"\n",
"args",
".",
"NodeID",
"=",
"nodeID",
"\n",
"args",
".",
"Type",
"=",
"typ",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetDOMBreakpointArgs initializes SetDOMBreakpointArgs with the required arguments.
|
[
"NewSetDOMBreakpointArgs",
"initializes",
"SetDOMBreakpointArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L116-L121
|
19,160
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
NewSetEventListenerBreakpointArgs
|
func NewSetEventListenerBreakpointArgs(eventName string) *SetEventListenerBreakpointArgs {
args := new(SetEventListenerBreakpointArgs)
args.EventName = eventName
return args
}
|
go
|
func NewSetEventListenerBreakpointArgs(eventName string) *SetEventListenerBreakpointArgs {
args := new(SetEventListenerBreakpointArgs)
args.EventName = eventName
return args
}
|
[
"func",
"NewSetEventListenerBreakpointArgs",
"(",
"eventName",
"string",
")",
"*",
"SetEventListenerBreakpointArgs",
"{",
"args",
":=",
"new",
"(",
"SetEventListenerBreakpointArgs",
")",
"\n",
"args",
".",
"EventName",
"=",
"eventName",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetEventListenerBreakpointArgs initializes SetEventListenerBreakpointArgs with the required arguments.
|
[
"NewSetEventListenerBreakpointArgs",
"initializes",
"SetEventListenerBreakpointArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L134-L138
|
19,161
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
NewSetInstrumentationBreakpointArgs
|
func NewSetInstrumentationBreakpointArgs(eventName string) *SetInstrumentationBreakpointArgs {
args := new(SetInstrumentationBreakpointArgs)
args.EventName = eventName
return args
}
|
go
|
func NewSetInstrumentationBreakpointArgs(eventName string) *SetInstrumentationBreakpointArgs {
args := new(SetInstrumentationBreakpointArgs)
args.EventName = eventName
return args
}
|
[
"func",
"NewSetInstrumentationBreakpointArgs",
"(",
"eventName",
"string",
")",
"*",
"SetInstrumentationBreakpointArgs",
"{",
"args",
":=",
"new",
"(",
"SetInstrumentationBreakpointArgs",
")",
"\n",
"args",
".",
"EventName",
"=",
"eventName",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetInstrumentationBreakpointArgs initializes SetInstrumentationBreakpointArgs with the required arguments.
|
[
"NewSetInstrumentationBreakpointArgs",
"initializes",
"SetInstrumentationBreakpointArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L156-L160
|
19,162
|
mafredri/cdp
|
protocol/domdebugger/command.go
|
NewSetXHRBreakpointArgs
|
func NewSetXHRBreakpointArgs(url string) *SetXHRBreakpointArgs {
args := new(SetXHRBreakpointArgs)
args.URL = url
return args
}
|
go
|
func NewSetXHRBreakpointArgs(url string) *SetXHRBreakpointArgs {
args := new(SetXHRBreakpointArgs)
args.URL = url
return args
}
|
[
"func",
"NewSetXHRBreakpointArgs",
"(",
"url",
"string",
")",
"*",
"SetXHRBreakpointArgs",
"{",
"args",
":=",
"new",
"(",
"SetXHRBreakpointArgs",
")",
"\n",
"args",
".",
"URL",
"=",
"url",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetXHRBreakpointArgs initializes SetXHRBreakpointArgs with the required arguments.
|
[
"NewSetXHRBreakpointArgs",
"initializes",
"SetXHRBreakpointArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/domdebugger/command.go#L168-L172
|
19,163
|
mafredri/cdp
|
protocol/fetch/command.go
|
SetPatterns
|
func (a *EnableArgs) SetPatterns(patterns []RequestPattern) *EnableArgs {
a.Patterns = patterns
return a
}
|
go
|
func (a *EnableArgs) SetPatterns(patterns []RequestPattern) *EnableArgs {
a.Patterns = patterns
return a
}
|
[
"func",
"(",
"a",
"*",
"EnableArgs",
")",
"SetPatterns",
"(",
"patterns",
"[",
"]",
"RequestPattern",
")",
"*",
"EnableArgs",
"{",
"a",
".",
"Patterns",
"=",
"patterns",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetPatterns sets the Patterns optional argument. If specified, only
// requests matching any of these patterns will produce fetchRequested
// event and will be paused until clients response. If not set, all
// requests will be affected.
|
[
"SetPatterns",
"sets",
"the",
"Patterns",
"optional",
"argument",
".",
"If",
"specified",
"only",
"requests",
"matching",
"any",
"of",
"these",
"patterns",
"will",
"produce",
"fetchRequested",
"event",
"and",
"will",
"be",
"paused",
"until",
"clients",
"response",
".",
"If",
"not",
"set",
"all",
"requests",
"will",
"be",
"affected",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L27-L30
|
19,164
|
mafredri/cdp
|
protocol/fetch/command.go
|
SetHandleAuthRequests
|
func (a *EnableArgs) SetHandleAuthRequests(handleAuthRequests bool) *EnableArgs {
a.HandleAuthRequests = &handleAuthRequests
return a
}
|
go
|
func (a *EnableArgs) SetHandleAuthRequests(handleAuthRequests bool) *EnableArgs {
a.HandleAuthRequests = &handleAuthRequests
return a
}
|
[
"func",
"(",
"a",
"*",
"EnableArgs",
")",
"SetHandleAuthRequests",
"(",
"handleAuthRequests",
"bool",
")",
"*",
"EnableArgs",
"{",
"a",
".",
"HandleAuthRequests",
"=",
"&",
"handleAuthRequests",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetHandleAuthRequests sets the HandleAuthRequests optional argument.
// If true, authRequired events will be issued and requests will be
// paused expecting a call to continueWithAuth.
|
[
"SetHandleAuthRequests",
"sets",
"the",
"HandleAuthRequests",
"optional",
"argument",
".",
"If",
"true",
"authRequired",
"events",
"will",
"be",
"issued",
"and",
"requests",
"will",
"be",
"paused",
"expecting",
"a",
"call",
"to",
"continueWithAuth",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L35-L38
|
19,165
|
mafredri/cdp
|
protocol/fetch/command.go
|
NewFailRequestArgs
|
func NewFailRequestArgs(requestID RequestID, errorReason network.ErrorReason) *FailRequestArgs {
args := new(FailRequestArgs)
args.RequestID = requestID
args.ErrorReason = errorReason
return args
}
|
go
|
func NewFailRequestArgs(requestID RequestID, errorReason network.ErrorReason) *FailRequestArgs {
args := new(FailRequestArgs)
args.RequestID = requestID
args.ErrorReason = errorReason
return args
}
|
[
"func",
"NewFailRequestArgs",
"(",
"requestID",
"RequestID",
",",
"errorReason",
"network",
".",
"ErrorReason",
")",
"*",
"FailRequestArgs",
"{",
"args",
":=",
"new",
"(",
"FailRequestArgs",
")",
"\n",
"args",
".",
"RequestID",
"=",
"requestID",
"\n",
"args",
".",
"ErrorReason",
"=",
"errorReason",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewFailRequestArgs initializes FailRequestArgs with the required arguments.
|
[
"NewFailRequestArgs",
"initializes",
"FailRequestArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L47-L52
|
19,166
|
mafredri/cdp
|
protocol/fetch/command.go
|
NewFulfillRequestArgs
|
func NewFulfillRequestArgs(requestID RequestID, responseCode int, responseHeaders []HeaderEntry) *FulfillRequestArgs {
args := new(FulfillRequestArgs)
args.RequestID = requestID
args.ResponseCode = responseCode
args.ResponseHeaders = responseHeaders
return args
}
|
go
|
func NewFulfillRequestArgs(requestID RequestID, responseCode int, responseHeaders []HeaderEntry) *FulfillRequestArgs {
args := new(FulfillRequestArgs)
args.RequestID = requestID
args.ResponseCode = responseCode
args.ResponseHeaders = responseHeaders
return args
}
|
[
"func",
"NewFulfillRequestArgs",
"(",
"requestID",
"RequestID",
",",
"responseCode",
"int",
",",
"responseHeaders",
"[",
"]",
"HeaderEntry",
")",
"*",
"FulfillRequestArgs",
"{",
"args",
":=",
"new",
"(",
"FulfillRequestArgs",
")",
"\n",
"args",
".",
"RequestID",
"=",
"requestID",
"\n",
"args",
".",
"ResponseCode",
"=",
"responseCode",
"\n",
"args",
".",
"ResponseHeaders",
"=",
"responseHeaders",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewFulfillRequestArgs initializes FulfillRequestArgs with the required arguments.
|
[
"NewFulfillRequestArgs",
"initializes",
"FulfillRequestArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L64-L70
|
19,167
|
mafredri/cdp
|
protocol/fetch/command.go
|
SetBody
|
func (a *FulfillRequestArgs) SetBody(body string) *FulfillRequestArgs {
a.Body = &body
return a
}
|
go
|
func (a *FulfillRequestArgs) SetBody(body string) *FulfillRequestArgs {
a.Body = &body
return a
}
|
[
"func",
"(",
"a",
"*",
"FulfillRequestArgs",
")",
"SetBody",
"(",
"body",
"string",
")",
"*",
"FulfillRequestArgs",
"{",
"a",
".",
"Body",
"=",
"&",
"body",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetBody sets the Body optional argument. A response body.
|
[
"SetBody",
"sets",
"the",
"Body",
"optional",
"argument",
".",
"A",
"response",
"body",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L73-L76
|
19,168
|
mafredri/cdp
|
protocol/fetch/command.go
|
SetResponsePhrase
|
func (a *FulfillRequestArgs) SetResponsePhrase(responsePhrase string) *FulfillRequestArgs {
a.ResponsePhrase = &responsePhrase
return a
}
|
go
|
func (a *FulfillRequestArgs) SetResponsePhrase(responsePhrase string) *FulfillRequestArgs {
a.ResponsePhrase = &responsePhrase
return a
}
|
[
"func",
"(",
"a",
"*",
"FulfillRequestArgs",
")",
"SetResponsePhrase",
"(",
"responsePhrase",
"string",
")",
"*",
"FulfillRequestArgs",
"{",
"a",
".",
"ResponsePhrase",
"=",
"&",
"responsePhrase",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetResponsePhrase sets the ResponsePhrase optional argument. A
// textual representation of responseCode. If absent, a standard phrase
// mathcing responseCode is used.
|
[
"SetResponsePhrase",
"sets",
"the",
"ResponsePhrase",
"optional",
"argument",
".",
"A",
"textual",
"representation",
"of",
"responseCode",
".",
"If",
"absent",
"a",
"standard",
"phrase",
"mathcing",
"responseCode",
"is",
"used",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L81-L84
|
19,169
|
mafredri/cdp
|
protocol/fetch/command.go
|
NewContinueRequestArgs
|
func NewContinueRequestArgs(requestID RequestID) *ContinueRequestArgs {
args := new(ContinueRequestArgs)
args.RequestID = requestID
return args
}
|
go
|
func NewContinueRequestArgs(requestID RequestID) *ContinueRequestArgs {
args := new(ContinueRequestArgs)
args.RequestID = requestID
return args
}
|
[
"func",
"NewContinueRequestArgs",
"(",
"requestID",
"RequestID",
")",
"*",
"ContinueRequestArgs",
"{",
"args",
":=",
"new",
"(",
"ContinueRequestArgs",
")",
"\n",
"args",
".",
"RequestID",
"=",
"requestID",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewContinueRequestArgs initializes ContinueRequestArgs with the required arguments.
|
[
"NewContinueRequestArgs",
"initializes",
"ContinueRequestArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L96-L100
|
19,170
|
mafredri/cdp
|
protocol/fetch/command.go
|
SetURL
|
func (a *ContinueRequestArgs) SetURL(url string) *ContinueRequestArgs {
a.URL = &url
return a
}
|
go
|
func (a *ContinueRequestArgs) SetURL(url string) *ContinueRequestArgs {
a.URL = &url
return a
}
|
[
"func",
"(",
"a",
"*",
"ContinueRequestArgs",
")",
"SetURL",
"(",
"url",
"string",
")",
"*",
"ContinueRequestArgs",
"{",
"a",
".",
"URL",
"=",
"&",
"url",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetURL sets the URL optional argument. If set, the request url will
// be modified in a way that's not observable by page.
|
[
"SetURL",
"sets",
"the",
"URL",
"optional",
"argument",
".",
"If",
"set",
"the",
"request",
"url",
"will",
"be",
"modified",
"in",
"a",
"way",
"that",
"s",
"not",
"observable",
"by",
"page",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L104-L107
|
19,171
|
mafredri/cdp
|
protocol/fetch/command.go
|
SetMethod
|
func (a *ContinueRequestArgs) SetMethod(method string) *ContinueRequestArgs {
a.Method = &method
return a
}
|
go
|
func (a *ContinueRequestArgs) SetMethod(method string) *ContinueRequestArgs {
a.Method = &method
return a
}
|
[
"func",
"(",
"a",
"*",
"ContinueRequestArgs",
")",
"SetMethod",
"(",
"method",
"string",
")",
"*",
"ContinueRequestArgs",
"{",
"a",
".",
"Method",
"=",
"&",
"method",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetMethod sets the Method optional argument. If set, the request
// method is overridden.
|
[
"SetMethod",
"sets",
"the",
"Method",
"optional",
"argument",
".",
"If",
"set",
"the",
"request",
"method",
"is",
"overridden",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L111-L114
|
19,172
|
mafredri/cdp
|
protocol/fetch/command.go
|
SetPostData
|
func (a *ContinueRequestArgs) SetPostData(postData string) *ContinueRequestArgs {
a.PostData = &postData
return a
}
|
go
|
func (a *ContinueRequestArgs) SetPostData(postData string) *ContinueRequestArgs {
a.PostData = &postData
return a
}
|
[
"func",
"(",
"a",
"*",
"ContinueRequestArgs",
")",
"SetPostData",
"(",
"postData",
"string",
")",
"*",
"ContinueRequestArgs",
"{",
"a",
".",
"PostData",
"=",
"&",
"postData",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetPostData sets the PostData optional argument. If set, overrides
// the post data in the request.
|
[
"SetPostData",
"sets",
"the",
"PostData",
"optional",
"argument",
".",
"If",
"set",
"overrides",
"the",
"post",
"data",
"in",
"the",
"request",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L118-L121
|
19,173
|
mafredri/cdp
|
protocol/fetch/command.go
|
SetHeaders
|
func (a *ContinueRequestArgs) SetHeaders(headers []HeaderEntry) *ContinueRequestArgs {
a.Headers = headers
return a
}
|
go
|
func (a *ContinueRequestArgs) SetHeaders(headers []HeaderEntry) *ContinueRequestArgs {
a.Headers = headers
return a
}
|
[
"func",
"(",
"a",
"*",
"ContinueRequestArgs",
")",
"SetHeaders",
"(",
"headers",
"[",
"]",
"HeaderEntry",
")",
"*",
"ContinueRequestArgs",
"{",
"a",
".",
"Headers",
"=",
"headers",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetHeaders sets the Headers optional argument. If set, overrides
// the request headrts.
|
[
"SetHeaders",
"sets",
"the",
"Headers",
"optional",
"argument",
".",
"If",
"set",
"overrides",
"the",
"request",
"headrts",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L125-L128
|
19,174
|
mafredri/cdp
|
protocol/fetch/command.go
|
NewContinueWithAuthArgs
|
func NewContinueWithAuthArgs(requestID RequestID, authChallengeResponse AuthChallengeResponse) *ContinueWithAuthArgs {
args := new(ContinueWithAuthArgs)
args.RequestID = requestID
args.AuthChallengeResponse = authChallengeResponse
return args
}
|
go
|
func NewContinueWithAuthArgs(requestID RequestID, authChallengeResponse AuthChallengeResponse) *ContinueWithAuthArgs {
args := new(ContinueWithAuthArgs)
args.RequestID = requestID
args.AuthChallengeResponse = authChallengeResponse
return args
}
|
[
"func",
"NewContinueWithAuthArgs",
"(",
"requestID",
"RequestID",
",",
"authChallengeResponse",
"AuthChallengeResponse",
")",
"*",
"ContinueWithAuthArgs",
"{",
"args",
":=",
"new",
"(",
"ContinueWithAuthArgs",
")",
"\n",
"args",
".",
"RequestID",
"=",
"requestID",
"\n",
"args",
".",
"AuthChallengeResponse",
"=",
"authChallengeResponse",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewContinueWithAuthArgs initializes ContinueWithAuthArgs with the required arguments.
|
[
"NewContinueWithAuthArgs",
"initializes",
"ContinueWithAuthArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L137-L142
|
19,175
|
mafredri/cdp
|
protocol/fetch/command.go
|
NewTakeResponseBodyAsStreamArgs
|
func NewTakeResponseBodyAsStreamArgs(requestID RequestID) *TakeResponseBodyAsStreamArgs {
args := new(TakeResponseBodyAsStreamArgs)
args.RequestID = requestID
return args
}
|
go
|
func NewTakeResponseBodyAsStreamArgs(requestID RequestID) *TakeResponseBodyAsStreamArgs {
args := new(TakeResponseBodyAsStreamArgs)
args.RequestID = requestID
return args
}
|
[
"func",
"NewTakeResponseBodyAsStreamArgs",
"(",
"requestID",
"RequestID",
")",
"*",
"TakeResponseBodyAsStreamArgs",
"{",
"args",
":=",
"new",
"(",
"TakeResponseBodyAsStreamArgs",
")",
"\n",
"args",
".",
"RequestID",
"=",
"requestID",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewTakeResponseBodyAsStreamArgs initializes TakeResponseBodyAsStreamArgs with the required arguments.
|
[
"NewTakeResponseBodyAsStreamArgs",
"initializes",
"TakeResponseBodyAsStreamArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/fetch/command.go#L168-L172
|
19,176
|
mafredri/cdp
|
protocol/deviceorientation/command.go
|
NewSetDeviceOrientationOverrideArgs
|
func NewSetDeviceOrientationOverrideArgs(alpha float64, beta float64, gamma float64) *SetDeviceOrientationOverrideArgs {
args := new(SetDeviceOrientationOverrideArgs)
args.Alpha = alpha
args.Beta = beta
args.Gamma = gamma
return args
}
|
go
|
func NewSetDeviceOrientationOverrideArgs(alpha float64, beta float64, gamma float64) *SetDeviceOrientationOverrideArgs {
args := new(SetDeviceOrientationOverrideArgs)
args.Alpha = alpha
args.Beta = beta
args.Gamma = gamma
return args
}
|
[
"func",
"NewSetDeviceOrientationOverrideArgs",
"(",
"alpha",
"float64",
",",
"beta",
"float64",
",",
"gamma",
"float64",
")",
"*",
"SetDeviceOrientationOverrideArgs",
"{",
"args",
":=",
"new",
"(",
"SetDeviceOrientationOverrideArgs",
")",
"\n",
"args",
".",
"Alpha",
"=",
"alpha",
"\n",
"args",
".",
"Beta",
"=",
"beta",
"\n",
"args",
".",
"Gamma",
"=",
"gamma",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetDeviceOrientationOverrideArgs initializes SetDeviceOrientationOverrideArgs with the required arguments.
|
[
"NewSetDeviceOrientationOverrideArgs",
"initializes",
"SetDeviceOrientationOverrideArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/deviceorientation/command.go#L13-L19
|
19,177
|
mafredri/cdp
|
protocol/runtime/util.go
|
Error
|
func (r ExceptionDetails) Error() string {
var desc string
if r.Exception.Description != nil {
desc = ": " + *r.Exception.Description
}
return fmt.Sprintf("runtime.ExceptionDetails: %s exception at %d:%d%s", r.Text, r.LineNumber, r.ColumnNumber, desc)
}
|
go
|
func (r ExceptionDetails) Error() string {
var desc string
if r.Exception.Description != nil {
desc = ": " + *r.Exception.Description
}
return fmt.Sprintf("runtime.ExceptionDetails: %s exception at %d:%d%s", r.Text, r.LineNumber, r.ColumnNumber, desc)
}
|
[
"func",
"(",
"r",
"ExceptionDetails",
")",
"Error",
"(",
")",
"string",
"{",
"var",
"desc",
"string",
"\n",
"if",
"r",
".",
"Exception",
".",
"Description",
"!=",
"nil",
"{",
"desc",
"=",
"\"",
"\"",
"+",
"*",
"r",
".",
"Exception",
".",
"Description",
"\n",
"}",
"\n",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"r",
".",
"Text",
",",
"r",
".",
"LineNumber",
",",
"r",
".",
"ColumnNumber",
",",
"desc",
")",
"\n",
"}"
] |
// Error implements error for ExceptionDetails.
|
[
"Error",
"implements",
"error",
"for",
"ExceptionDetails",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/util.go#L9-L15
|
19,178
|
mafredri/cdp
|
protocol/runtime/util.go
|
String
|
func (r RemoteObject) String() string {
switch r.Type {
case "undefined":
return "undefined"
case "object":
switch {
case r.Preview != nil:
return r.Preview.String()
}
default:
if r.UnserializableValue != nil {
return string(*r.UnserializableValue)
}
}
if len(r.Value) == 0 && r.Description != nil {
return *r.Description
}
return string(r.Value)
}
|
go
|
func (r RemoteObject) String() string {
switch r.Type {
case "undefined":
return "undefined"
case "object":
switch {
case r.Preview != nil:
return r.Preview.String()
}
default:
if r.UnserializableValue != nil {
return string(*r.UnserializableValue)
}
}
if len(r.Value) == 0 && r.Description != nil {
return *r.Description
}
return string(r.Value)
}
|
[
"func",
"(",
"r",
"RemoteObject",
")",
"String",
"(",
")",
"string",
"{",
"switch",
"r",
".",
"Type",
"{",
"case",
"\"",
"\"",
":",
"return",
"\"",
"\"",
"\n",
"case",
"\"",
"\"",
":",
"switch",
"{",
"case",
"r",
".",
"Preview",
"!=",
"nil",
":",
"return",
"r",
".",
"Preview",
".",
"String",
"(",
")",
"\n",
"}",
"\n",
"default",
":",
"if",
"r",
".",
"UnserializableValue",
"!=",
"nil",
"{",
"return",
"string",
"(",
"*",
"r",
".",
"UnserializableValue",
")",
"\n",
"}",
"\n",
"}",
"\n\n",
"if",
"len",
"(",
"r",
".",
"Value",
")",
"==",
"0",
"&&",
"r",
".",
"Description",
"!=",
"nil",
"{",
"return",
"*",
"r",
".",
"Description",
"\n",
"}",
"\n\n",
"return",
"string",
"(",
"r",
".",
"Value",
")",
"\n",
"}"
] |
// String returns a human readable string of a runtime object.
|
[
"String",
"returns",
"a",
"human",
"readable",
"string",
"of",
"a",
"runtime",
"object",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/util.go#L22-L42
|
19,179
|
mafredri/cdp
|
protocol/runtime/util.go
|
String
|
func (r ObjectPreview) String() string {
var desc string
if r.Description != nil {
desc = *r.Description
}
switch r.Type {
case "object":
var stype string
if r.Subtype != nil {
stype = *r.Subtype
}
switch stype {
case "null":
return "null"
case "array", "typedarray":
return r.arrayString(desc)
case "date", "regexp":
return desc
default:
if val, ok := primitiveValue(r.Properties); ok {
return fmt.Sprintf("%s(%s)", desc, val)
}
}
return r.objectString(desc)
case "string":
return fmt.Sprintf("%q", desc)
default:
return desc
}
}
|
go
|
func (r ObjectPreview) String() string {
var desc string
if r.Description != nil {
desc = *r.Description
}
switch r.Type {
case "object":
var stype string
if r.Subtype != nil {
stype = *r.Subtype
}
switch stype {
case "null":
return "null"
case "array", "typedarray":
return r.arrayString(desc)
case "date", "regexp":
return desc
default:
if val, ok := primitiveValue(r.Properties); ok {
return fmt.Sprintf("%s(%s)", desc, val)
}
}
return r.objectString(desc)
case "string":
return fmt.Sprintf("%q", desc)
default:
return desc
}
}
|
[
"func",
"(",
"r",
"ObjectPreview",
")",
"String",
"(",
")",
"string",
"{",
"var",
"desc",
"string",
"\n",
"if",
"r",
".",
"Description",
"!=",
"nil",
"{",
"desc",
"=",
"*",
"r",
".",
"Description",
"\n",
"}",
"\n\n",
"switch",
"r",
".",
"Type",
"{",
"case",
"\"",
"\"",
":",
"var",
"stype",
"string",
"\n",
"if",
"r",
".",
"Subtype",
"!=",
"nil",
"{",
"stype",
"=",
"*",
"r",
".",
"Subtype",
"\n",
"}",
"\n",
"switch",
"stype",
"{",
"case",
"\"",
"\"",
":",
"return",
"\"",
"\"",
"\n",
"case",
"\"",
"\"",
",",
"\"",
"\"",
":",
"return",
"r",
".",
"arrayString",
"(",
"desc",
")",
"\n",
"case",
"\"",
"\"",
",",
"\"",
"\"",
":",
"return",
"desc",
"\n",
"default",
":",
"if",
"val",
",",
"ok",
":=",
"primitiveValue",
"(",
"r",
".",
"Properties",
")",
";",
"ok",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"desc",
",",
"val",
")",
"\n",
"}",
"\n",
"}",
"\n\n",
"return",
"r",
".",
"objectString",
"(",
"desc",
")",
"\n",
"case",
"\"",
"\"",
":",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"desc",
")",
"\n",
"default",
":",
"return",
"desc",
"\n",
"}",
"\n",
"}"
] |
// String returns a human readable string of the object preview.
|
[
"String",
"returns",
"a",
"human",
"readable",
"string",
"of",
"the",
"object",
"preview",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/util.go#L45-L76
|
19,180
|
mafredri/cdp
|
protocol/runtime/util.go
|
String
|
func (r EntryPreview) String() string {
var b bytes.Buffer
if r.Key != nil {
b.WriteString(r.Key.String())
b.WriteString(" => ")
}
b.WriteString(r.Value.String())
return b.String()
}
|
go
|
func (r EntryPreview) String() string {
var b bytes.Buffer
if r.Key != nil {
b.WriteString(r.Key.String())
b.WriteString(" => ")
}
b.WriteString(r.Value.String())
return b.String()
}
|
[
"func",
"(",
"r",
"EntryPreview",
")",
"String",
"(",
")",
"string",
"{",
"var",
"b",
"bytes",
".",
"Buffer",
"\n",
"if",
"r",
".",
"Key",
"!=",
"nil",
"{",
"b",
".",
"WriteString",
"(",
"r",
".",
"Key",
".",
"String",
"(",
")",
")",
"\n",
"b",
".",
"WriteString",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n",
"b",
".",
"WriteString",
"(",
"r",
".",
"Value",
".",
"String",
"(",
")",
")",
"\n",
"return",
"b",
".",
"String",
"(",
")",
"\n",
"}"
] |
// String returns a human readable string of the entry preview.
|
[
"String",
"returns",
"a",
"human",
"readable",
"string",
"of",
"the",
"entry",
"preview",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/runtime/util.go#L148-L156
|
19,181
|
mafredri/cdp
|
protocol/debugger/domain.go
|
EvaluateOnCallFrame
|
func (d *domainClient) EvaluateOnCallFrame(ctx context.Context, args *EvaluateOnCallFrameArgs) (reply *EvaluateOnCallFrameReply, err error) {
reply = new(EvaluateOnCallFrameReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.evaluateOnCallFrame", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.evaluateOnCallFrame", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "EvaluateOnCallFrame", Err: err}
}
return
}
|
go
|
func (d *domainClient) EvaluateOnCallFrame(ctx context.Context, args *EvaluateOnCallFrameArgs) (reply *EvaluateOnCallFrameReply, err error) {
reply = new(EvaluateOnCallFrameReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.evaluateOnCallFrame", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.evaluateOnCallFrame", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "EvaluateOnCallFrame", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"EvaluateOnCallFrame",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"EvaluateOnCallFrameArgs",
")",
"(",
"reply",
"*",
"EvaluateOnCallFrameReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"EvaluateOnCallFrameReply",
")",
"\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",
"}"
] |
// EvaluateOnCallFrame invokes the Debugger method. Evaluates expression on a
// given call frame.
|
[
"EvaluateOnCallFrame",
"invokes",
"the",
"Debugger",
"method",
".",
"Evaluates",
"expression",
"on",
"a",
"given",
"call",
"frame",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L66-L77
|
19,182
|
mafredri/cdp
|
protocol/debugger/domain.go
|
GetPossibleBreakpoints
|
func (d *domainClient) GetPossibleBreakpoints(ctx context.Context, args *GetPossibleBreakpointsArgs) (reply *GetPossibleBreakpointsReply, err error) {
reply = new(GetPossibleBreakpointsReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.getPossibleBreakpoints", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.getPossibleBreakpoints", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "GetPossibleBreakpoints", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetPossibleBreakpoints(ctx context.Context, args *GetPossibleBreakpointsArgs) (reply *GetPossibleBreakpointsReply, err error) {
reply = new(GetPossibleBreakpointsReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.getPossibleBreakpoints", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.getPossibleBreakpoints", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "GetPossibleBreakpoints", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetPossibleBreakpoints",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetPossibleBreakpointsArgs",
")",
"(",
"reply",
"*",
"GetPossibleBreakpointsReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetPossibleBreakpointsReply",
")",
"\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",
"}"
] |
// GetPossibleBreakpoints invokes the Debugger method. Returns possible
// locations for breakpoint. scriptId in start and end range locations should
// be the same.
|
[
"GetPossibleBreakpoints",
"invokes",
"the",
"Debugger",
"method",
".",
"Returns",
"possible",
"locations",
"for",
"breakpoint",
".",
"scriptId",
"in",
"start",
"and",
"end",
"range",
"locations",
"should",
"be",
"the",
"same",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L82-L93
|
19,183
|
mafredri/cdp
|
protocol/debugger/domain.go
|
GetScriptSource
|
func (d *domainClient) GetScriptSource(ctx context.Context, args *GetScriptSourceArgs) (reply *GetScriptSourceReply, err error) {
reply = new(GetScriptSourceReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.getScriptSource", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.getScriptSource", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "GetScriptSource", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetScriptSource(ctx context.Context, args *GetScriptSourceArgs) (reply *GetScriptSourceReply, err error) {
reply = new(GetScriptSourceReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.getScriptSource", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.getScriptSource", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "GetScriptSource", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetScriptSource",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetScriptSourceArgs",
")",
"(",
"reply",
"*",
"GetScriptSourceReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetScriptSourceReply",
")",
"\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",
"}"
] |
// GetScriptSource invokes the Debugger method. Returns source for the script
// with given id.
|
[
"GetScriptSource",
"invokes",
"the",
"Debugger",
"method",
".",
"Returns",
"source",
"for",
"the",
"script",
"with",
"given",
"id",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L97-L108
|
19,184
|
mafredri/cdp
|
protocol/debugger/domain.go
|
GetStackTrace
|
func (d *domainClient) GetStackTrace(ctx context.Context, args *GetStackTraceArgs) (reply *GetStackTraceReply, err error) {
reply = new(GetStackTraceReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.getStackTrace", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.getStackTrace", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "GetStackTrace", Err: err}
}
return
}
|
go
|
func (d *domainClient) GetStackTrace(ctx context.Context, args *GetStackTraceArgs) (reply *GetStackTraceReply, err error) {
reply = new(GetStackTraceReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.getStackTrace", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.getStackTrace", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "GetStackTrace", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"GetStackTrace",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"GetStackTraceArgs",
")",
"(",
"reply",
"*",
"GetStackTraceReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"GetStackTraceReply",
")",
"\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",
"}"
] |
// GetStackTrace invokes the Debugger method. Returns stack trace with given
// `stackTraceId`.
|
[
"GetStackTrace",
"invokes",
"the",
"Debugger",
"method",
".",
"Returns",
"stack",
"trace",
"with",
"given",
"stackTraceId",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L112-L123
|
19,185
|
mafredri/cdp
|
protocol/debugger/domain.go
|
RestartFrame
|
func (d *domainClient) RestartFrame(ctx context.Context, args *RestartFrameArgs) (reply *RestartFrameReply, err error) {
reply = new(RestartFrameReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.restartFrame", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.restartFrame", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "RestartFrame", Err: err}
}
return
}
|
go
|
func (d *domainClient) RestartFrame(ctx context.Context, args *RestartFrameArgs) (reply *RestartFrameReply, err error) {
reply = new(RestartFrameReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.restartFrame", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.restartFrame", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "RestartFrame", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"RestartFrame",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"RestartFrameArgs",
")",
"(",
"reply",
"*",
"RestartFrameReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"RestartFrameReply",
")",
"\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",
"}"
] |
// RestartFrame invokes the Debugger method. Restarts particular call frame
// from the beginning.
|
[
"RestartFrame",
"invokes",
"the",
"Debugger",
"method",
".",
"Restarts",
"particular",
"call",
"frame",
"from",
"the",
"beginning",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L163-L174
|
19,186
|
mafredri/cdp
|
protocol/debugger/domain.go
|
SearchInContent
|
func (d *domainClient) SearchInContent(ctx context.Context, args *SearchInContentArgs) (reply *SearchInContentReply, err error) {
reply = new(SearchInContentReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.searchInContent", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.searchInContent", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SearchInContent", Err: err}
}
return
}
|
go
|
func (d *domainClient) SearchInContent(ctx context.Context, args *SearchInContentArgs) (reply *SearchInContentReply, err error) {
reply = new(SearchInContentReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.searchInContent", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.searchInContent", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SearchInContent", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SearchInContent",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SearchInContentArgs",
")",
"(",
"reply",
"*",
"SearchInContentReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SearchInContentReply",
")",
"\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",
"}"
] |
// SearchInContent invokes the Debugger method. Searches for given string in
// script content.
|
[
"SearchInContent",
"invokes",
"the",
"Debugger",
"method",
".",
"Searches",
"for",
"given",
"string",
"in",
"script",
"content",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L187-L198
|
19,187
|
mafredri/cdp
|
protocol/debugger/domain.go
|
SetBreakpoint
|
func (d *domainClient) SetBreakpoint(ctx context.Context, args *SetBreakpointArgs) (reply *SetBreakpointReply, err error) {
reply = new(SetBreakpointReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.setBreakpoint", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.setBreakpoint", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SetBreakpoint", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetBreakpoint(ctx context.Context, args *SetBreakpointArgs) (reply *SetBreakpointReply, err error) {
reply = new(SetBreakpointReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.setBreakpoint", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.setBreakpoint", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SetBreakpoint", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetBreakpoint",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetBreakpointArgs",
")",
"(",
"reply",
"*",
"SetBreakpointReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetBreakpointReply",
")",
"\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",
"}"
] |
// SetBreakpoint invokes the Debugger method. Sets JavaScript breakpoint at a
// given location.
|
[
"SetBreakpoint",
"invokes",
"the",
"Debugger",
"method",
".",
"Sets",
"JavaScript",
"breakpoint",
"at",
"a",
"given",
"location",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L250-L261
|
19,188
|
mafredri/cdp
|
protocol/debugger/domain.go
|
SetBreakpointByURL
|
func (d *domainClient) SetBreakpointByURL(ctx context.Context, args *SetBreakpointByURLArgs) (reply *SetBreakpointByURLReply, err error) {
reply = new(SetBreakpointByURLReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.setBreakpointByUrl", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.setBreakpointByUrl", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SetBreakpointByURL", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetBreakpointByURL(ctx context.Context, args *SetBreakpointByURLArgs) (reply *SetBreakpointByURLReply, err error) {
reply = new(SetBreakpointByURLReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.setBreakpointByUrl", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.setBreakpointByUrl", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SetBreakpointByURL", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetBreakpointByURL",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetBreakpointByURLArgs",
")",
"(",
"reply",
"*",
"SetBreakpointByURLReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetBreakpointByURLReply",
")",
"\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",
"}"
] |
// SetBreakpointByURL invokes the Debugger method. Sets JavaScript breakpoint
// at given location specified either by URL or URL regex. Once this command is
// issued, all existing parsed scripts will have breakpoints resolved and
// returned in `locations` property. Further matching script parsing will
// result in subsequent `breakpointResolved` events issued. This logical
// breakpoint will survive page reloads.
|
[
"SetBreakpointByURL",
"invokes",
"the",
"Debugger",
"method",
".",
"Sets",
"JavaScript",
"breakpoint",
"at",
"given",
"location",
"specified",
"either",
"by",
"URL",
"or",
"URL",
"regex",
".",
"Once",
"this",
"command",
"is",
"issued",
"all",
"existing",
"parsed",
"scripts",
"will",
"have",
"breakpoints",
"resolved",
"and",
"returned",
"in",
"locations",
"property",
".",
"Further",
"matching",
"script",
"parsing",
"will",
"result",
"in",
"subsequent",
"breakpointResolved",
"events",
"issued",
".",
"This",
"logical",
"breakpoint",
"will",
"survive",
"page",
"reloads",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L269-L280
|
19,189
|
mafredri/cdp
|
protocol/debugger/domain.go
|
SetBreakpointOnFunctionCall
|
func (d *domainClient) SetBreakpointOnFunctionCall(ctx context.Context, args *SetBreakpointOnFunctionCallArgs) (reply *SetBreakpointOnFunctionCallReply, err error) {
reply = new(SetBreakpointOnFunctionCallReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.setBreakpointOnFunctionCall", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.setBreakpointOnFunctionCall", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SetBreakpointOnFunctionCall", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetBreakpointOnFunctionCall(ctx context.Context, args *SetBreakpointOnFunctionCallArgs) (reply *SetBreakpointOnFunctionCallReply, err error) {
reply = new(SetBreakpointOnFunctionCallReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.setBreakpointOnFunctionCall", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.setBreakpointOnFunctionCall", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SetBreakpointOnFunctionCall", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetBreakpointOnFunctionCall",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetBreakpointOnFunctionCallArgs",
")",
"(",
"reply",
"*",
"SetBreakpointOnFunctionCallReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetBreakpointOnFunctionCallReply",
")",
"\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",
"}"
] |
// SetBreakpointOnFunctionCall invokes the Debugger method. Sets JavaScript
// breakpoint before each call to the given function. If another function was
// created from the same source as a given one, calling it will also trigger
// the breakpoint.
|
[
"SetBreakpointOnFunctionCall",
"invokes",
"the",
"Debugger",
"method",
".",
"Sets",
"JavaScript",
"breakpoint",
"before",
"each",
"call",
"to",
"the",
"given",
"function",
".",
"If",
"another",
"function",
"was",
"created",
"from",
"the",
"same",
"source",
"as",
"a",
"given",
"one",
"calling",
"it",
"will",
"also",
"trigger",
"the",
"breakpoint",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L286-L297
|
19,190
|
mafredri/cdp
|
protocol/debugger/domain.go
|
SetScriptSource
|
func (d *domainClient) SetScriptSource(ctx context.Context, args *SetScriptSourceArgs) (reply *SetScriptSourceReply, err error) {
reply = new(SetScriptSourceReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.setScriptSource", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.setScriptSource", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SetScriptSource", Err: err}
}
return
}
|
go
|
func (d *domainClient) SetScriptSource(ctx context.Context, args *SetScriptSourceArgs) (reply *SetScriptSourceReply, err error) {
reply = new(SetScriptSourceReply)
if args != nil {
err = rpcc.Invoke(ctx, "Debugger.setScriptSource", args, reply, d.conn)
} else {
err = rpcc.Invoke(ctx, "Debugger.setScriptSource", nil, reply, d.conn)
}
if err != nil {
err = &internal.OpError{Domain: "Debugger", Op: "SetScriptSource", Err: err}
}
return
}
|
[
"func",
"(",
"d",
"*",
"domainClient",
")",
"SetScriptSource",
"(",
"ctx",
"context",
".",
"Context",
",",
"args",
"*",
"SetScriptSourceArgs",
")",
"(",
"reply",
"*",
"SetScriptSourceReply",
",",
"err",
"error",
")",
"{",
"reply",
"=",
"new",
"(",
"SetScriptSourceReply",
")",
"\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",
"}"
] |
// SetScriptSource invokes the Debugger method. Edits JavaScript source live.
|
[
"SetScriptSource",
"invokes",
"the",
"Debugger",
"method",
".",
"Edits",
"JavaScript",
"source",
"live",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/debugger/domain.go#L343-L354
|
19,191
|
mafredri/cdp
|
session/manager.go
|
Close
|
func (m *Manager) Close() error {
m.cancel()
if m.done != nil {
return errors.Wrapf(<-m.done, "session.Manager: close failed")
}
return nil
}
|
go
|
func (m *Manager) Close() error {
m.cancel()
if m.done != nil {
return errors.Wrapf(<-m.done, "session.Manager: close failed")
}
return nil
}
|
[
"func",
"(",
"m",
"*",
"Manager",
")",
"Close",
"(",
")",
"error",
"{",
"m",
".",
"cancel",
"(",
")",
"\n",
"if",
"m",
".",
"done",
"!=",
"nil",
"{",
"return",
"errors",
".",
"Wrapf",
"(",
"<-",
"m",
".",
"done",
",",
"\"",
"\"",
")",
"\n",
"}",
"\n",
"return",
"nil",
"\n",
"}"
] |
// Close closes the Manager and all active sessions. All rpcc.Conn
// created by Dial will be closed.
|
[
"Close",
"closes",
"the",
"Manager",
"and",
"all",
"active",
"sessions",
".",
"All",
"rpcc",
".",
"Conn",
"created",
"by",
"Dial",
"will",
"be",
"closed",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/session/manager.go#L61-L67
|
19,192
|
mafredri/cdp
|
session/manager.go
|
NewManager
|
func NewManager(c *cdp.Client) (*Manager, error) {
m := &Manager{
c: c,
sC: make(chan *session),
errC: make(chan error, 1),
}
// TODO(mafredri): Inherit the context from rpcc.Conn in cdp.Client.
// cdp.Client does not yet expose the context, nor rpcc.Conn.
m.ctx, m.cancel = context.WithCancel(context.TODO())
ev, err := newSessionEvents(m.ctx, c)
if err != nil {
close(m.errC)
m.Close()
return nil, err
}
m.done = make(chan error, 1)
go m.watch(ev, m.sC, m.done, m.errC)
return m, nil
}
|
go
|
func NewManager(c *cdp.Client) (*Manager, error) {
m := &Manager{
c: c,
sC: make(chan *session),
errC: make(chan error, 1),
}
// TODO(mafredri): Inherit the context from rpcc.Conn in cdp.Client.
// cdp.Client does not yet expose the context, nor rpcc.Conn.
m.ctx, m.cancel = context.WithCancel(context.TODO())
ev, err := newSessionEvents(m.ctx, c)
if err != nil {
close(m.errC)
m.Close()
return nil, err
}
m.done = make(chan error, 1)
go m.watch(ev, m.sC, m.done, m.errC)
return m, nil
}
|
[
"func",
"NewManager",
"(",
"c",
"*",
"cdp",
".",
"Client",
")",
"(",
"*",
"Manager",
",",
"error",
")",
"{",
"m",
":=",
"&",
"Manager",
"{",
"c",
":",
"c",
",",
"sC",
":",
"make",
"(",
"chan",
"*",
"session",
")",
",",
"errC",
":",
"make",
"(",
"chan",
"error",
",",
"1",
")",
",",
"}",
"\n\n",
"// TODO(mafredri): Inherit the context from rpcc.Conn in cdp.Client.",
"// cdp.Client does not yet expose the context, nor rpcc.Conn.",
"m",
".",
"ctx",
",",
"m",
".",
"cancel",
"=",
"context",
".",
"WithCancel",
"(",
"context",
".",
"TODO",
"(",
")",
")",
"\n\n",
"ev",
",",
"err",
":=",
"newSessionEvents",
"(",
"m",
".",
"ctx",
",",
"c",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"close",
"(",
"m",
".",
"errC",
")",
"\n",
"m",
".",
"Close",
"(",
")",
"\n",
"return",
"nil",
",",
"err",
"\n",
"}",
"\n\n",
"m",
".",
"done",
"=",
"make",
"(",
"chan",
"error",
",",
"1",
")",
"\n",
"go",
"m",
".",
"watch",
"(",
"ev",
",",
"m",
".",
"sC",
",",
"m",
".",
"done",
",",
"m",
".",
"errC",
")",
"\n",
"return",
"m",
",",
"nil",
"\n",
"}"
] |
// NewManager creates a new session Manager.
//
// The cdp.Client will be used to listen to events and invoke commands
// on the Target domain. It will also be used by all rpcc.Conn created
// by Dial.
|
[
"NewManager",
"creates",
"a",
"new",
"session",
"Manager",
".",
"The",
"cdp",
".",
"Client",
"will",
"be",
"used",
"to",
"listen",
"to",
"events",
"and",
"invoke",
"commands",
"on",
"the",
"Target",
"domain",
".",
"It",
"will",
"also",
"be",
"used",
"by",
"all",
"rpcc",
".",
"Conn",
"created",
"by",
"Dial",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/session/manager.go#L167-L188
|
19,193
|
mafredri/cdp
|
protocol/input/command.go
|
NewDispatchKeyEventArgs
|
func NewDispatchKeyEventArgs(typ string) *DispatchKeyEventArgs {
args := new(DispatchKeyEventArgs)
args.Type = typ
return args
}
|
go
|
func NewDispatchKeyEventArgs(typ string) *DispatchKeyEventArgs {
args := new(DispatchKeyEventArgs)
args.Type = typ
return args
}
|
[
"func",
"NewDispatchKeyEventArgs",
"(",
"typ",
"string",
")",
"*",
"DispatchKeyEventArgs",
"{",
"args",
":=",
"new",
"(",
"DispatchKeyEventArgs",
")",
"\n",
"args",
".",
"Type",
"=",
"typ",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewDispatchKeyEventArgs initializes DispatchKeyEventArgs with the required arguments.
|
[
"NewDispatchKeyEventArgs",
"initializes",
"DispatchKeyEventArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/input/command.go#L27-L31
|
19,194
|
mafredri/cdp
|
protocol/input/command.go
|
NewInsertTextArgs
|
func NewInsertTextArgs(text string) *InsertTextArgs {
args := new(InsertTextArgs)
args.Text = text
return args
}
|
go
|
func NewInsertTextArgs(text string) *InsertTextArgs {
args := new(InsertTextArgs)
args.Text = text
return args
}
|
[
"func",
"NewInsertTextArgs",
"(",
"text",
"string",
")",
"*",
"InsertTextArgs",
"{",
"args",
":=",
"new",
"(",
"InsertTextArgs",
")",
"\n",
"args",
".",
"Text",
"=",
"text",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewInsertTextArgs initializes InsertTextArgs with the required arguments.
|
[
"NewInsertTextArgs",
"initializes",
"InsertTextArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/input/command.go#L136-L140
|
19,195
|
mafredri/cdp
|
protocol/input/command.go
|
NewDispatchMouseEventArgs
|
func NewDispatchMouseEventArgs(typ string, x float64, y float64) *DispatchMouseEventArgs {
args := new(DispatchMouseEventArgs)
args.Type = typ
args.X = x
args.Y = y
return args
}
|
go
|
func NewDispatchMouseEventArgs(typ string, x float64, y float64) *DispatchMouseEventArgs {
args := new(DispatchMouseEventArgs)
args.Type = typ
args.X = x
args.Y = y
return args
}
|
[
"func",
"NewDispatchMouseEventArgs",
"(",
"typ",
"string",
",",
"x",
"float64",
",",
"y",
"float64",
")",
"*",
"DispatchMouseEventArgs",
"{",
"args",
":=",
"new",
"(",
"DispatchMouseEventArgs",
")",
"\n",
"args",
".",
"Type",
"=",
"typ",
"\n",
"args",
".",
"X",
"=",
"x",
"\n",
"args",
".",
"Y",
"=",
"y",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewDispatchMouseEventArgs initializes DispatchMouseEventArgs with the required arguments.
|
[
"NewDispatchMouseEventArgs",
"initializes",
"DispatchMouseEventArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/input/command.go#L167-L173
|
19,196
|
mafredri/cdp
|
protocol/input/command.go
|
SetButtons
|
func (a *DispatchMouseEventArgs) SetButtons(buttons int) *DispatchMouseEventArgs {
a.Buttons = &buttons
return a
}
|
go
|
func (a *DispatchMouseEventArgs) SetButtons(buttons int) *DispatchMouseEventArgs {
a.Buttons = &buttons
return a
}
|
[
"func",
"(",
"a",
"*",
"DispatchMouseEventArgs",
")",
"SetButtons",
"(",
"buttons",
"int",
")",
"*",
"DispatchMouseEventArgs",
"{",
"a",
".",
"Buttons",
"=",
"&",
"buttons",
"\n",
"return",
"a",
"\n",
"}"
] |
// SetButtons sets the Buttons optional argument. A number indicating
// which buttons are pressed on the mouse when a mouse event is
// triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
|
[
"SetButtons",
"sets",
"the",
"Buttons",
"optional",
"argument",
".",
"A",
"number",
"indicating",
"which",
"buttons",
"are",
"pressed",
"on",
"the",
"mouse",
"when",
"a",
"mouse",
"event",
"is",
"triggered",
".",
"Left",
"=",
"1",
"Right",
"=",
"2",
"Middle",
"=",
"4",
"Back",
"=",
"8",
"Forward",
"=",
"16",
"None",
"=",
"0",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/input/command.go#L202-L205
|
19,197
|
mafredri/cdp
|
protocol/input/command.go
|
NewDispatchTouchEventArgs
|
func NewDispatchTouchEventArgs(typ string, touchPoints []TouchPoint) *DispatchTouchEventArgs {
args := new(DispatchTouchEventArgs)
args.Type = typ
args.TouchPoints = touchPoints
return args
}
|
go
|
func NewDispatchTouchEventArgs(typ string, touchPoints []TouchPoint) *DispatchTouchEventArgs {
args := new(DispatchTouchEventArgs)
args.Type = typ
args.TouchPoints = touchPoints
return args
}
|
[
"func",
"NewDispatchTouchEventArgs",
"(",
"typ",
"string",
",",
"touchPoints",
"[",
"]",
"TouchPoint",
")",
"*",
"DispatchTouchEventArgs",
"{",
"args",
":=",
"new",
"(",
"DispatchTouchEventArgs",
")",
"\n",
"args",
".",
"Type",
"=",
"typ",
"\n",
"args",
".",
"TouchPoints",
"=",
"touchPoints",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewDispatchTouchEventArgs initializes DispatchTouchEventArgs with the required arguments.
|
[
"NewDispatchTouchEventArgs",
"initializes",
"DispatchTouchEventArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/input/command.go#L251-L256
|
19,198
|
mafredri/cdp
|
protocol/input/command.go
|
NewEmulateTouchFromMouseEventArgs
|
func NewEmulateTouchFromMouseEventArgs(typ string, x int, y int, button string) *EmulateTouchFromMouseEventArgs {
args := new(EmulateTouchFromMouseEventArgs)
args.Type = typ
args.X = x
args.Y = y
args.Button = button
return args
}
|
go
|
func NewEmulateTouchFromMouseEventArgs(typ string, x int, y int, button string) *EmulateTouchFromMouseEventArgs {
args := new(EmulateTouchFromMouseEventArgs)
args.Type = typ
args.X = x
args.Y = y
args.Button = button
return args
}
|
[
"func",
"NewEmulateTouchFromMouseEventArgs",
"(",
"typ",
"string",
",",
"x",
"int",
",",
"y",
"int",
",",
"button",
"string",
")",
"*",
"EmulateTouchFromMouseEventArgs",
"{",
"args",
":=",
"new",
"(",
"EmulateTouchFromMouseEventArgs",
")",
"\n",
"args",
".",
"Type",
"=",
"typ",
"\n",
"args",
".",
"X",
"=",
"x",
"\n",
"args",
".",
"Y",
"=",
"y",
"\n",
"args",
".",
"Button",
"=",
"button",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewEmulateTouchFromMouseEventArgs initializes EmulateTouchFromMouseEventArgs with the required arguments.
|
[
"NewEmulateTouchFromMouseEventArgs",
"initializes",
"EmulateTouchFromMouseEventArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/input/command.go#L293-L300
|
19,199
|
mafredri/cdp
|
protocol/input/command.go
|
NewSetIgnoreInputEventsArgs
|
func NewSetIgnoreInputEventsArgs(ignore bool) *SetIgnoreInputEventsArgs {
args := new(SetIgnoreInputEventsArgs)
args.Ignore = ignore
return args
}
|
go
|
func NewSetIgnoreInputEventsArgs(ignore bool) *SetIgnoreInputEventsArgs {
args := new(SetIgnoreInputEventsArgs)
args.Ignore = ignore
return args
}
|
[
"func",
"NewSetIgnoreInputEventsArgs",
"(",
"ignore",
"bool",
")",
"*",
"SetIgnoreInputEventsArgs",
"{",
"args",
":=",
"new",
"(",
"SetIgnoreInputEventsArgs",
")",
"\n",
"args",
".",
"Ignore",
"=",
"ignore",
"\n",
"return",
"args",
"\n",
"}"
] |
// NewSetIgnoreInputEventsArgs initializes SetIgnoreInputEventsArgs with the required arguments.
|
[
"NewSetIgnoreInputEventsArgs",
"initializes",
"SetIgnoreInputEventsArgs",
"with",
"the",
"required",
"arguments",
"."
] |
a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514
|
https://github.com/mafredri/cdp/blob/a3cd6cc58c0b7537b9614e7fa5da84bdd3c18514/protocol/input/command.go#L344-L348
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.