-
Notifications
You must be signed in to change notification settings - Fork 45
/
command19.go
36 lines (29 loc) · 1.44 KB
/
command19.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// +build go1.9
// Code generated by cdpgen. DO NOT EDIT.
package overlay
import (
"github.com/mafredri/cdp/protocol/dom"
"github.com/mafredri/cdp/protocol/page"
)
// HighlightFrameArgs represents the arguments for HighlightFrame in the Overlay domain.
type HighlightFrameArgs struct {
FrameID page.FrameID `json:"frameId"` // Identifier of the frame to highlight.
ContentColor *dom.RGBA `json:"contentColor,omitempty"` // The content box highlight fill color (default: transparent).
ContentOutlineColor *dom.RGBA `json:"contentOutlineColor,omitempty"` // The content box highlight outline color (default: transparent).
}
// NewHighlightFrameArgs initializes HighlightFrameArgs with the required arguments.
func NewHighlightFrameArgs(frameID page.FrameID) *HighlightFrameArgs {
args := new(HighlightFrameArgs)
args.FrameID = frameID
return args
}
// SetContentColor sets the ContentColor optional argument. The content box highlight fill color (default: transparent).
func (a *HighlightFrameArgs) SetContentColor(contentColor dom.RGBA) *HighlightFrameArgs {
a.ContentColor = &contentColor
return a
}
// SetContentOutlineColor sets the ContentOutlineColor optional argument. The content box highlight outline color (default: transparent).
func (a *HighlightFrameArgs) SetContentOutlineColor(contentOutlineColor dom.RGBA) *HighlightFrameArgs {
a.ContentOutlineColor = &contentOutlineColor
return a
}