Updating to latest protocol.json
This commit is contained in:
parent
4bb2c55697
commit
6598ce143e
|
@ -70,7 +70,6 @@ const (
|
||||||
EventPageJavascriptDialogClosed MethodType = "Page.javascriptDialogClosed"
|
EventPageJavascriptDialogClosed MethodType = "Page.javascriptDialogClosed"
|
||||||
EventPageScreencastFrame MethodType = "Page.screencastFrame"
|
EventPageScreencastFrame MethodType = "Page.screencastFrame"
|
||||||
EventPageScreencastVisibilityChanged MethodType = "Page.screencastVisibilityChanged"
|
EventPageScreencastVisibilityChanged MethodType = "Page.screencastVisibilityChanged"
|
||||||
EventPageColorPicked MethodType = "Page.colorPicked"
|
|
||||||
EventPageInterstitialShown MethodType = "Page.interstitialShown"
|
EventPageInterstitialShown MethodType = "Page.interstitialShown"
|
||||||
EventPageInterstitialHidden MethodType = "Page.interstitialHidden"
|
EventPageInterstitialHidden MethodType = "Page.interstitialHidden"
|
||||||
EventPageNavigationRequested MethodType = "Page.navigationRequested"
|
EventPageNavigationRequested MethodType = "Page.navigationRequested"
|
||||||
|
@ -94,7 +93,6 @@ const (
|
||||||
CommandPageStopScreencast MethodType = "Page.stopScreencast"
|
CommandPageStopScreencast MethodType = "Page.stopScreencast"
|
||||||
CommandPageScreencastFrameAck MethodType = "Page.screencastFrameAck"
|
CommandPageScreencastFrameAck MethodType = "Page.screencastFrameAck"
|
||||||
CommandPageHandleJavaScriptDialog MethodType = "Page.handleJavaScriptDialog"
|
CommandPageHandleJavaScriptDialog MethodType = "Page.handleJavaScriptDialog"
|
||||||
CommandPageSetColorPickerEnabled MethodType = "Page.setColorPickerEnabled"
|
|
||||||
CommandPageConfigureOverlay MethodType = "Page.configureOverlay"
|
CommandPageConfigureOverlay MethodType = "Page.configureOverlay"
|
||||||
CommandPageGetAppManifest MethodType = "Page.getAppManifest"
|
CommandPageGetAppManifest MethodType = "Page.getAppManifest"
|
||||||
CommandPageRequestAppBanner MethodType = "Page.requestAppBanner"
|
CommandPageRequestAppBanner MethodType = "Page.requestAppBanner"
|
||||||
|
@ -519,8 +517,6 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||||
*t = EventPageScreencastFrame
|
*t = EventPageScreencastFrame
|
||||||
case EventPageScreencastVisibilityChanged:
|
case EventPageScreencastVisibilityChanged:
|
||||||
*t = EventPageScreencastVisibilityChanged
|
*t = EventPageScreencastVisibilityChanged
|
||||||
case EventPageColorPicked:
|
|
||||||
*t = EventPageColorPicked
|
|
||||||
case EventPageInterstitialShown:
|
case EventPageInterstitialShown:
|
||||||
*t = EventPageInterstitialShown
|
*t = EventPageInterstitialShown
|
||||||
case EventPageInterstitialHidden:
|
case EventPageInterstitialHidden:
|
||||||
|
@ -567,8 +563,6 @@ func (t *MethodType) UnmarshalEasyJSON(in *jlexer.Lexer) {
|
||||||
*t = CommandPageScreencastFrameAck
|
*t = CommandPageScreencastFrameAck
|
||||||
case CommandPageHandleJavaScriptDialog:
|
case CommandPageHandleJavaScriptDialog:
|
||||||
*t = CommandPageHandleJavaScriptDialog
|
*t = CommandPageHandleJavaScriptDialog
|
||||||
case CommandPageSetColorPickerEnabled:
|
|
||||||
*t = CommandPageSetColorPickerEnabled
|
|
||||||
case CommandPageConfigureOverlay:
|
case CommandPageConfigureOverlay:
|
||||||
*t = CommandPageConfigureOverlay
|
*t = CommandPageConfigureOverlay
|
||||||
case CommandPageGetAppManifest:
|
case CommandPageGetAppManifest:
|
||||||
|
|
|
@ -128,9 +128,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
||||||
case cdp.CommandPageHandleJavaScriptDialog:
|
case cdp.CommandPageHandleJavaScriptDialog:
|
||||||
return emptyVal, nil
|
return emptyVal, nil
|
||||||
|
|
||||||
case cdp.CommandPageSetColorPickerEnabled:
|
|
||||||
return emptyVal, nil
|
|
||||||
|
|
||||||
case cdp.CommandPageConfigureOverlay:
|
case cdp.CommandPageConfigureOverlay:
|
||||||
return emptyVal, nil
|
return emptyVal, nil
|
||||||
|
|
||||||
|
@ -191,9 +188,6 @@ func UnmarshalMessage(msg *cdp.Message) (interface{}, error) {
|
||||||
case cdp.EventPageScreencastVisibilityChanged:
|
case cdp.EventPageScreencastVisibilityChanged:
|
||||||
v = new(page.EventScreencastVisibilityChanged)
|
v = new(page.EventScreencastVisibilityChanged)
|
||||||
|
|
||||||
case cdp.EventPageColorPicked:
|
|
||||||
v = new(page.EventColorPicked)
|
|
||||||
|
|
||||||
case cdp.EventPageInterstitialShown:
|
case cdp.EventPageInterstitialShown:
|
||||||
v = new(page.EventInterstitialShown)
|
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.
|
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.
|
// EventInterstitialShown fired when interstitial page was shown.
|
||||||
type EventInterstitialShown struct{}
|
type EventInterstitialShown struct{}
|
||||||
|
|
||||||
|
@ -125,7 +120,6 @@ var EventTypes = []cdp.MethodType{
|
||||||
cdp.EventPageJavascriptDialogClosed,
|
cdp.EventPageJavascriptDialogClosed,
|
||||||
cdp.EventPageScreencastFrame,
|
cdp.EventPageScreencastFrame,
|
||||||
cdp.EventPageScreencastVisibilityChanged,
|
cdp.EventPageScreencastVisibilityChanged,
|
||||||
cdp.EventPageColorPicked,
|
|
||||||
cdp.EventPageInterstitialShown,
|
cdp.EventPageInterstitialShown,
|
||||||
cdp.EventPageInterstitialHidden,
|
cdp.EventPageInterstitialHidden,
|
||||||
cdp.EventPageNavigationRequested,
|
cdp.EventPageNavigationRequested,
|
||||||
|
|
|
@ -647,27 +647,6 @@ func (p *HandleJavaScriptDialogParams) Do(ctxt context.Context, h cdp.Handler) (
|
||||||
return h.Execute(ctxt, cdp.CommandPageHandleJavaScriptDialog, p, nil)
|
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.
|
// ConfigureOverlayParams configures overlay.
|
||||||
type ConfigureOverlayParams struct {
|
type ConfigureOverlayParams struct {
|
||||||
Suspended bool `json:"suspended,omitempty"` // Whether overlay should be suspended and not consume any resources.
|
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",
|
"name": "configureOverlay",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
|
@ -1297,18 +1285,6 @@
|
||||||
],
|
],
|
||||||
"experimental": true
|
"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",
|
"name": "interstitialShown",
|
||||||
"description": "Fired when interstitial page was shown"
|
"description": "Fired when interstitial page was shown"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user