Documentation
¶
Overview ¶
Package browser is the browser kind of the host screen (ADR 0008): the Chromium-family browsers of the user that opened a CDP port, and a page target of one shown through Page.startScreencast.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind struct {
// contains filtered or unexported fields
}
Kind lists and opens browsers.
func (*Kind) ListPorts ¶
ListPorts returns the browser section of host_screen.list with the CDP ports named by hand (cdp_ports) that answer on 127.0.0.1.
func (*Kind) Open ¶
func (k *Kind) Open(ctx context.Context, t wire.HostScreenTarget) (hostscreen.Stream, error)
Open connects to page target t.TargetID of the CDP port t.Port on 127.0.0.1.