chromedp/cdp/inspector/inspector.go

42 lines
1.1 KiB
Go
Raw Normal View History

2017-01-24 15:09:23 +00:00
// Package inspector provides the Chrome Debugging Protocol
// commands, types, and events for the Inspector domain.
2017-01-24 15:09:23 +00:00
//
// Generated by the chromedp-gen command.
package inspector
// Code generated by chromedp-gen. DO NOT EDIT.
2017-01-24 15:09:23 +00:00
import (
"context"
2017-01-26 07:28:34 +00:00
cdp "github.com/knq/chromedp/cdp"
2017-01-24 15:09:23 +00:00
)
// EnableParams enables inspector domain notifications.
type EnableParams struct{}
// Enable enables inspector domain notifications.
func Enable() *EnableParams {
return &EnableParams{}
}
// Do executes Inspector.enable against the provided context and
// target handler.
func (p *EnableParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandInspectorEnable, nil, nil)
2017-01-24 15:09:23 +00:00
}
// DisableParams disables inspector domain notifications.
type DisableParams struct{}
// Disable disables inspector domain notifications.
func Disable() *DisableParams {
return &DisableParams{}
}
// Do executes Inspector.disable against the provided context and
// target handler.
func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
return h.Execute(ctxt, cdp.CommandInspectorDisable, nil, nil)
2017-01-24 15:09:23 +00:00
}