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