From 4d5d5faf59fb85215484ba56a508b0dc03e1d998 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Wed, 23 Oct 2024 06:47:22 +0700 Subject: [PATCH] Updating to 132.0.6792.2_13.2.38 definitions --- cdp/types.go | 79 +++++++++++++++++++++++++-------------------------- go.mod | 4 +-- go.sum | 4 +-- page/types.go | 6 ++++ 4 files changed, 48 insertions(+), 45 deletions(-) diff --git a/cdp/types.go b/cdp/types.go index 7515da9e..36ac5bd1 100644 --- a/cdp/types.go +++ b/cdp/types.go @@ -168,43 +168,42 @@ func (t PseudoType) String() string { // PseudoType values. const ( - PseudoTypeFirstLine PseudoType = "first-line" - PseudoTypeFirstLetter PseudoType = "first-letter" - PseudoTypeBefore PseudoType = "before" - PseudoTypeAfter PseudoType = "after" - PseudoTypeMarker PseudoType = "marker" - PseudoTypeBackdrop PseudoType = "backdrop" - PseudoTypeColumn PseudoType = "column" - PseudoTypeSelection PseudoType = "selection" - PseudoTypeSearchText PseudoType = "search-text" - PseudoTypeTargetText PseudoType = "target-text" - PseudoTypeSpellingError PseudoType = "spelling-error" - PseudoTypeGrammarError PseudoType = "grammar-error" - PseudoTypeHighlight PseudoType = "highlight" - PseudoTypeFirstLineInherited PseudoType = "first-line-inherited" - PseudoTypeScrollMarker PseudoType = "scroll-marker" - PseudoTypeScrollMarkerGroup PseudoType = "scroll-marker-group" - PseudoTypeScrollNextButton PseudoType = "scroll-next-button" - PseudoTypeScrollPrevButton PseudoType = "scroll-prev-button" - PseudoTypeScrollbar PseudoType = "scrollbar" - PseudoTypeScrollbarThumb PseudoType = "scrollbar-thumb" - PseudoTypeScrollbarButton PseudoType = "scrollbar-button" - PseudoTypeScrollbarTrack PseudoType = "scrollbar-track" - PseudoTypeScrollbarTrackPiece PseudoType = "scrollbar-track-piece" - PseudoTypeScrollbarCorner PseudoType = "scrollbar-corner" - PseudoTypeResizer PseudoType = "resizer" - PseudoTypeInputListButton PseudoType = "input-list-button" - PseudoTypeViewTransition PseudoType = "view-transition" - PseudoTypeViewTransitionGroup PseudoType = "view-transition-group" - PseudoTypeViewTransitionImagePair PseudoType = "view-transition-image-pair" - PseudoTypeViewTransitionOld PseudoType = "view-transition-old" - PseudoTypeViewTransitionNew PseudoType = "view-transition-new" - PseudoTypePlaceholder PseudoType = "placeholder" - PseudoTypeFileSelectorButton PseudoType = "file-selector-button" - PseudoTypeDetailsContent PseudoType = "details-content" - PseudoTypeSelectFallbackButton PseudoType = "select-fallback-button" - PseudoTypeSelectFallbackButtonText PseudoType = "select-fallback-button-text" - PseudoTypePicker PseudoType = "picker" + PseudoTypeFirstLine PseudoType = "first-line" + PseudoTypeFirstLetter PseudoType = "first-letter" + PseudoTypeCheck PseudoType = "check" + PseudoTypeBefore PseudoType = "before" + PseudoTypeAfter PseudoType = "after" + PseudoTypeMarker PseudoType = "marker" + PseudoTypeBackdrop PseudoType = "backdrop" + PseudoTypeColumn PseudoType = "column" + PseudoTypeSelection PseudoType = "selection" + PseudoTypeSearchText PseudoType = "search-text" + PseudoTypeTargetText PseudoType = "target-text" + PseudoTypeSpellingError PseudoType = "spelling-error" + PseudoTypeGrammarError PseudoType = "grammar-error" + PseudoTypeHighlight PseudoType = "highlight" + PseudoTypeFirstLineInherited PseudoType = "first-line-inherited" + PseudoTypeScrollMarker PseudoType = "scroll-marker" + PseudoTypeScrollMarkerGroup PseudoType = "scroll-marker-group" + PseudoTypeScrollNextButton PseudoType = "scroll-next-button" + PseudoTypeScrollPrevButton PseudoType = "scroll-prev-button" + PseudoTypeScrollbar PseudoType = "scrollbar" + PseudoTypeScrollbarThumb PseudoType = "scrollbar-thumb" + PseudoTypeScrollbarButton PseudoType = "scrollbar-button" + PseudoTypeScrollbarTrack PseudoType = "scrollbar-track" + PseudoTypeScrollbarTrackPiece PseudoType = "scrollbar-track-piece" + PseudoTypeScrollbarCorner PseudoType = "scrollbar-corner" + PseudoTypeResizer PseudoType = "resizer" + PseudoTypeInputListButton PseudoType = "input-list-button" + PseudoTypeViewTransition PseudoType = "view-transition" + PseudoTypeViewTransitionGroup PseudoType = "view-transition-group" + PseudoTypeViewTransitionImagePair PseudoType = "view-transition-image-pair" + PseudoTypeViewTransitionOld PseudoType = "view-transition-old" + PseudoTypeViewTransitionNew PseudoType = "view-transition-new" + PseudoTypePlaceholder PseudoType = "placeholder" + PseudoTypeFileSelectorButton PseudoType = "file-selector-button" + PseudoTypeDetailsContent PseudoType = "details-content" + PseudoTypePicker PseudoType = "picker" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -225,6 +224,8 @@ func (t *PseudoType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PseudoTypeFirstLine case PseudoTypeFirstLetter: *t = PseudoTypeFirstLetter + case PseudoTypeCheck: + *t = PseudoTypeCheck case PseudoTypeBefore: *t = PseudoTypeBefore case PseudoTypeAfter: @@ -289,10 +290,6 @@ func (t *PseudoType) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PseudoTypeFileSelectorButton case PseudoTypeDetailsContent: *t = PseudoTypeDetailsContent - case PseudoTypeSelectFallbackButton: - *t = PseudoTypeSelectFallbackButton - case PseudoTypeSelectFallbackButtonText: - *t = PseudoTypeSelectFallbackButtonText case PseudoTypePicker: *t = PseudoTypePicker diff --git a/go.mod b/go.mod index 951c3499..b5c6b998 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ module github.com/chromedp/cdproto -go 1.19 +go 1.23 require ( - github.com/chromedp/sysutil v1.0.0 + github.com/chromedp/sysutil v1.1.0 github.com/mailru/easyjson v0.7.7 ) diff --git a/go.sum b/go.sum index 3cd10736..64962cff 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -github.com/chromedp/sysutil v1.0.0 h1:+ZxhTpfpZlmchB58ih/LBHX52ky7w2VhQVKQMucy3Ic= -github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww= +github.com/chromedp/sysutil v1.1.0 h1:PUFNv5EcprjqXZD9nJb9b/c9ibAbxiYo4exNWZyipwM= +github.com/chromedp/sysutil v1.1.0/go.mod h1:WiThHUdltqCNKGc4gaU50XgYjwjYIhKWoHGPTUfWTJ8= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/page/types.go b/page/types.go index b67e89b2..18f83551 100644 --- a/page/types.go +++ b/page/types.go @@ -82,6 +82,7 @@ const ( PermissionsPolicyFeatureEncryptedMedia PermissionsPolicyFeature = "encrypted-media" PermissionsPolicyFeatureExecutionWhileOutOfViewport PermissionsPolicyFeature = "execution-while-out-of-viewport" PermissionsPolicyFeatureExecutionWhileNotRendered PermissionsPolicyFeature = "execution-while-not-rendered" + PermissionsPolicyFeatureFencedFrameUnpartitionedData PermissionsPolicyFeature = "fenced-frame-unpartitioned-data" PermissionsPolicyFeatureFocusWithoutUserActivation PermissionsPolicyFeature = "focus-without-user-activation" PermissionsPolicyFeatureFullscreen PermissionsPolicyFeature = "fullscreen" PermissionsPolicyFeatureFrobulate PermissionsPolicyFeature = "frobulate" @@ -236,6 +237,8 @@ func (t *PermissionsPolicyFeature) UnmarshalEasyJSON(in *jlexer.Lexer) { *t = PermissionsPolicyFeatureExecutionWhileOutOfViewport case PermissionsPolicyFeatureExecutionWhileNotRendered: *t = PermissionsPolicyFeatureExecutionWhileNotRendered + case PermissionsPolicyFeatureFencedFrameUnpartitionedData: + *t = PermissionsPolicyFeatureFencedFrameUnpartitionedData case PermissionsPolicyFeatureFocusWithoutUserActivation: *t = PermissionsPolicyFeatureFocusWithoutUserActivation case PermissionsPolicyFeatureFullscreen: @@ -1257,6 +1260,7 @@ const ( BackForwardCacheNotRestoredReasonEmbedderExtensionMessagingForOpenPort BackForwardCacheNotRestoredReason = "EmbedderExtensionMessagingForOpenPort" BackForwardCacheNotRestoredReasonEmbedderExtensionSentMessageToCachedFrame BackForwardCacheNotRestoredReason = "EmbedderExtensionSentMessageToCachedFrame" BackForwardCacheNotRestoredReasonRequestedByWebViewClient BackForwardCacheNotRestoredReason = "RequestedByWebViewClient" + BackForwardCacheNotRestoredReasonPostMessageByWebViewClient BackForwardCacheNotRestoredReason = "PostMessageByWebViewClient" ) // MarshalEasyJSON satisfies easyjson.Marshaler. @@ -1549,6 +1553,8 @@ func (t *BackForwardCacheNotRestoredReason) UnmarshalEasyJSON(in *jlexer.Lexer) *t = BackForwardCacheNotRestoredReasonEmbedderExtensionSentMessageToCachedFrame case BackForwardCacheNotRestoredReasonRequestedByWebViewClient: *t = BackForwardCacheNotRestoredReasonRequestedByWebViewClient + case BackForwardCacheNotRestoredReasonPostMessageByWebViewClient: + *t = BackForwardCacheNotRestoredReasonPostMessageByWebViewClient default: in.AddError(fmt.Errorf("unknown BackForwardCacheNotRestoredReason value: %v", v))