Updating to latest protocol.json
This commit is contained in:
parent
4bb2c55697
commit
6598ce143e
|
@ -70,7 +70,6 @@ const (
|
|||
EventPageJavascriptDialogClosed MethodType = "Page.javascriptDialogClosed"
|
||||
EventPageScreencastFrame MethodType = "Page.screencastFrame"
|
||||
EventPageScreencastVisibilityChanged MethodType = "Page.screencastVisibilityChanged"
|
||||
EventPageColorPicked MethodType = "Page.colorPicked"
|
||||
EventPageInterstitialShown MethodType = "Page.interstitialShown"
|
||||
EventPageInterstitialHidden MethodType = "Page.interstitialHidden"
|
||||
EventPageNavigationRequested MethodType = "Page.navigationRequested"
|
||||
|
@ -94,7 +93,6 @@ const (
|
|||
CommandPageStopScreencast MethodType = "Page.stopScreencast"
|
||||
CommandPageScreencastFrameAck MethodType = "Page.screencastFrameAck"
|
||||
CommandPageHandleJavaScriptDialog MethodType = "Page.handleJavaScriptDialog"
|
||||
CommandPageSetColorPickerEnabled MethodType = "Page.setColorPickerEnabled"
|
||||
CommandPageConfigureOverlay MethodType = "Page.configureOverlay"
|
||||
CommandPageGetAppManifest MethodType = "Page.getAppManifest"
|
||||
CommandPageRequestAppBanner MethodType = "Page.requestAppBanner"
|
||||
|
@ -519,8 +517,6 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
*t = EventPageScreencastFrame
|
||||
case EventPageScreencastVisibilityChanged:
|
||||
*t = EventPageScreencastVisibilityChanged
|
||||
case EventPageColorPicked:
|
||||
*t = EventPageColorPicked
|
||||
case EventPageInterstitialShown:
|
||||
*t = EventPageInterstitialShown
|
||||
case EventPageInterstitialHidden:
|
||||
|
@ -567,8 +563,6 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
|||
*t = CommandPageScreencastFrameAck
|
||||
case CommandPageHandleJavaScriptDialog:
|
||||
*t = CommandPageHandleJavaScriptDialog
|
||||
case CommandPageSetColorPickerEnabled:
|
||||
*t = CommandPageSetColorPickerEnabled
|
||||
case CommandPageConfigureOverlay:
|
||||
*t = CommandPageConfigureOverlay
|
||||
case CommandPageGetAppManifest:
|
||||
|
|
|
@ -128,9 +128,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
|||
case cdp.CommandPageHandleJavaScriptDialog:
|
||||
return emptyVal, nil
|
||||
|
||||
case cdp.CommandPageSetColorPickerEnabled:
|
||||
return emptyVal, nil
|
||||
|
||||
case cdp.CommandPageConfigureOverlay:
|
||||
return emptyVal, nil
|
||||
|
||||
|
@ -191,9 +188,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
|||
case cdp.EventPageScreencastVisibilityChanged:
|
||||
v = new(page.EventScreencastVisibilityChanged)
|
||||
|
||||
case cdp.EventPageColorPicked:
|
||||
v = new(page.EventColorPicked)
|
||||
|
||||
case cdp.EventPageInterstitialShown:
|
||||
v = new(page.EventInterstitialShown)
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -88,11 +88,6 @@ type EventScreencastVisibilityChanged struct {
|
|||
Visible bool `json:"visible,omitempty"` // True if the page is visible.
|
||||
}
|
||||
|
||||
// EventColorPicked fired when a color has been picked.
|
||||
type EventColorPicked struct {
|
||||
Color *cdp.RGBA `json:"color,omitempty"` // RGBA of the picked color.
|
||||
}
|
||||
|
||||
// EventInterstitialShown fired when interstitial page was shown.
|
||||
type EventInterstitialShown struct{}
|
||||
|
||||
|
@ -125,7 +120,6 @@ var EventTypes = []cdp.MethodType{
|
|||
cdp.EventPageJavascriptDialogClosed,
|
||||
cdp.EventPageScreencastFrame,
|
||||
cdp.EventPageScreencastVisibilityChanged,
|
||||
cdp.EventPageColorPicked,
|
||||
cdp.EventPageInterstitialShown,
|
||||
cdp.EventPageInterstitialHidden,
|
||||
cdp.EventPageNavigationRequested,
|
||||
|
|
|
@ -647,27 +647,6 @@ func (p *HandleJavaScriptDialogParams) Do(ctxt context.Context, h cdp.Handler) (
|
|||
return h.Execute(ctxt, cdp.CommandPageHandleJavaScriptDialog, p, nil)
|
||||
}
|
||||
|
||||
// SetColorPickerEnabledParams shows / hides color picker.
|
||||
type SetColorPickerEnabledParams struct {
|
||||
Enabled bool `json:"enabled"` // Shows / hides color picker
|
||||
}
|
||||
|
||||
// SetColorPickerEnabled shows / hides color picker.
|
||||
//
|
||||
// parameters:
|
||||
// enabled - Shows / hides color picker
|
||||
func SetColorPickerEnabled(enabled bool) *SetColorPickerEnabledParams {
|
||||
return &SetColorPickerEnabledParams{
|
||||
Enabled: enabled,
|
||||
}
|
||||
}
|
||||
|
||||
// Do executes Page.setColorPickerEnabled against the provided context and
|
||||
// target handler.
|
||||
func (p *SetColorPickerEnabledParams) Do(ctxt context.Context, h cdp.Handler) (err error) {
|
||||
return h.Execute(ctxt, cdp.CommandPageSetColorPickerEnabled, p, nil)
|
||||
}
|
||||
|
||||
// ConfigureOverlayParams configures overlay.
|
||||
type ConfigureOverlayParams struct {
|
||||
Suspended bool `json:"suspended,omitempty"` // Whether overlay should be suspended and not consume any resources.
|
||||
|
|
|
@ -1007,18 +1007,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "setColorPickerEnabled",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "enabled",
|
||||
"type": "boolean",
|
||||
"description": "Shows / hides color picker"
|
||||
}
|
||||
],
|
||||
"description": "Shows / hides color picker",
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "configureOverlay",
|
||||
"parameters": [
|
||||
|
@ -1297,18 +1285,6 @@
|
|||
],
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "colorPicked",
|
||||
"description": "Fired when a color has been picked.",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "color",
|
||||
"$ref": "DOM.RGBA",
|
||||
"description": "RGBA of the picked color."
|
||||
}
|
||||
],
|
||||
"experimental": true
|
||||
},
|
||||
{
|
||||
"name": "interstitialShown",
|
||||
"description": "Fired when interstitial page was shown"
|
||||
|
|
Loading…
Reference in New Issue
Block a user