vendor/github.com/go-rod/rod/lib/proto/page.go

3425 lines · 135805 bytes

   1// This file is generated by "./lib/proto/generate"
   2
   3package proto
   4
   5/*
   6
   7Page
   8
   9Actions and events related to the inspected page belong to the page domain.
  10
  11*/
  12
  13// PageFrameID Unique frame identifier.
  14type PageFrameID string
  15
  16// PageAdFrameType (experimental) Indicates whether a frame has been identified as an ad.
  17type PageAdFrameType string
  18
  19const (
  20	// PageAdFrameTypeNone enum const.
  21	PageAdFrameTypeNone PageAdFrameType = "none"
  22
  23	// PageAdFrameTypeChild enum const.
  24	PageAdFrameTypeChild PageAdFrameType = "child"
  25
  26	// PageAdFrameTypeRoot enum const.
  27	PageAdFrameTypeRoot PageAdFrameType = "root"
  28)
  29
  30// PageAdFrameExplanation (experimental) ...
  31type PageAdFrameExplanation string
  32
  33const (
  34	// PageAdFrameExplanationParentIsAd enum const.
  35	PageAdFrameExplanationParentIsAd PageAdFrameExplanation = "ParentIsAd"
  36
  37	// PageAdFrameExplanationCreatedByAdScript enum const.
  38	PageAdFrameExplanationCreatedByAdScript PageAdFrameExplanation = "CreatedByAdScript"
  39
  40	// PageAdFrameExplanationMatchedBlockingRule enum const.
  41	PageAdFrameExplanationMatchedBlockingRule PageAdFrameExplanation = "MatchedBlockingRule"
  42)
  43
  44// PageAdFrameStatus (experimental) Indicates whether a frame has been identified as an ad and why.
  45type PageAdFrameStatus struct {
  46	// AdFrameType ...
  47	AdFrameType PageAdFrameType `json:"adFrameType"`
  48
  49	// Explanations (optional) ...
  50	Explanations []PageAdFrameExplanation `json:"explanations,omitempty"`
  51}
  52
  53// PageAdScriptID (experimental) Identifies the bottom-most script which caused the frame to be labelled
  54// as an ad.
  55type PageAdScriptID struct {
  56	// ScriptID Script Id of the bottom-most script which caused the frame to be labelled
  57	// as an ad.
  58	ScriptID RuntimeScriptID `json:"scriptId"`
  59
  60	// DebuggerID Id of adScriptId's debugger.
  61	DebuggerID RuntimeUniqueDebuggerID `json:"debuggerId"`
  62}
  63
  64// PageSecureContextType (experimental) Indicates whether the frame is a secure context and why it is the case.
  65type PageSecureContextType string
  66
  67const (
  68	// PageSecureContextTypeSecure enum const.
  69	PageSecureContextTypeSecure PageSecureContextType = "Secure"
  70
  71	// PageSecureContextTypeSecureLocalhost enum const.
  72	PageSecureContextTypeSecureLocalhost PageSecureContextType = "SecureLocalhost"
  73
  74	// PageSecureContextTypeInsecureScheme enum const.
  75	PageSecureContextTypeInsecureScheme PageSecureContextType = "InsecureScheme"
  76
  77	// PageSecureContextTypeInsecureAncestor enum const.
  78	PageSecureContextTypeInsecureAncestor PageSecureContextType = "InsecureAncestor"
  79)
  80
  81// PageCrossOriginIsolatedContextType (experimental) Indicates whether the frame is cross-origin isolated and why it is the case.
  82type PageCrossOriginIsolatedContextType string
  83
  84const (
  85	// PageCrossOriginIsolatedContextTypeIsolated enum const.
  86	PageCrossOriginIsolatedContextTypeIsolated PageCrossOriginIsolatedContextType = "Isolated"
  87
  88	// PageCrossOriginIsolatedContextTypeNotIsolated enum const.
  89	PageCrossOriginIsolatedContextTypeNotIsolated PageCrossOriginIsolatedContextType = "NotIsolated"
  90
  91	// PageCrossOriginIsolatedContextTypeNotIsolatedFeatureDisabled enum const.
  92	PageCrossOriginIsolatedContextTypeNotIsolatedFeatureDisabled PageCrossOriginIsolatedContextType = "NotIsolatedFeatureDisabled"
  93)
  94
  95// PageGatedAPIFeatures (experimental) ...
  96type PageGatedAPIFeatures string
  97
  98const (
  99	// PageGatedAPIFeaturesSharedArrayBuffers enum const.
 100	PageGatedAPIFeaturesSharedArrayBuffers PageGatedAPIFeatures = "SharedArrayBuffers"
 101
 102	// PageGatedAPIFeaturesSharedArrayBuffersTransferAllowed enum const.
 103	PageGatedAPIFeaturesSharedArrayBuffersTransferAllowed PageGatedAPIFeatures = "SharedArrayBuffersTransferAllowed"
 104
 105	// PageGatedAPIFeaturesPerformanceMeasureMemory enum const.
 106	PageGatedAPIFeaturesPerformanceMeasureMemory PageGatedAPIFeatures = "PerformanceMeasureMemory"
 107
 108	// PageGatedAPIFeaturesPerformanceProfile enum const.
 109	PageGatedAPIFeaturesPerformanceProfile PageGatedAPIFeatures = "PerformanceProfile"
 110)
 111
 112// PagePermissionsPolicyFeature (experimental) All Permissions Policy features. This enum should match the one defined
 113// in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
 114type PagePermissionsPolicyFeature string
 115
 116const (
 117	// PagePermissionsPolicyFeatureAccelerometer enum const.
 118	PagePermissionsPolicyFeatureAccelerometer PagePermissionsPolicyFeature = "accelerometer"
 119
 120	// PagePermissionsPolicyFeatureAmbientLightSensor enum const.
 121	PagePermissionsPolicyFeatureAmbientLightSensor PagePermissionsPolicyFeature = "ambient-light-sensor"
 122
 123	// PagePermissionsPolicyFeatureAttributionReporting enum const.
 124	PagePermissionsPolicyFeatureAttributionReporting PagePermissionsPolicyFeature = "attribution-reporting"
 125
 126	// PagePermissionsPolicyFeatureAutoplay enum const.
 127	PagePermissionsPolicyFeatureAutoplay PagePermissionsPolicyFeature = "autoplay"
 128
 129	// PagePermissionsPolicyFeatureBluetooth enum const.
 130	PagePermissionsPolicyFeatureBluetooth PagePermissionsPolicyFeature = "bluetooth"
 131
 132	// PagePermissionsPolicyFeatureBrowsingTopics enum const.
 133	PagePermissionsPolicyFeatureBrowsingTopics PagePermissionsPolicyFeature = "browsing-topics"
 134
 135	// PagePermissionsPolicyFeatureCamera enum const.
 136	PagePermissionsPolicyFeatureCamera PagePermissionsPolicyFeature = "camera"
 137
 138	// PagePermissionsPolicyFeatureCapturedSurfaceControl enum const.
 139	PagePermissionsPolicyFeatureCapturedSurfaceControl PagePermissionsPolicyFeature = "captured-surface-control"
 140
 141	// PagePermissionsPolicyFeatureChDpr enum const.
 142	PagePermissionsPolicyFeatureChDpr PagePermissionsPolicyFeature = "ch-dpr"
 143
 144	// PagePermissionsPolicyFeatureChDeviceMemory enum const.
 145	PagePermissionsPolicyFeatureChDeviceMemory PagePermissionsPolicyFeature = "ch-device-memory"
 146
 147	// PagePermissionsPolicyFeatureChDownlink enum const.
 148	PagePermissionsPolicyFeatureChDownlink PagePermissionsPolicyFeature = "ch-downlink"
 149
 150	// PagePermissionsPolicyFeatureChEct enum const.
 151	PagePermissionsPolicyFeatureChEct PagePermissionsPolicyFeature = "ch-etc"
 152
 153	// PagePermissionsPolicyFeatureChPrefersColorScheme enum const.
 154	PagePermissionsPolicyFeatureChPrefersColorScheme PagePermissionsPolicyFeature = "ch-prefers-color-scheme"
 155
 156	// PagePermissionsPolicyFeatureChPrefersReducedMotion enum const.
 157	PagePermissionsPolicyFeatureChPrefersReducedMotion PagePermissionsPolicyFeature = "ch-prefers-reduced-motion"
 158
 159	// PagePermissionsPolicyFeatureChPrefersReducedTransparency enum const.
 160	PagePermissionsPolicyFeatureChPrefersReducedTransparency PagePermissionsPolicyFeature = "ch-prefers-reduced-transparency"
 161
 162	// PagePermissionsPolicyFeatureChRtt enum const.
 163	PagePermissionsPolicyFeatureChRtt PagePermissionsPolicyFeature = "ch-rtt"
 164
 165	// PagePermissionsPolicyFeatureChSaveData enum const.
 166	PagePermissionsPolicyFeatureChSaveData PagePermissionsPolicyFeature = "ch-save-data"
 167
 168	// PagePermissionsPolicyFeatureChUa enum const.
 169	PagePermissionsPolicyFeatureChUa PagePermissionsPolicyFeature = "ch-ua"
 170
 171	// PagePermissionsPolicyFeatureChUaArch enum const.
 172	PagePermissionsPolicyFeatureChUaArch PagePermissionsPolicyFeature = "ch-ua-arch"
 173
 174	// PagePermissionsPolicyFeatureChUaBitness enum const.
 175	PagePermissionsPolicyFeatureChUaBitness PagePermissionsPolicyFeature = "ch-ua-bitness"
 176
 177	// PagePermissionsPolicyFeatureChUaPlatform enum const.
 178	PagePermissionsPolicyFeatureChUaPlatform PagePermissionsPolicyFeature = "ch-ua-platform"
 179
 180	// PagePermissionsPolicyFeatureChUaModel enum const.
 181	PagePermissionsPolicyFeatureChUaModel PagePermissionsPolicyFeature = "ch-ua-model"
 182
 183	// PagePermissionsPolicyFeatureChUaMobile enum const.
 184	PagePermissionsPolicyFeatureChUaMobile PagePermissionsPolicyFeature = "ch-ua-mobile"
 185
 186	// PagePermissionsPolicyFeatureChUaFormFactors enum const.
 187	PagePermissionsPolicyFeatureChUaFormFactors PagePermissionsPolicyFeature = "ch-ua-form-factors"
 188
 189	// PagePermissionsPolicyFeatureChUaFullVersion enum const.
 190	PagePermissionsPolicyFeatureChUaFullVersion PagePermissionsPolicyFeature = "ch-ua-full-version"
 191
 192	// PagePermissionsPolicyFeatureChUaFullVersionList enum const.
 193	PagePermissionsPolicyFeatureChUaFullVersionList PagePermissionsPolicyFeature = "ch-ua-full-version-list"
 194
 195	// PagePermissionsPolicyFeatureChUaPlatformVersion enum const.
 196	PagePermissionsPolicyFeatureChUaPlatformVersion PagePermissionsPolicyFeature = "ch-ua-platform-version"
 197
 198	// PagePermissionsPolicyFeatureChUaWow64 enum const.
 199	PagePermissionsPolicyFeatureChUaWow64 PagePermissionsPolicyFeature = "ch-ua-wow64"
 200
 201	// PagePermissionsPolicyFeatureChViewportHeight enum const.
 202	PagePermissionsPolicyFeatureChViewportHeight PagePermissionsPolicyFeature = "ch-viewport-height"
 203
 204	// PagePermissionsPolicyFeatureChViewportWidth enum const.
 205	PagePermissionsPolicyFeatureChViewportWidth PagePermissionsPolicyFeature = "ch-viewport-width"
 206
 207	// PagePermissionsPolicyFeatureChWidth enum const.
 208	PagePermissionsPolicyFeatureChWidth PagePermissionsPolicyFeature = "ch-width"
 209
 210	// PagePermissionsPolicyFeatureClipboardRead enum const.
 211	PagePermissionsPolicyFeatureClipboardRead PagePermissionsPolicyFeature = "clipboard-read"
 212
 213	// PagePermissionsPolicyFeatureClipboardWrite enum const.
 214	PagePermissionsPolicyFeatureClipboardWrite PagePermissionsPolicyFeature = "clipboard-write"
 215
 216	// PagePermissionsPolicyFeatureComputePressure enum const.
 217	PagePermissionsPolicyFeatureComputePressure PagePermissionsPolicyFeature = "compute-pressure"
 218
 219	// PagePermissionsPolicyFeatureCrossOriginIsolated enum const.
 220	PagePermissionsPolicyFeatureCrossOriginIsolated PagePermissionsPolicyFeature = "cross-origin-isolated"
 221
 222	// PagePermissionsPolicyFeatureDeferredFetch enum const.
 223	PagePermissionsPolicyFeatureDeferredFetch PagePermissionsPolicyFeature = "deferred-fetch"
 224
 225	// PagePermissionsPolicyFeatureDirectSockets enum const.
 226	PagePermissionsPolicyFeatureDirectSockets PagePermissionsPolicyFeature = "direct-sockets"
 227
 228	// PagePermissionsPolicyFeatureDisplayCapture enum const.
 229	PagePermissionsPolicyFeatureDisplayCapture PagePermissionsPolicyFeature = "display-capture"
 230
 231	// PagePermissionsPolicyFeatureDocumentDomain enum const.
 232	PagePermissionsPolicyFeatureDocumentDomain PagePermissionsPolicyFeature = "document-domain"
 233
 234	// PagePermissionsPolicyFeatureEncryptedMedia enum const.
 235	PagePermissionsPolicyFeatureEncryptedMedia PagePermissionsPolicyFeature = "encrypted-media"
 236
 237	// PagePermissionsPolicyFeatureExecutionWhileOutOfViewport enum const.
 238	PagePermissionsPolicyFeatureExecutionWhileOutOfViewport PagePermissionsPolicyFeature = "execution-while-out-of-viewport"
 239
 240	// PagePermissionsPolicyFeatureExecutionWhileNotRendered enum const.
 241	PagePermissionsPolicyFeatureExecutionWhileNotRendered PagePermissionsPolicyFeature = "execution-while-not-rendered"
 242
 243	// PagePermissionsPolicyFeatureFocusWithoutUserActivation enum const.
 244	PagePermissionsPolicyFeatureFocusWithoutUserActivation PagePermissionsPolicyFeature = "focus-without-user-activation"
 245
 246	// PagePermissionsPolicyFeatureFullscreen enum const.
 247	PagePermissionsPolicyFeatureFullscreen PagePermissionsPolicyFeature = "fullscreen"
 248
 249	// PagePermissionsPolicyFeatureFrobulate enum const.
 250	PagePermissionsPolicyFeatureFrobulate PagePermissionsPolicyFeature = "frobulate"
 251
 252	// PagePermissionsPolicyFeatureGamepad enum const.
 253	PagePermissionsPolicyFeatureGamepad PagePermissionsPolicyFeature = "gamepad"
 254
 255	// PagePermissionsPolicyFeatureGeolocation enum const.
 256	PagePermissionsPolicyFeatureGeolocation PagePermissionsPolicyFeature = "geolocation"
 257
 258	// PagePermissionsPolicyFeatureGyroscope enum const.
 259	PagePermissionsPolicyFeatureGyroscope PagePermissionsPolicyFeature = "gyroscope"
 260
 261	// PagePermissionsPolicyFeatureHid enum const.
 262	PagePermissionsPolicyFeatureHid PagePermissionsPolicyFeature = "hid"
 263
 264	// PagePermissionsPolicyFeatureIdentityCredentialsGet enum const.
 265	PagePermissionsPolicyFeatureIdentityCredentialsGet PagePermissionsPolicyFeature = "identity-credentials-get"
 266
 267	// PagePermissionsPolicyFeatureIdleDetection enum const.
 268	PagePermissionsPolicyFeatureIdleDetection PagePermissionsPolicyFeature = "idle-detection"
 269
 270	// PagePermissionsPolicyFeatureInterestCohort enum const.
 271	PagePermissionsPolicyFeatureInterestCohort PagePermissionsPolicyFeature = "interest-cohort"
 272
 273	// PagePermissionsPolicyFeatureJoinAdInterestGroup enum const.
 274	PagePermissionsPolicyFeatureJoinAdInterestGroup PagePermissionsPolicyFeature = "join-ad-interest-group"
 275
 276	// PagePermissionsPolicyFeatureKeyboardMap enum const.
 277	PagePermissionsPolicyFeatureKeyboardMap PagePermissionsPolicyFeature = "keyboard-map"
 278
 279	// PagePermissionsPolicyFeatureLocalFonts enum const.
 280	PagePermissionsPolicyFeatureLocalFonts PagePermissionsPolicyFeature = "local-fonts"
 281
 282	// PagePermissionsPolicyFeatureMagnetometer enum const.
 283	PagePermissionsPolicyFeatureMagnetometer PagePermissionsPolicyFeature = "magnetometer"
 284
 285	// PagePermissionsPolicyFeatureMicrophone enum const.
 286	PagePermissionsPolicyFeatureMicrophone PagePermissionsPolicyFeature = "microphone"
 287
 288	// PagePermissionsPolicyFeatureMidi enum const.
 289	PagePermissionsPolicyFeatureMidi PagePermissionsPolicyFeature = "midi"
 290
 291	// PagePermissionsPolicyFeatureOtpCredentials enum const.
 292	PagePermissionsPolicyFeatureOtpCredentials PagePermissionsPolicyFeature = "otp-credentials"
 293
 294	// PagePermissionsPolicyFeaturePayment enum const.
 295	PagePermissionsPolicyFeaturePayment PagePermissionsPolicyFeature = "payment"
 296
 297	// PagePermissionsPolicyFeaturePictureInPicture enum const.
 298	PagePermissionsPolicyFeaturePictureInPicture PagePermissionsPolicyFeature = "picture-in-picture"
 299
 300	// PagePermissionsPolicyFeaturePrivateAggregation enum const.
 301	PagePermissionsPolicyFeaturePrivateAggregation PagePermissionsPolicyFeature = "private-aggregation"
 302
 303	// PagePermissionsPolicyFeaturePrivateStateTokenIssuance enum const.
 304	PagePermissionsPolicyFeaturePrivateStateTokenIssuance PagePermissionsPolicyFeature = "private-state-token-issuance"
 305
 306	// PagePermissionsPolicyFeaturePrivateStateTokenRedemption enum const.
 307	PagePermissionsPolicyFeaturePrivateStateTokenRedemption PagePermissionsPolicyFeature = "private-state-token-redemption"
 308
 309	// PagePermissionsPolicyFeaturePublickeyCredentialsCreate enum const.
 310	PagePermissionsPolicyFeaturePublickeyCredentialsCreate PagePermissionsPolicyFeature = "publickey-credentials-create"
 311
 312	// PagePermissionsPolicyFeaturePublickeyCredentialsGet enum const.
 313	PagePermissionsPolicyFeaturePublickeyCredentialsGet PagePermissionsPolicyFeature = "publickey-credentials-get"
 314
 315	// PagePermissionsPolicyFeatureRunAdAuction enum const.
 316	PagePermissionsPolicyFeatureRunAdAuction PagePermissionsPolicyFeature = "run-ad-auction"
 317
 318	// PagePermissionsPolicyFeatureScreenWakeLock enum const.
 319	PagePermissionsPolicyFeatureScreenWakeLock PagePermissionsPolicyFeature = "screen-wake-lock"
 320
 321	// PagePermissionsPolicyFeatureSerial enum const.
 322	PagePermissionsPolicyFeatureSerial PagePermissionsPolicyFeature = "serial"
 323
 324	// PagePermissionsPolicyFeatureSharedAutofill enum const.
 325	PagePermissionsPolicyFeatureSharedAutofill PagePermissionsPolicyFeature = "shared-autofill"
 326
 327	// PagePermissionsPolicyFeatureSharedStorage enum const.
 328	PagePermissionsPolicyFeatureSharedStorage PagePermissionsPolicyFeature = "shared-storage"
 329
 330	// PagePermissionsPolicyFeatureSharedStorageSelectURL enum const.
 331	PagePermissionsPolicyFeatureSharedStorageSelectURL PagePermissionsPolicyFeature = "shared-storage-select-url"
 332
 333	// PagePermissionsPolicyFeatureSmartCard enum const.
 334	PagePermissionsPolicyFeatureSmartCard PagePermissionsPolicyFeature = "smart-card"
 335
 336	// PagePermissionsPolicyFeatureSpeakerSelection enum const.
 337	PagePermissionsPolicyFeatureSpeakerSelection PagePermissionsPolicyFeature = "speaker-selection"
 338
 339	// PagePermissionsPolicyFeatureStorageAccess enum const.
 340	PagePermissionsPolicyFeatureStorageAccess PagePermissionsPolicyFeature = "storage-access"
 341
 342	// PagePermissionsPolicyFeatureSubApps enum const.
 343	PagePermissionsPolicyFeatureSubApps PagePermissionsPolicyFeature = "sub-apps"
 344
 345	// PagePermissionsPolicyFeatureSyncXhr enum const.
 346	PagePermissionsPolicyFeatureSyncXhr PagePermissionsPolicyFeature = "sync-xhr"
 347
 348	// PagePermissionsPolicyFeatureUnload enum const.
 349	PagePermissionsPolicyFeatureUnload PagePermissionsPolicyFeature = "unload"
 350
 351	// PagePermissionsPolicyFeatureUsb enum const.
 352	PagePermissionsPolicyFeatureUsb PagePermissionsPolicyFeature = "usb"
 353
 354	// PagePermissionsPolicyFeatureUsbUnrestricted enum const.
 355	PagePermissionsPolicyFeatureUsbUnrestricted PagePermissionsPolicyFeature = "usb-unrestricted"
 356
 357	// PagePermissionsPolicyFeatureVerticalScroll enum const.
 358	PagePermissionsPolicyFeatureVerticalScroll PagePermissionsPolicyFeature = "vertical-scroll"
 359
 360	// PagePermissionsPolicyFeatureWebPrinting enum const.
 361	PagePermissionsPolicyFeatureWebPrinting PagePermissionsPolicyFeature = "web-printing"
 362
 363	// PagePermissionsPolicyFeatureWebShare enum const.
 364	PagePermissionsPolicyFeatureWebShare PagePermissionsPolicyFeature = "web-share"
 365
 366	// PagePermissionsPolicyFeatureWindowManagement enum const.
 367	PagePermissionsPolicyFeatureWindowManagement PagePermissionsPolicyFeature = "window-management"
 368
 369	// PagePermissionsPolicyFeatureXrSpatialTracking enum const.
 370	PagePermissionsPolicyFeatureXrSpatialTracking PagePermissionsPolicyFeature = "xr-spatial-tracking"
 371)
 372
 373// PagePermissionsPolicyBlockReason (experimental) Reason for a permissions policy feature to be disabled.
 374type PagePermissionsPolicyBlockReason string
 375
 376const (
 377	// PagePermissionsPolicyBlockReasonHeader enum const.
 378	PagePermissionsPolicyBlockReasonHeader PagePermissionsPolicyBlockReason = "Header"
 379
 380	// PagePermissionsPolicyBlockReasonIframeAttribute enum const.
 381	PagePermissionsPolicyBlockReasonIframeAttribute PagePermissionsPolicyBlockReason = "IframeAttribute"
 382
 383	// PagePermissionsPolicyBlockReasonInFencedFrameTree enum const.
 384	PagePermissionsPolicyBlockReasonInFencedFrameTree PagePermissionsPolicyBlockReason = "InFencedFrameTree"
 385
 386	// PagePermissionsPolicyBlockReasonInIsolatedApp enum const.
 387	PagePermissionsPolicyBlockReasonInIsolatedApp PagePermissionsPolicyBlockReason = "InIsolatedApp"
 388)
 389
 390// PagePermissionsPolicyBlockLocator (experimental) ...
 391type PagePermissionsPolicyBlockLocator struct {
 392	// FrameID ...
 393	FrameID PageFrameID `json:"frameId"`
 394
 395	// BlockReason ...
 396	BlockReason PagePermissionsPolicyBlockReason `json:"blockReason"`
 397}
 398
 399// PagePermissionsPolicyFeatureState (experimental) ...
 400type PagePermissionsPolicyFeatureState struct {
 401	// Feature ...
 402	Feature PagePermissionsPolicyFeature `json:"feature"`
 403
 404	// Allowed ...
 405	Allowed bool `json:"allowed"`
 406
 407	// Locator (optional) ...
 408	Locator *PagePermissionsPolicyBlockLocator `json:"locator,omitempty"`
 409}
 410
 411// PageOriginTrialTokenStatus (experimental) Origin Trial(https://www.chromium.org/blink/origin-trials) support.
 412// Status for an Origin Trial token.
 413type PageOriginTrialTokenStatus string
 414
 415const (
 416	// PageOriginTrialTokenStatusSuccess enum const.
 417	PageOriginTrialTokenStatusSuccess PageOriginTrialTokenStatus = "Success"
 418
 419	// PageOriginTrialTokenStatusNotSupported enum const.
 420	PageOriginTrialTokenStatusNotSupported PageOriginTrialTokenStatus = "NotSupported"
 421
 422	// PageOriginTrialTokenStatusInsecure enum const.
 423	PageOriginTrialTokenStatusInsecure PageOriginTrialTokenStatus = "Insecure"
 424
 425	// PageOriginTrialTokenStatusExpired enum const.
 426	PageOriginTrialTokenStatusExpired PageOriginTrialTokenStatus = "Expired"
 427
 428	// PageOriginTrialTokenStatusWrongOrigin enum const.
 429	PageOriginTrialTokenStatusWrongOrigin PageOriginTrialTokenStatus = "WrongOrigin"
 430
 431	// PageOriginTrialTokenStatusInvalidSignature enum const.
 432	PageOriginTrialTokenStatusInvalidSignature PageOriginTrialTokenStatus = "InvalidSignature"
 433
 434	// PageOriginTrialTokenStatusMalformed enum const.
 435	PageOriginTrialTokenStatusMalformed PageOriginTrialTokenStatus = "Malformed"
 436
 437	// PageOriginTrialTokenStatusWrongVersion enum const.
 438	PageOriginTrialTokenStatusWrongVersion PageOriginTrialTokenStatus = "WrongVersion"
 439
 440	// PageOriginTrialTokenStatusFeatureDisabled enum const.
 441	PageOriginTrialTokenStatusFeatureDisabled PageOriginTrialTokenStatus = "FeatureDisabled"
 442
 443	// PageOriginTrialTokenStatusTokenDisabled enum const.
 444	PageOriginTrialTokenStatusTokenDisabled PageOriginTrialTokenStatus = "TokenDisabled"
 445
 446	// PageOriginTrialTokenStatusFeatureDisabledForUser enum const.
 447	PageOriginTrialTokenStatusFeatureDisabledForUser PageOriginTrialTokenStatus = "FeatureDisabledForUser"
 448
 449	// PageOriginTrialTokenStatusUnknownTrial enum const.
 450	PageOriginTrialTokenStatusUnknownTrial PageOriginTrialTokenStatus = "UnknownTrial"
 451)
 452
 453// PageOriginTrialStatus (experimental) Status for an Origin Trial.
 454type PageOriginTrialStatus string
 455
 456const (
 457	// PageOriginTrialStatusEnabled enum const.
 458	PageOriginTrialStatusEnabled PageOriginTrialStatus = "Enabled"
 459
 460	// PageOriginTrialStatusValidTokenNotProvided enum const.
 461	PageOriginTrialStatusValidTokenNotProvided PageOriginTrialStatus = "ValidTokenNotProvided"
 462
 463	// PageOriginTrialStatusOSNotSupported enum const.
 464	PageOriginTrialStatusOSNotSupported PageOriginTrialStatus = "OSNotSupported"
 465
 466	// PageOriginTrialStatusTrialNotAllowed enum const.
 467	PageOriginTrialStatusTrialNotAllowed PageOriginTrialStatus = "TrialNotAllowed"
 468)
 469
 470// PageOriginTrialUsageRestriction (experimental) ...
 471type PageOriginTrialUsageRestriction string
 472
 473const (
 474	// PageOriginTrialUsageRestrictionNone enum const.
 475	PageOriginTrialUsageRestrictionNone PageOriginTrialUsageRestriction = "None"
 476
 477	// PageOriginTrialUsageRestrictionSubset enum const.
 478	PageOriginTrialUsageRestrictionSubset PageOriginTrialUsageRestriction = "Subset"
 479)
 480
 481// PageOriginTrialToken (experimental) ...
 482type PageOriginTrialToken struct {
 483	// Origin ...
 484	Origin string `json:"origin"`
 485
 486	// MatchSubDomains ...
 487	MatchSubDomains bool `json:"matchSubDomains"`
 488
 489	// TrialName ...
 490	TrialName string `json:"trialName"`
 491
 492	// ExpiryTime ...
 493	ExpiryTime TimeSinceEpoch `json:"expiryTime"`
 494
 495	// IsThirdParty ...
 496	IsThirdParty bool `json:"isThirdParty"`
 497
 498	// UsageRestriction ...
 499	UsageRestriction PageOriginTrialUsageRestriction `json:"usageRestriction"`
 500}
 501
 502// PageOriginTrialTokenWithStatus (experimental) ...
 503type PageOriginTrialTokenWithStatus struct {
 504	// RawTokenText ...
 505	RawTokenText string `json:"rawTokenText"`
 506
 507	// ParsedToken (optional) `parsedToken` is present only when the token is extractable and
 508	// parsable.
 509	ParsedToken *PageOriginTrialToken `json:"parsedToken,omitempty"`
 510
 511	// Status ...
 512	Status PageOriginTrialTokenStatus `json:"status"`
 513}
 514
 515// PageOriginTrial (experimental) ...
 516type PageOriginTrial struct {
 517	// TrialName ...
 518	TrialName string `json:"trialName"`
 519
 520	// Status ...
 521	Status PageOriginTrialStatus `json:"status"`
 522
 523	// TokensWithStatus ...
 524	TokensWithStatus []*PageOriginTrialTokenWithStatus `json:"tokensWithStatus"`
 525}
 526
 527// PageFrame Information about the Frame on the page.
 528type PageFrame struct {
 529	// ID Frame unique identifier.
 530	ID PageFrameID `json:"id"`
 531
 532	// ParentID (optional) Parent frame identifier.
 533	ParentID PageFrameID `json:"parentId,omitempty"`
 534
 535	// LoaderID Identifier of the loader associated with this frame.
 536	LoaderID NetworkLoaderID `json:"loaderId"`
 537
 538	// Name (optional) Frame's name as specified in the tag.
 539	Name string `json:"name,omitempty"`
 540
 541	// URL Frame document's URL without fragment.
 542	URL string `json:"url"`
 543
 544	// URLFragment (experimental) (optional) Frame document's URL fragment including the '#'.
 545	URLFragment string `json:"urlFragment,omitempty"`
 546
 547	// DomainAndRegistry (experimental) Frame document's registered domain, taking the public suffixes list into account.
 548	// Extracted from the Frame's url.
 549	// Example URLs: http://www.google.com/file.html -> "google.com"
 550	//               http://a.b.co.uk/file.html      -> "b.co.uk"
 551	DomainAndRegistry string `json:"domainAndRegistry"`
 552
 553	// SecurityOrigin Frame document's security origin.
 554	SecurityOrigin string `json:"securityOrigin"`
 555
 556	// MIMEType Frame document's mimeType as determined by the browser.
 557	MIMEType string `json:"mimeType"`
 558
 559	// UnreachableURL (experimental) (optional) If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
 560	UnreachableURL string `json:"unreachableUrl,omitempty"`
 561
 562	// AdFrameStatus (experimental) (optional) Indicates whether this frame was tagged as an ad and why.
 563	AdFrameStatus *PageAdFrameStatus `json:"adFrameStatus,omitempty"`
 564
 565	// SecureContextType (experimental) Indicates whether the main document is a secure context and explains why that is the case.
 566	SecureContextType PageSecureContextType `json:"secureContextType"`
 567
 568	// CrossOriginIsolatedContextType (experimental) Indicates whether this is a cross origin isolated context.
 569	CrossOriginIsolatedContextType PageCrossOriginIsolatedContextType `json:"crossOriginIsolatedContextType"`
 570
 571	// GatedAPIFeatures (experimental) Indicated which gated APIs / features are available.
 572	GatedAPIFeatures []PageGatedAPIFeatures `json:"gatedAPIFeatures"`
 573}
 574
 575// PageFrameResource (experimental) Information about the Resource on the page.
 576type PageFrameResource struct {
 577	// URL Resource URL.
 578	URL string `json:"url"`
 579
 580	// Type of this resource.
 581	Type NetworkResourceType `json:"type"`
 582
 583	// MIMEType Resource mimeType as determined by the browser.
 584	MIMEType string `json:"mimeType"`
 585
 586	// LastModified (optional) last-modified timestamp as reported by server.
 587	LastModified TimeSinceEpoch `json:"lastModified,omitempty"`
 588
 589	// ContentSize (optional) Resource content size.
 590	ContentSize *float64 `json:"contentSize,omitempty"`
 591
 592	// Failed (optional) True if the resource failed to load.
 593	Failed bool `json:"failed,omitempty"`
 594
 595	// Canceled (optional) True if the resource was canceled during loading.
 596	Canceled bool `json:"canceled,omitempty"`
 597}
 598
 599// PageFrameResourceTree (experimental) Information about the Frame hierarchy along with their cached resources.
 600type PageFrameResourceTree struct {
 601	// Frame information for this tree item.
 602	Frame *PageFrame `json:"frame"`
 603
 604	// ChildFrames (optional) Child frames.
 605	ChildFrames []*PageFrameResourceTree `json:"childFrames,omitempty"`
 606
 607	// Resources Information about frame resources.
 608	Resources []*PageFrameResource `json:"resources"`
 609}
 610
 611// PageFrameTree Information about the Frame hierarchy.
 612type PageFrameTree struct {
 613	// Frame information for this tree item.
 614	Frame *PageFrame `json:"frame"`
 615
 616	// ChildFrames (optional) Child frames.
 617	ChildFrames []*PageFrameTree `json:"childFrames,omitempty"`
 618}
 619
 620// PageScriptIdentifier Unique script identifier.
 621type PageScriptIdentifier string
 622
 623// PageTransitionType Transition type.
 624type PageTransitionType string
 625
 626const (
 627	// PageTransitionTypeLink enum const.
 628	PageTransitionTypeLink PageTransitionType = "link"
 629
 630	// PageTransitionTypeTyped enum const.
 631	PageTransitionTypeTyped PageTransitionType = "typed"
 632
 633	// PageTransitionTypeAddressBar enum const.
 634	PageTransitionTypeAddressBar PageTransitionType = "address_bar"
 635
 636	// PageTransitionTypeAutoBookmark enum const.
 637	PageTransitionTypeAutoBookmark PageTransitionType = "auto_bookmark"
 638
 639	// PageTransitionTypeAutoSubframe enum const.
 640	PageTransitionTypeAutoSubframe PageTransitionType = "auto_subframe"
 641
 642	// PageTransitionTypeManualSubframe enum const.
 643	PageTransitionTypeManualSubframe PageTransitionType = "manual_subframe"
 644
 645	// PageTransitionTypeGenerated enum const.
 646	PageTransitionTypeGenerated PageTransitionType = "generated"
 647
 648	// PageTransitionTypeAutoToplevel enum const.
 649	PageTransitionTypeAutoToplevel PageTransitionType = "auto_toplevel"
 650
 651	// PageTransitionTypeFormSubmit enum const.
 652	PageTransitionTypeFormSubmit PageTransitionType = "form_submit"
 653
 654	// PageTransitionTypeReload enum const.
 655	PageTransitionTypeReload PageTransitionType = "reload"
 656
 657	// PageTransitionTypeKeyword enum const.
 658	PageTransitionTypeKeyword PageTransitionType = "keyword"
 659
 660	// PageTransitionTypeKeywordGenerated enum const.
 661	PageTransitionTypeKeywordGenerated PageTransitionType = "keyword_generated"
 662
 663	// PageTransitionTypeOther enum const.
 664	PageTransitionTypeOther PageTransitionType = "other"
 665)
 666
 667// PageNavigationEntry Navigation history entry.
 668type PageNavigationEntry struct {
 669	// ID Unique id of the navigation history entry.
 670	ID int `json:"id"`
 671
 672	// URL of the navigation history entry.
 673	URL string `json:"url"`
 674
 675	// UserTypedURL URL that the user typed in the url bar.
 676	UserTypedURL string `json:"userTypedURL"`
 677
 678	// Title of the navigation history entry.
 679	Title string `json:"title"`
 680
 681	// TransitionType Transition type.
 682	TransitionType PageTransitionType `json:"transitionType"`
 683}
 684
 685// PageScreencastFrameMetadata (experimental) Screencast frame metadata.
 686type PageScreencastFrameMetadata struct {
 687	// OffsetTop Top offset in DIP.
 688	OffsetTop float64 `json:"offsetTop"`
 689
 690	// PageScaleFactor Page scale factor.
 691	PageScaleFactor float64 `json:"pageScaleFactor"`
 692
 693	// DeviceWidth Device screen width in DIP.
 694	DeviceWidth float64 `json:"deviceWidth"`
 695
 696	// DeviceHeight Device screen height in DIP.
 697	DeviceHeight float64 `json:"deviceHeight"`
 698
 699	// ScrollOffsetX Position of horizontal scroll in CSS pixels.
 700	ScrollOffsetX float64 `json:"scrollOffsetX"`
 701
 702	// ScrollOffsetY Position of vertical scroll in CSS pixels.
 703	ScrollOffsetY float64 `json:"scrollOffsetY"`
 704
 705	// Timestamp (optional) Frame swap timestamp.
 706	Timestamp TimeSinceEpoch `json:"timestamp,omitempty"`
 707}
 708
 709// PageDialogType Javascript dialog type.
 710type PageDialogType string
 711
 712const (
 713	// PageDialogTypeAlert enum const.
 714	PageDialogTypeAlert PageDialogType = "alert"
 715
 716	// PageDialogTypeConfirm enum const.
 717	PageDialogTypeConfirm PageDialogType = "confirm"
 718
 719	// PageDialogTypePrompt enum const.
 720	PageDialogTypePrompt PageDialogType = "prompt"
 721
 722	// PageDialogTypeBeforeunload enum const.
 723	PageDialogTypeBeforeunload PageDialogType = "beforeunload"
 724)
 725
 726// PageAppManifestError Error while paring app manifest.
 727type PageAppManifestError struct {
 728	// Message Error message.
 729	Message string `json:"message"`
 730
 731	// Critical If critical, this is a non-recoverable parse error.
 732	Critical int `json:"critical"`
 733
 734	// Line Error line.
 735	Line int `json:"line"`
 736
 737	// Column Error column.
 738	Column int `json:"column"`
 739}
 740
 741// PageAppManifestParsedProperties (experimental) Parsed app manifest properties.
 742type PageAppManifestParsedProperties struct {
 743	// Scope Computed scope value
 744	Scope string `json:"scope"`
 745}
 746
 747// PageLayoutViewport Layout viewport position and dimensions.
 748type PageLayoutViewport struct {
 749	// PageX Horizontal offset relative to the document (CSS pixels).
 750	PageX int `json:"pageX"`
 751
 752	// PageY Vertical offset relative to the document (CSS pixels).
 753	PageY int `json:"pageY"`
 754
 755	// ClientWidth Width (CSS pixels), excludes scrollbar if present.
 756	ClientWidth int `json:"clientWidth"`
 757
 758	// ClientHeight Height (CSS pixels), excludes scrollbar if present.
 759	ClientHeight int `json:"clientHeight"`
 760}
 761
 762// PageVisualViewport Visual viewport position, dimensions, and scale.
 763type PageVisualViewport struct {
 764	// OffsetX Horizontal offset relative to the layout viewport (CSS pixels).
 765	OffsetX float64 `json:"offsetX"`
 766
 767	// OffsetY Vertical offset relative to the layout viewport (CSS pixels).
 768	OffsetY float64 `json:"offsetY"`
 769
 770	// PageX Horizontal offset relative to the document (CSS pixels).
 771	PageX float64 `json:"pageX"`
 772
 773	// PageY Vertical offset relative to the document (CSS pixels).
 774	PageY float64 `json:"pageY"`
 775
 776	// ClientWidth Width (CSS pixels), excludes scrollbar if present.
 777	ClientWidth float64 `json:"clientWidth"`
 778
 779	// ClientHeight Height (CSS pixels), excludes scrollbar if present.
 780	ClientHeight float64 `json:"clientHeight"`
 781
 782	// Scale relative to the ideal viewport (size at width=device-width).
 783	Scale float64 `json:"scale"`
 784
 785	// Zoom (optional) Page zoom factor (CSS to device independent pixels ratio).
 786	Zoom *float64 `json:"zoom,omitempty"`
 787}
 788
 789// PageViewport Viewport for capturing screenshot.
 790type PageViewport struct {
 791	// X offset in device independent pixels (dip).
 792	X float64 `json:"x"`
 793
 794	// Y offset in device independent pixels (dip).
 795	Y float64 `json:"y"`
 796
 797	// Width Rectangle width in device independent pixels (dip).
 798	Width float64 `json:"width"`
 799
 800	// Height Rectangle height in device independent pixels (dip).
 801	Height float64 `json:"height"`
 802
 803	// Scale Page scale factor.
 804	Scale float64 `json:"scale"`
 805}
 806
 807// PageFontFamilies (experimental) Generic font families collection.
 808type PageFontFamilies struct {
 809	// Standard (optional) The standard font-family.
 810	Standard string `json:"standard,omitempty"`
 811
 812	// Fixed (optional) The fixed font-family.
 813	Fixed string `json:"fixed,omitempty"`
 814
 815	// Serif (optional) The serif font-family.
 816	Serif string `json:"serif,omitempty"`
 817
 818	// SansSerif (optional) The sansSerif font-family.
 819	SansSerif string `json:"sansSerif,omitempty"`
 820
 821	// Cursive (optional) The cursive font-family.
 822	Cursive string `json:"cursive,omitempty"`
 823
 824	// Fantasy (optional) The fantasy font-family.
 825	Fantasy string `json:"fantasy,omitempty"`
 826
 827	// Math (optional) The math font-family.
 828	Math string `json:"math,omitempty"`
 829}
 830
 831// PageScriptFontFamilies (experimental) Font families collection for a script.
 832type PageScriptFontFamilies struct {
 833	// Script Name of the script which these font families are defined for.
 834	Script string `json:"script"`
 835
 836	// FontFamilies Generic font families collection for the script.
 837	FontFamilies *PageFontFamilies `json:"fontFamilies"`
 838}
 839
 840// PageFontSizes (experimental) Default font sizes.
 841type PageFontSizes struct {
 842	// Standard (optional) Default standard font size.
 843	Standard *int `json:"standard,omitempty"`
 844
 845	// Fixed (optional) Default fixed font size.
 846	Fixed *int `json:"fixed,omitempty"`
 847}
 848
 849// PageClientNavigationReason (experimental) ...
 850type PageClientNavigationReason string
 851
 852const (
 853	// PageClientNavigationReasonFormSubmissionGet enum const.
 854	PageClientNavigationReasonFormSubmissionGet PageClientNavigationReason = "formSubmissionGet"
 855
 856	// PageClientNavigationReasonFormSubmissionPost enum const.
 857	PageClientNavigationReasonFormSubmissionPost PageClientNavigationReason = "formSubmissionPost"
 858
 859	// PageClientNavigationReasonHTTPHeaderRefresh enum const.
 860	PageClientNavigationReasonHTTPHeaderRefresh PageClientNavigationReason = "httpHeaderRefresh"
 861
 862	// PageClientNavigationReasonScriptInitiated enum const.
 863	PageClientNavigationReasonScriptInitiated PageClientNavigationReason = "scriptInitiated"
 864
 865	// PageClientNavigationReasonMetaTagRefresh enum const.
 866	PageClientNavigationReasonMetaTagRefresh PageClientNavigationReason = "metaTagRefresh"
 867
 868	// PageClientNavigationReasonPageBlockInterstitial enum const.
 869	PageClientNavigationReasonPageBlockInterstitial PageClientNavigationReason = "pageBlockInterstitial"
 870
 871	// PageClientNavigationReasonReload enum const.
 872	PageClientNavigationReasonReload PageClientNavigationReason = "reload"
 873
 874	// PageClientNavigationReasonAnchorClick enum const.
 875	PageClientNavigationReasonAnchorClick PageClientNavigationReason = "anchorClick"
 876)
 877
 878// PageClientNavigationDisposition (experimental) ...
 879type PageClientNavigationDisposition string
 880
 881const (
 882	// PageClientNavigationDispositionCurrentTab enum const.
 883	PageClientNavigationDispositionCurrentTab PageClientNavigationDisposition = "currentTab"
 884
 885	// PageClientNavigationDispositionNewTab enum const.
 886	PageClientNavigationDispositionNewTab PageClientNavigationDisposition = "newTab"
 887
 888	// PageClientNavigationDispositionNewWindow enum const.
 889	PageClientNavigationDispositionNewWindow PageClientNavigationDisposition = "newWindow"
 890
 891	// PageClientNavigationDispositionDownload enum const.
 892	PageClientNavigationDispositionDownload PageClientNavigationDisposition = "download"
 893)
 894
 895// PageInstallabilityErrorArgument (experimental) ...
 896type PageInstallabilityErrorArgument struct {
 897	// Name Argument name (e.g. name:'minimum-icon-size-in-pixels').
 898	Name string `json:"name"`
 899
 900	// Value Argument value (e.g. value:'64').
 901	Value string `json:"value"`
 902}
 903
 904// PageInstallabilityError (experimental) The installability error.
 905type PageInstallabilityError struct {
 906	// ErrorID The error id (e.g. 'manifest-missing-suitable-icon').
 907	ErrorID string `json:"errorId"`
 908
 909	// ErrorArguments The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}).
 910	ErrorArguments []*PageInstallabilityErrorArgument `json:"errorArguments"`
 911}
 912
 913// PageReferrerPolicy (experimental) The referring-policy used for the navigation.
 914type PageReferrerPolicy string
 915
 916const (
 917	// PageReferrerPolicyNoReferrer enum const.
 918	PageReferrerPolicyNoReferrer PageReferrerPolicy = "noReferrer"
 919
 920	// PageReferrerPolicyNoReferrerWhenDowngrade enum const.
 921	PageReferrerPolicyNoReferrerWhenDowngrade PageReferrerPolicy = "noReferrerWhenDowngrade"
 922
 923	// PageReferrerPolicyOrigin enum const.
 924	PageReferrerPolicyOrigin PageReferrerPolicy = "origin"
 925
 926	// PageReferrerPolicyOriginWhenCrossOrigin enum const.
 927	PageReferrerPolicyOriginWhenCrossOrigin PageReferrerPolicy = "originWhenCrossOrigin"
 928
 929	// PageReferrerPolicySameOrigin enum const.
 930	PageReferrerPolicySameOrigin PageReferrerPolicy = "sameOrigin"
 931
 932	// PageReferrerPolicyStrictOrigin enum const.
 933	PageReferrerPolicyStrictOrigin PageReferrerPolicy = "strictOrigin"
 934
 935	// PageReferrerPolicyStrictOriginWhenCrossOrigin enum const.
 936	PageReferrerPolicyStrictOriginWhenCrossOrigin PageReferrerPolicy = "strictOriginWhenCrossOrigin"
 937
 938	// PageReferrerPolicyUnsafeURL enum const.
 939	PageReferrerPolicyUnsafeURL PageReferrerPolicy = "unsafeUrl"
 940)
 941
 942// PageCompilationCacheParams (experimental) Per-script compilation cache parameters for `Page.produceCompilationCache`.
 943type PageCompilationCacheParams struct {
 944	// URL The URL of the script to produce a compilation cache entry for.
 945	URL string `json:"url"`
 946
 947	// Eager (optional) A hint to the backend whether eager compilation is recommended.
 948	// (the actual compilation mode used is upon backend discretion).
 949	Eager bool `json:"eager,omitempty"`
 950}
 951
 952// PageFileFilter (experimental) ...
 953type PageFileFilter struct {
 954	// Name (optional) ...
 955	Name string `json:"name,omitempty"`
 956
 957	// Accepts (optional) ...
 958	Accepts []string `json:"accepts,omitempty"`
 959}
 960
 961// PageFileHandler (experimental) ...
 962type PageFileHandler struct {
 963	// Action ...
 964	Action string `json:"action"`
 965
 966	// Name ...
 967	Name string `json:"name"`
 968
 969	// Icons (optional) ...
 970	Icons []*PageImageResource `json:"icons,omitempty"`
 971
 972	// Accepts (optional) Mimic a map, name is the key, accepts is the value.
 973	Accepts []*PageFileFilter `json:"accepts,omitempty"`
 974
 975	// LaunchType Won't repeat the enums, using string for easy comparison. Same as the
 976	// other enums below.
 977	LaunchType string `json:"launchType"`
 978}
 979
 980// PageImageResource (experimental) The image definition used in both icon and screenshot.
 981type PageImageResource struct {
 982	// URL The src field in the definition, but changing to url in favor of
 983	// consistency.
 984	URL string `json:"url"`
 985
 986	// Sizes (optional) ...
 987	Sizes string `json:"sizes,omitempty"`
 988
 989	// Type (optional) ...
 990	Type string `json:"type,omitempty"`
 991}
 992
 993// PageLaunchHandler (experimental) ...
 994type PageLaunchHandler struct {
 995	// ClientMode ...
 996	ClientMode string `json:"clientMode"`
 997}
 998
 999// PageProtocolHandler (experimental) ...
1000type PageProtocolHandler struct {
1001	// Protocol ...
1002	Protocol string `json:"protocol"`
1003
1004	// URL ...
1005	URL string `json:"url"`
1006}
1007
1008// PageRelatedApplication (experimental) ...
1009type PageRelatedApplication struct {
1010	// ID (optional) ...
1011	ID string `json:"id,omitempty"`
1012
1013	// URL ...
1014	URL string `json:"url"`
1015}
1016
1017// PageScopeExtension (experimental) ...
1018type PageScopeExtension struct {
1019	// Origin Instead of using tuple, this field always returns the serialized string
1020	// for easy understanding and comparison.
1021	Origin string `json:"origin"`
1022
1023	// HasOriginWildcard ...
1024	HasOriginWildcard bool `json:"hasOriginWildcard"`
1025}
1026
1027// PageScreenshot (experimental) ...
1028type PageScreenshot struct {
1029	// Image ...
1030	Image *PageImageResource `json:"image"`
1031
1032	// FormFactor ...
1033	FormFactor string `json:"formFactor"`
1034
1035	// Label (optional) ...
1036	Label string `json:"label,omitempty"`
1037}
1038
1039// PageShareTarget (experimental) ...
1040type PageShareTarget struct {
1041	// Action ...
1042	Action string `json:"action"`
1043
1044	// Method ...
1045	Method string `json:"method"`
1046
1047	// Enctype ...
1048	Enctype string `json:"enctype"`
1049
1050	// Title (optional) Embed the ShareTargetParams
1051	Title string `json:"title,omitempty"`
1052
1053	// Text (optional) ...
1054	Text string `json:"text,omitempty"`
1055
1056	// URL (optional) ...
1057	URL string `json:"url,omitempty"`
1058
1059	// Files (optional) ...
1060	Files []*PageFileFilter `json:"files,omitempty"`
1061}
1062
1063// PageShortcut (experimental) ...
1064type PageShortcut struct {
1065	// Name ...
1066	Name string `json:"name"`
1067
1068	// URL ...
1069	URL string `json:"url"`
1070}
1071
1072// PageWebAppManifest (experimental) ...
1073type PageWebAppManifest struct {
1074	// BackgroundColor (optional) ...
1075	BackgroundColor string `json:"backgroundColor,omitempty"`
1076
1077	// Description (optional) The extra description provided by the manifest.
1078	Description string `json:"description,omitempty"`
1079
1080	// Dir (optional) ...
1081	Dir string `json:"dir,omitempty"`
1082
1083	// Display (optional) ...
1084	Display string `json:"display,omitempty"`
1085
1086	// DisplayOverrides (optional) The overrided display mode controlled by the user.
1087	DisplayOverrides []string `json:"displayOverrides,omitempty"`
1088
1089	// FileHandlers (optional) The handlers to open files.
1090	FileHandlers []*PageFileHandler `json:"fileHandlers,omitempty"`
1091
1092	// Icons (optional) ...
1093	Icons []*PageImageResource `json:"icons,omitempty"`
1094
1095	// ID (optional) ...
1096	ID string `json:"id,omitempty"`
1097
1098	// Lang (optional) ...
1099	Lang string `json:"lang,omitempty"`
1100
1101	// LaunchHandler (optional) TODO(crbug.com/1231886): This field is non-standard and part of a Chrome
1102	// experiment. See:
1103	// https://github.com/WICG/web-app-launch/blob/main/launch_handler.md
1104	LaunchHandler *PageLaunchHandler `json:"launchHandler,omitempty"`
1105
1106	// Name (optional) ...
1107	Name string `json:"name,omitempty"`
1108
1109	// Orientation (optional) ...
1110	Orientation string `json:"orientation,omitempty"`
1111
1112	// PreferRelatedApplications (optional) ...
1113	PreferRelatedApplications bool `json:"preferRelatedApplications,omitempty"`
1114
1115	// ProtocolHandlers (optional) The handlers to open protocols.
1116	ProtocolHandlers []*PageProtocolHandler `json:"protocolHandlers,omitempty"`
1117
1118	// RelatedApplications (optional) ...
1119	RelatedApplications []*PageRelatedApplication `json:"relatedApplications,omitempty"`
1120
1121	// Scope (optional) ...
1122	Scope string `json:"scope,omitempty"`
1123
1124	// ScopeExtensions (optional) Non-standard, see
1125	// https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md
1126	ScopeExtensions []*PageScopeExtension `json:"scopeExtensions,omitempty"`
1127
1128	// Screenshots (optional) The screenshots used by chromium.
1129	Screenshots []*PageScreenshot `json:"screenshots,omitempty"`
1130
1131	// ShareTarget (optional) ...
1132	ShareTarget *PageShareTarget `json:"shareTarget,omitempty"`
1133
1134	// ShortName (optional) ...
1135	ShortName string `json:"shortName,omitempty"`
1136
1137	// Shortcuts (optional) ...
1138	Shortcuts []*PageShortcut `json:"shortcuts,omitempty"`
1139
1140	// StartURL (optional) ...
1141	StartURL string `json:"startUrl,omitempty"`
1142
1143	// ThemeColor (optional) ...
1144	ThemeColor string `json:"themeColor,omitempty"`
1145}
1146
1147// PageAutoResponseMode (experimental) Enum of possible auto-response for permission / prompt dialogs.
1148type PageAutoResponseMode string
1149
1150const (
1151	// PageAutoResponseModeNone enum const.
1152	PageAutoResponseModeNone PageAutoResponseMode = "none"
1153
1154	// PageAutoResponseModeAutoAccept enum const.
1155	PageAutoResponseModeAutoAccept PageAutoResponseMode = "autoAccept"
1156
1157	// PageAutoResponseModeAutoReject enum const.
1158	PageAutoResponseModeAutoReject PageAutoResponseMode = "autoReject"
1159
1160	// PageAutoResponseModeAutoOptOut enum const.
1161	PageAutoResponseModeAutoOptOut PageAutoResponseMode = "autoOptOut"
1162)
1163
1164// PageNavigationType (experimental) The type of a frameNavigated event.
1165type PageNavigationType string
1166
1167const (
1168	// PageNavigationTypeNavigation enum const.
1169	PageNavigationTypeNavigation PageNavigationType = "Navigation"
1170
1171	// PageNavigationTypeBackForwardCacheRestore enum const.
1172	PageNavigationTypeBackForwardCacheRestore PageNavigationType = "BackForwardCacheRestore"
1173)
1174
1175// PageBackForwardCacheNotRestoredReason (experimental) List of not restored reasons for back-forward cache.
1176type PageBackForwardCacheNotRestoredReason string
1177
1178const (
1179	// PageBackForwardCacheNotRestoredReasonNotPrimaryMainFrame enum const.
1180	PageBackForwardCacheNotRestoredReasonNotPrimaryMainFrame PageBackForwardCacheNotRestoredReason = "NotPrimaryMainFrame"
1181
1182	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabled enum const.
1183	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabled PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabled"
1184
1185	// PageBackForwardCacheNotRestoredReasonRelatedActiveContentsExist enum const.
1186	PageBackForwardCacheNotRestoredReasonRelatedActiveContentsExist PageBackForwardCacheNotRestoredReason = "RelatedActiveContentsExist"
1187
1188	// PageBackForwardCacheNotRestoredReasonHTTPStatusNotOK enum const.
1189	PageBackForwardCacheNotRestoredReasonHTTPStatusNotOK PageBackForwardCacheNotRestoredReason = "HTTPStatusNotOK"
1190
1191	// PageBackForwardCacheNotRestoredReasonSchemeNotHTTPOrHTTPS enum const.
1192	PageBackForwardCacheNotRestoredReasonSchemeNotHTTPOrHTTPS PageBackForwardCacheNotRestoredReason = "SchemeNotHTTPOrHTTPS"
1193
1194	// PageBackForwardCacheNotRestoredReasonLoading enum const.
1195	PageBackForwardCacheNotRestoredReasonLoading PageBackForwardCacheNotRestoredReason = "Loading"
1196
1197	// PageBackForwardCacheNotRestoredReasonWasGrantedMediaAccess enum const.
1198	PageBackForwardCacheNotRestoredReasonWasGrantedMediaAccess PageBackForwardCacheNotRestoredReason = "WasGrantedMediaAccess"
1199
1200	// PageBackForwardCacheNotRestoredReasonDisableForRenderFrameHostCalled enum const.
1201	PageBackForwardCacheNotRestoredReasonDisableForRenderFrameHostCalled PageBackForwardCacheNotRestoredReason = "DisableForRenderFrameHostCalled"
1202
1203	// PageBackForwardCacheNotRestoredReasonDomainNotAllowed enum const.
1204	PageBackForwardCacheNotRestoredReasonDomainNotAllowed PageBackForwardCacheNotRestoredReason = "DomainNotAllowed"
1205
1206	// PageBackForwardCacheNotRestoredReasonHTTPMethodNotGET enum const.
1207	PageBackForwardCacheNotRestoredReasonHTTPMethodNotGET PageBackForwardCacheNotRestoredReason = "HTTPMethodNotGET"
1208
1209	// PageBackForwardCacheNotRestoredReasonSubframeIsNavigating enum const.
1210	PageBackForwardCacheNotRestoredReasonSubframeIsNavigating PageBackForwardCacheNotRestoredReason = "SubframeIsNavigating"
1211
1212	// PageBackForwardCacheNotRestoredReasonTimeout enum const.
1213	PageBackForwardCacheNotRestoredReasonTimeout PageBackForwardCacheNotRestoredReason = "Timeout"
1214
1215	// PageBackForwardCacheNotRestoredReasonCacheLimit enum const.
1216	PageBackForwardCacheNotRestoredReasonCacheLimit PageBackForwardCacheNotRestoredReason = "CacheLimit"
1217
1218	// PageBackForwardCacheNotRestoredReasonJavaScriptExecution enum const.
1219	PageBackForwardCacheNotRestoredReasonJavaScriptExecution PageBackForwardCacheNotRestoredReason = "JavaScriptExecution"
1220
1221	// PageBackForwardCacheNotRestoredReasonRendererProcessKilled enum const.
1222	PageBackForwardCacheNotRestoredReasonRendererProcessKilled PageBackForwardCacheNotRestoredReason = "RendererProcessKilled"
1223
1224	// PageBackForwardCacheNotRestoredReasonRendererProcessCrashed enum const.
1225	PageBackForwardCacheNotRestoredReasonRendererProcessCrashed PageBackForwardCacheNotRestoredReason = "RendererProcessCrashed"
1226
1227	// PageBackForwardCacheNotRestoredReasonSchedulerTrackedFeatureUsed enum const.
1228	PageBackForwardCacheNotRestoredReasonSchedulerTrackedFeatureUsed PageBackForwardCacheNotRestoredReason = "SchedulerTrackedFeatureUsed"
1229
1230	// PageBackForwardCacheNotRestoredReasonConflictingBrowsingInstance enum const.
1231	PageBackForwardCacheNotRestoredReasonConflictingBrowsingInstance PageBackForwardCacheNotRestoredReason = "ConflictingBrowsingInstance"
1232
1233	// PageBackForwardCacheNotRestoredReasonCacheFlushed enum const.
1234	PageBackForwardCacheNotRestoredReasonCacheFlushed PageBackForwardCacheNotRestoredReason = "CacheFlushed"
1235
1236	// PageBackForwardCacheNotRestoredReasonServiceWorkerVersionActivation enum const.
1237	PageBackForwardCacheNotRestoredReasonServiceWorkerVersionActivation PageBackForwardCacheNotRestoredReason = "ServiceWorkerVersionActivation"
1238
1239	// PageBackForwardCacheNotRestoredReasonSessionRestored enum const.
1240	PageBackForwardCacheNotRestoredReasonSessionRestored PageBackForwardCacheNotRestoredReason = "SessionRestored"
1241
1242	// PageBackForwardCacheNotRestoredReasonServiceWorkerPostMessage enum const.
1243	PageBackForwardCacheNotRestoredReasonServiceWorkerPostMessage PageBackForwardCacheNotRestoredReason = "ServiceWorkerPostMessage"
1244
1245	// PageBackForwardCacheNotRestoredReasonEnteredBackForwardCacheBeforeServiceWorkerHostAdded enum const.
1246	PageBackForwardCacheNotRestoredReasonEnteredBackForwardCacheBeforeServiceWorkerHostAdded PageBackForwardCacheNotRestoredReason = "EnteredBackForwardCacheBeforeServiceWorkerHostAdded"
1247
1248	// PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedSameSite enum const.
1249	PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedSameSite PageBackForwardCacheNotRestoredReason = "RenderFrameHostReused_SameSite"
1250
1251	// PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedCrossSite enum const.
1252	PageBackForwardCacheNotRestoredReasonRenderFrameHostReusedCrossSite PageBackForwardCacheNotRestoredReason = "RenderFrameHostReused_CrossSite"
1253
1254	// PageBackForwardCacheNotRestoredReasonServiceWorkerClaim enum const.
1255	PageBackForwardCacheNotRestoredReasonServiceWorkerClaim PageBackForwardCacheNotRestoredReason = "ServiceWorkerClaim"
1256
1257	// PageBackForwardCacheNotRestoredReasonIgnoreEventAndEvict enum const.
1258	PageBackForwardCacheNotRestoredReasonIgnoreEventAndEvict PageBackForwardCacheNotRestoredReason = "IgnoreEventAndEvict"
1259
1260	// PageBackForwardCacheNotRestoredReasonHaveInnerContents enum const.
1261	PageBackForwardCacheNotRestoredReasonHaveInnerContents PageBackForwardCacheNotRestoredReason = "HaveInnerContents"
1262
1263	// PageBackForwardCacheNotRestoredReasonTimeoutPuttingInCache enum const.
1264	PageBackForwardCacheNotRestoredReasonTimeoutPuttingInCache PageBackForwardCacheNotRestoredReason = "TimeoutPuttingInCache"
1265
1266	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByLowMemory enum const.
1267	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByLowMemory PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledByLowMemory"
1268
1269	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByCommandLine enum const.
1270	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledByCommandLine PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledByCommandLine"
1271
1272	// PageBackForwardCacheNotRestoredReasonNetworkRequestDatapipeDrainedAsBytesConsumer enum const.
1273	PageBackForwardCacheNotRestoredReasonNetworkRequestDatapipeDrainedAsBytesConsumer PageBackForwardCacheNotRestoredReason = "NetworkRequestDatapipeDrainedAsBytesConsumer"
1274
1275	// PageBackForwardCacheNotRestoredReasonNetworkRequestRedirected enum const.
1276	PageBackForwardCacheNotRestoredReasonNetworkRequestRedirected PageBackForwardCacheNotRestoredReason = "NetworkRequestRedirected"
1277
1278	// PageBackForwardCacheNotRestoredReasonNetworkRequestTimeout enum const.
1279	PageBackForwardCacheNotRestoredReasonNetworkRequestTimeout PageBackForwardCacheNotRestoredReason = "NetworkRequestTimeout"
1280
1281	// PageBackForwardCacheNotRestoredReasonNetworkExceedsBufferLimit enum const.
1282	PageBackForwardCacheNotRestoredReasonNetworkExceedsBufferLimit PageBackForwardCacheNotRestoredReason = "NetworkExceedsBufferLimit"
1283
1284	// PageBackForwardCacheNotRestoredReasonNavigationCancelledWhileRestoring enum const.
1285	PageBackForwardCacheNotRestoredReasonNavigationCancelledWhileRestoring PageBackForwardCacheNotRestoredReason = "NavigationCancelledWhileRestoring"
1286
1287	// PageBackForwardCacheNotRestoredReasonNotMostRecentNavigationEntry enum const.
1288	PageBackForwardCacheNotRestoredReasonNotMostRecentNavigationEntry PageBackForwardCacheNotRestoredReason = "NotMostRecentNavigationEntry"
1289
1290	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForPrerender enum const.
1291	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForPrerender PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledForPrerender"
1292
1293	// PageBackForwardCacheNotRestoredReasonUserAgentOverrideDiffers enum const.
1294	PageBackForwardCacheNotRestoredReasonUserAgentOverrideDiffers PageBackForwardCacheNotRestoredReason = "UserAgentOverrideDiffers"
1295
1296	// PageBackForwardCacheNotRestoredReasonForegroundCacheLimit enum const.
1297	PageBackForwardCacheNotRestoredReasonForegroundCacheLimit PageBackForwardCacheNotRestoredReason = "ForegroundCacheLimit"
1298
1299	// PageBackForwardCacheNotRestoredReasonBrowsingInstanceNotSwapped enum const.
1300	PageBackForwardCacheNotRestoredReasonBrowsingInstanceNotSwapped PageBackForwardCacheNotRestoredReason = "BrowsingInstanceNotSwapped"
1301
1302	// PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForDelegate enum const.
1303	PageBackForwardCacheNotRestoredReasonBackForwardCacheDisabledForDelegate PageBackForwardCacheNotRestoredReason = "BackForwardCacheDisabledForDelegate"
1304
1305	// PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInMainFrame enum const.
1306	PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInMainFrame PageBackForwardCacheNotRestoredReason = "UnloadHandlerExistsInMainFrame"
1307
1308	// PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInSubFrame enum const.
1309	PageBackForwardCacheNotRestoredReasonUnloadHandlerExistsInSubFrame PageBackForwardCacheNotRestoredReason = "UnloadHandlerExistsInSubFrame"
1310
1311	// PageBackForwardCacheNotRestoredReasonServiceWorkerUnregistration enum const.
1312	PageBackForwardCacheNotRestoredReasonServiceWorkerUnregistration PageBackForwardCacheNotRestoredReason = "ServiceWorkerUnregistration"
1313
1314	// PageBackForwardCacheNotRestoredReasonCacheControlNoStore enum const.
1315	PageBackForwardCacheNotRestoredReasonCacheControlNoStore PageBackForwardCacheNotRestoredReason = "CacheControlNoStore"
1316
1317	// PageBackForwardCacheNotRestoredReasonCacheControlNoStoreCookieModified enum const.
1318	PageBackForwardCacheNotRestoredReasonCacheControlNoStoreCookieModified PageBackForwardCacheNotRestoredReason = "CacheControlNoStoreCookieModified"
1319
1320	// PageBackForwardCacheNotRestoredReasonCacheControlNoStoreHTTPOnlyCookieModified enum const.
1321	PageBackForwardCacheNotRestoredReasonCacheControlNoStoreHTTPOnlyCookieModified PageBackForwardCacheNotRestoredReason = "CacheControlNoStoreHTTPOnlyCookieModified"
1322
1323	// PageBackForwardCacheNotRestoredReasonNoResponseHead enum const.
1324	PageBackForwardCacheNotRestoredReasonNoResponseHead PageBackForwardCacheNotRestoredReason = "NoResponseHead"
1325
1326	// PageBackForwardCacheNotRestoredReasonUnknown enum const.
1327	PageBackForwardCacheNotRestoredReasonUnknown PageBackForwardCacheNotRestoredReason = "Unknown"
1328
1329	// PageBackForwardCacheNotRestoredReasonActivationNavigationsDisallowedForBug1234857 enum const.
1330	PageBackForwardCacheNotRestoredReasonActivationNavigationsDisallowedForBug1234857 PageBackForwardCacheNotRestoredReason = "ActivationNavigationsDisallowedForBug1234857"
1331
1332	// PageBackForwardCacheNotRestoredReasonErrorDocument enum const.
1333	PageBackForwardCacheNotRestoredReasonErrorDocument PageBackForwardCacheNotRestoredReason = "ErrorDocument"
1334
1335	// PageBackForwardCacheNotRestoredReasonFencedFramesEmbedder enum const.
1336	PageBackForwardCacheNotRestoredReasonFencedFramesEmbedder PageBackForwardCacheNotRestoredReason = "FencedFramesEmbedder"
1337
1338	// PageBackForwardCacheNotRestoredReasonCookieDisabled enum const.
1339	PageBackForwardCacheNotRestoredReasonCookieDisabled PageBackForwardCacheNotRestoredReason = "CookieDisabled"
1340
1341	// PageBackForwardCacheNotRestoredReasonHTTPAuthRequired enum const.
1342	PageBackForwardCacheNotRestoredReasonHTTPAuthRequired PageBackForwardCacheNotRestoredReason = "HTTPAuthRequired"
1343
1344	// PageBackForwardCacheNotRestoredReasonCookieFlushed enum const.
1345	PageBackForwardCacheNotRestoredReasonCookieFlushed PageBackForwardCacheNotRestoredReason = "CookieFlushed"
1346
1347	// PageBackForwardCacheNotRestoredReasonBroadcastChannelOnMessage enum const.
1348	PageBackForwardCacheNotRestoredReasonBroadcastChannelOnMessage PageBackForwardCacheNotRestoredReason = "BroadcastChannelOnMessage"
1349
1350	// PageBackForwardCacheNotRestoredReasonWebViewSettingsChanged enum const.
1351	PageBackForwardCacheNotRestoredReasonWebViewSettingsChanged PageBackForwardCacheNotRestoredReason = "WebViewSettingsChanged"
1352
1353	// PageBackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged enum const.
1354	PageBackForwardCacheNotRestoredReasonWebViewJavaScriptObjectChanged PageBackForwardCacheNotRestoredReason = "WebViewJavaScriptObjectChanged"
1355
1356	// PageBackForwardCacheNotRestoredReasonWebViewMessageListenerInjected enum const.
1357	PageBackForwardCacheNotRestoredReasonWebViewMessageListenerInjected PageBackForwardCacheNotRestoredReason = "WebViewMessageListenerInjected"
1358
1359	// PageBackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged enum const.
1360	PageBackForwardCacheNotRestoredReasonWebViewSafeBrowsingAllowlistChanged PageBackForwardCacheNotRestoredReason = "WebViewSafeBrowsingAllowlistChanged"
1361
1362	// PageBackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged enum const.
1363	PageBackForwardCacheNotRestoredReasonWebViewDocumentStartJavascriptChanged PageBackForwardCacheNotRestoredReason = "WebViewDocumentStartJavascriptChanged"
1364
1365	// PageBackForwardCacheNotRestoredReasonWebSocket enum const.
1366	PageBackForwardCacheNotRestoredReasonWebSocket PageBackForwardCacheNotRestoredReason = "WebSocket"
1367
1368	// PageBackForwardCacheNotRestoredReasonWebTransport enum const.
1369	PageBackForwardCacheNotRestoredReasonWebTransport PageBackForwardCacheNotRestoredReason = "WebTransport"
1370
1371	// PageBackForwardCacheNotRestoredReasonWebRTC enum const.
1372	PageBackForwardCacheNotRestoredReasonWebRTC PageBackForwardCacheNotRestoredReason = "WebRTC"
1373
1374	// PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoStore enum const.
1375	PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoStore PageBackForwardCacheNotRestoredReason = "MainResourceHasCacheControlNoStore"
1376
1377	// PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoCache enum const.
1378	PageBackForwardCacheNotRestoredReasonMainResourceHasCacheControlNoCache PageBackForwardCacheNotRestoredReason = "MainResourceHasCacheControlNoCache"
1379
1380	// PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoStore enum const.
1381	PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoStore PageBackForwardCacheNotRestoredReason = "SubresourceHasCacheControlNoStore"
1382
1383	// PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoCache enum const.
1384	PageBackForwardCacheNotRestoredReasonSubresourceHasCacheControlNoCache PageBackForwardCacheNotRestoredReason = "SubresourceHasCacheControlNoCache"
1385
1386	// PageBackForwardCacheNotRestoredReasonContainsPlugins enum const.
1387	PageBackForwardCacheNotRestoredReasonContainsPlugins PageBackForwardCacheNotRestoredReason = "ContainsPlugins"
1388
1389	// PageBackForwardCacheNotRestoredReasonDocumentLoaded enum const.
1390	PageBackForwardCacheNotRestoredReasonDocumentLoaded PageBackForwardCacheNotRestoredReason = "DocumentLoaded"
1391
1392	// PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestOthers enum const.
1393	PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestOthers PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestOthers"
1394
1395	// PageBackForwardCacheNotRestoredReasonRequestedMIDIPermission enum const.
1396	PageBackForwardCacheNotRestoredReasonRequestedMIDIPermission PageBackForwardCacheNotRestoredReason = "RequestedMIDIPermission"
1397
1398	// PageBackForwardCacheNotRestoredReasonRequestedAudioCapturePermission enum const.
1399	PageBackForwardCacheNotRestoredReasonRequestedAudioCapturePermission PageBackForwardCacheNotRestoredReason = "RequestedAudioCapturePermission"
1400
1401	// PageBackForwardCacheNotRestoredReasonRequestedVideoCapturePermission enum const.
1402	PageBackForwardCacheNotRestoredReasonRequestedVideoCapturePermission PageBackForwardCacheNotRestoredReason = "RequestedVideoCapturePermission"
1403
1404	// PageBackForwardCacheNotRestoredReasonRequestedBackForwardCacheBlockedSensors enum const.
1405	PageBackForwardCacheNotRestoredReasonRequestedBackForwardCacheBlockedSensors PageBackForwardCacheNotRestoredReason = "RequestedBackForwardCacheBlockedSensors"
1406
1407	// PageBackForwardCacheNotRestoredReasonRequestedBackgroundWorkPermission enum const.
1408	PageBackForwardCacheNotRestoredReasonRequestedBackgroundWorkPermission PageBackForwardCacheNotRestoredReason = "RequestedBackgroundWorkPermission"
1409
1410	// PageBackForwardCacheNotRestoredReasonBroadcastChannel enum const.
1411	PageBackForwardCacheNotRestoredReasonBroadcastChannel PageBackForwardCacheNotRestoredReason = "BroadcastChannel"
1412
1413	// PageBackForwardCacheNotRestoredReasonWebXR enum const.
1414	PageBackForwardCacheNotRestoredReasonWebXR PageBackForwardCacheNotRestoredReason = "WebXR"
1415
1416	// PageBackForwardCacheNotRestoredReasonSharedWorker enum const.
1417	PageBackForwardCacheNotRestoredReasonSharedWorker PageBackForwardCacheNotRestoredReason = "SharedWorker"
1418
1419	// PageBackForwardCacheNotRestoredReasonWebLocks enum const.
1420	PageBackForwardCacheNotRestoredReasonWebLocks PageBackForwardCacheNotRestoredReason = "WebLocks"
1421
1422	// PageBackForwardCacheNotRestoredReasonWebHID enum const.
1423	PageBackForwardCacheNotRestoredReasonWebHID PageBackForwardCacheNotRestoredReason = "WebHID"
1424
1425	// PageBackForwardCacheNotRestoredReasonWebShare enum const.
1426	PageBackForwardCacheNotRestoredReasonWebShare PageBackForwardCacheNotRestoredReason = "WebShare"
1427
1428	// PageBackForwardCacheNotRestoredReasonRequestedStorageAccessGrant enum const.
1429	PageBackForwardCacheNotRestoredReasonRequestedStorageAccessGrant PageBackForwardCacheNotRestoredReason = "RequestedStorageAccessGrant"
1430
1431	// PageBackForwardCacheNotRestoredReasonWebNfc enum const.
1432	PageBackForwardCacheNotRestoredReasonWebNfc PageBackForwardCacheNotRestoredReason = "WebNfc"
1433
1434	// PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestFetch enum const.
1435	PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestFetch PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestFetch"
1436
1437	// PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestXHR enum const.
1438	PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestXHR PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestXHR"
1439
1440	// PageBackForwardCacheNotRestoredReasonAppBanner enum const.
1441	PageBackForwardCacheNotRestoredReasonAppBanner PageBackForwardCacheNotRestoredReason = "AppBanner"
1442
1443	// PageBackForwardCacheNotRestoredReasonPrinting enum const.
1444	PageBackForwardCacheNotRestoredReasonPrinting PageBackForwardCacheNotRestoredReason = "Printing"
1445
1446	// PageBackForwardCacheNotRestoredReasonWebDatabase enum const.
1447	PageBackForwardCacheNotRestoredReasonWebDatabase PageBackForwardCacheNotRestoredReason = "WebDatabase"
1448
1449	// PageBackForwardCacheNotRestoredReasonPictureInPicture enum const.
1450	PageBackForwardCacheNotRestoredReasonPictureInPicture PageBackForwardCacheNotRestoredReason = "PictureInPicture"
1451
1452	// PageBackForwardCacheNotRestoredReasonPortal enum const.
1453	PageBackForwardCacheNotRestoredReasonPortal PageBackForwardCacheNotRestoredReason = "Portal"
1454
1455	// PageBackForwardCacheNotRestoredReasonSpeechRecognizer enum const.
1456	PageBackForwardCacheNotRestoredReasonSpeechRecognizer PageBackForwardCacheNotRestoredReason = "SpeechRecognizer"
1457
1458	// PageBackForwardCacheNotRestoredReasonIdleManager enum const.
1459	PageBackForwardCacheNotRestoredReasonIdleManager PageBackForwardCacheNotRestoredReason = "IdleManager"
1460
1461	// PageBackForwardCacheNotRestoredReasonPaymentManager enum const.
1462	PageBackForwardCacheNotRestoredReasonPaymentManager PageBackForwardCacheNotRestoredReason = "PaymentManager"
1463
1464	// PageBackForwardCacheNotRestoredReasonSpeechSynthesis enum const.
1465	PageBackForwardCacheNotRestoredReasonSpeechSynthesis PageBackForwardCacheNotRestoredReason = "SpeechSynthesis"
1466
1467	// PageBackForwardCacheNotRestoredReasonKeyboardLock enum const.
1468	PageBackForwardCacheNotRestoredReasonKeyboardLock PageBackForwardCacheNotRestoredReason = "KeyboardLock"
1469
1470	// PageBackForwardCacheNotRestoredReasonWebOTPService enum const.
1471	PageBackForwardCacheNotRestoredReasonWebOTPService PageBackForwardCacheNotRestoredReason = "WebOTPService"
1472
1473	// PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestDirectSocket enum const.
1474	PageBackForwardCacheNotRestoredReasonOutstandingNetworkRequestDirectSocket PageBackForwardCacheNotRestoredReason = "OutstandingNetworkRequestDirectSocket"
1475
1476	// PageBackForwardCacheNotRestoredReasonInjectedJavascript enum const.
1477	PageBackForwardCacheNotRestoredReasonInjectedJavascript PageBackForwardCacheNotRestoredReason = "InjectedJavascript"
1478
1479	// PageBackForwardCacheNotRestoredReasonInjectedStyleSheet enum const.
1480	PageBackForwardCacheNotRestoredReasonInjectedStyleSheet PageBackForwardCacheNotRestoredReason = "InjectedStyleSheet"
1481
1482	// PageBackForwardCacheNotRestoredReasonKeepaliveRequest enum const.
1483	PageBackForwardCacheNotRestoredReasonKeepaliveRequest PageBackForwardCacheNotRestoredReason = "KeepaliveRequest"
1484
1485	// PageBackForwardCacheNotRestoredReasonIndexedDBEvent enum const.
1486	PageBackForwardCacheNotRestoredReasonIndexedDBEvent PageBackForwardCacheNotRestoredReason = "IndexedDBEvent"
1487
1488	// PageBackForwardCacheNotRestoredReasonDummy enum const.
1489	PageBackForwardCacheNotRestoredReasonDummy PageBackForwardCacheNotRestoredReason = "Dummy"
1490
1491	// PageBackForwardCacheNotRestoredReasonJsNetworkRequestReceivedCacheControlNoStoreResource enum const.
1492	PageBackForwardCacheNotRestoredReasonJsNetworkRequestReceivedCacheControlNoStoreResource PageBackForwardCacheNotRestoredReason = "JsNetworkRequestReceivedCacheControlNoStoreResource"
1493
1494	// PageBackForwardCacheNotRestoredReasonWebRTCSticky enum const.
1495	PageBackForwardCacheNotRestoredReasonWebRTCSticky PageBackForwardCacheNotRestoredReason = "WebRTCSticky"
1496
1497	// PageBackForwardCacheNotRestoredReasonWebTransportSticky enum const.
1498	PageBackForwardCacheNotRestoredReasonWebTransportSticky PageBackForwardCacheNotRestoredReason = "WebTransportSticky"
1499
1500	// PageBackForwardCacheNotRestoredReasonWebSocketSticky enum const.
1501	PageBackForwardCacheNotRestoredReasonWebSocketSticky PageBackForwardCacheNotRestoredReason = "WebSocketSticky"
1502
1503	// PageBackForwardCacheNotRestoredReasonSmartCard enum const.
1504	PageBackForwardCacheNotRestoredReasonSmartCard PageBackForwardCacheNotRestoredReason = "SmartCard"
1505
1506	// PageBackForwardCacheNotRestoredReasonLiveMediaStreamTrack enum const.
1507	PageBackForwardCacheNotRestoredReasonLiveMediaStreamTrack PageBackForwardCacheNotRestoredReason = "LiveMediaStreamTrack"
1508
1509	// PageBackForwardCacheNotRestoredReasonUnloadHandler enum const.
1510	PageBackForwardCacheNotRestoredReasonUnloadHandler PageBackForwardCacheNotRestoredReason = "UnloadHandler"
1511
1512	// PageBackForwardCacheNotRestoredReasonParserAborted enum const.
1513	PageBackForwardCacheNotRestoredReasonParserAborted PageBackForwardCacheNotRestoredReason = "ParserAborted"
1514
1515	// PageBackForwardCacheNotRestoredReasonContentSecurityHandler enum const.
1516	PageBackForwardCacheNotRestoredReasonContentSecurityHandler PageBackForwardCacheNotRestoredReason = "ContentSecurityHandler"
1517
1518	// PageBackForwardCacheNotRestoredReasonContentWebAuthenticationAPI enum const.
1519	PageBackForwardCacheNotRestoredReasonContentWebAuthenticationAPI PageBackForwardCacheNotRestoredReason = "ContentWebAuthenticationAPI"
1520
1521	// PageBackForwardCacheNotRestoredReasonContentFileChooser enum const.
1522	PageBackForwardCacheNotRestoredReasonContentFileChooser PageBackForwardCacheNotRestoredReason = "ContentFileChooser"
1523
1524	// PageBackForwardCacheNotRestoredReasonContentSerial enum const.
1525	PageBackForwardCacheNotRestoredReasonContentSerial PageBackForwardCacheNotRestoredReason = "ContentSerial"
1526
1527	// PageBackForwardCacheNotRestoredReasonContentFileSystemAccess enum const.
1528	PageBackForwardCacheNotRestoredReasonContentFileSystemAccess PageBackForwardCacheNotRestoredReason = "ContentFileSystemAccess"
1529
1530	// PageBackForwardCacheNotRestoredReasonContentMediaDevicesDispatcherHost enum const.
1531	PageBackForwardCacheNotRestoredReasonContentMediaDevicesDispatcherHost PageBackForwardCacheNotRestoredReason = "ContentMediaDevicesDispatcherHost"
1532
1533	// PageBackForwardCacheNotRestoredReasonContentWebBluetooth enum const.
1534	PageBackForwardCacheNotRestoredReasonContentWebBluetooth PageBackForwardCacheNotRestoredReason = "ContentWebBluetooth"
1535
1536	// PageBackForwardCacheNotRestoredReasonContentWebUSB enum const.
1537	PageBackForwardCacheNotRestoredReasonContentWebUSB PageBackForwardCacheNotRestoredReason = "ContentWebUSB"
1538
1539	// PageBackForwardCacheNotRestoredReasonContentMediaSessionService enum const.
1540	PageBackForwardCacheNotRestoredReasonContentMediaSessionService PageBackForwardCacheNotRestoredReason = "ContentMediaSessionService"
1541
1542	// PageBackForwardCacheNotRestoredReasonContentScreenReader enum const.
1543	PageBackForwardCacheNotRestoredReasonContentScreenReader PageBackForwardCacheNotRestoredReason = "ContentScreenReader"
1544
1545	// PageBackForwardCacheNotRestoredReasonEmbedderPopupBlockerTabHelper enum const.
1546	PageBackForwardCacheNotRestoredReasonEmbedderPopupBlockerTabHelper PageBackForwardCacheNotRestoredReason = "EmbedderPopupBlockerTabHelper"
1547
1548	// PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingTriggeredPopupBlocker enum const.
1549	PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingTriggeredPopupBlocker PageBackForwardCacheNotRestoredReason = "EmbedderSafeBrowsingTriggeredPopupBlocker"
1550
1551	// PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingThreatDetails enum const.
1552	PageBackForwardCacheNotRestoredReasonEmbedderSafeBrowsingThreatDetails PageBackForwardCacheNotRestoredReason = "EmbedderSafeBrowsingThreatDetails"
1553
1554	// PageBackForwardCacheNotRestoredReasonEmbedderAppBannerManager enum const.
1555	PageBackForwardCacheNotRestoredReasonEmbedderAppBannerManager PageBackForwardCacheNotRestoredReason = "EmbedderAppBannerManager"
1556
1557	// PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerViewerSource enum const.
1558	PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerViewerSource PageBackForwardCacheNotRestoredReason = "EmbedderDomDistillerViewerSource"
1559
1560	// PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerSelfDeletingRequestDelegate enum const.
1561	PageBackForwardCacheNotRestoredReasonEmbedderDomDistillerSelfDeletingRequestDelegate PageBackForwardCacheNotRestoredReason = "EmbedderDomDistillerSelfDeletingRequestDelegate"
1562
1563	// PageBackForwardCacheNotRestoredReasonEmbedderOomInterventionTabHelper enum const.
1564	PageBackForwardCacheNotRestoredReasonEmbedderOomInterventionTabHelper PageBackForwardCacheNotRestoredReason = "EmbedderOomInterventionTabHelper"
1565
1566	// PageBackForwardCacheNotRestoredReasonEmbedderOfflinePage enum const.
1567	PageBackForwardCacheNotRestoredReasonEmbedderOfflinePage PageBackForwardCacheNotRestoredReason = "EmbedderOfflinePage"
1568
1569	// PageBackForwardCacheNotRestoredReasonEmbedderChromePasswordManagerClientBindCredentialManager enum const.
1570	PageBackForwardCacheNotRestoredReasonEmbedderChromePasswordManagerClientBindCredentialManager PageBackForwardCacheNotRestoredReason = "EmbedderChromePasswordManagerClientBindCredentialManager"
1571
1572	// PageBackForwardCacheNotRestoredReasonEmbedderPermissionRequestManager enum const.
1573	PageBackForwardCacheNotRestoredReasonEmbedderPermissionRequestManager PageBackForwardCacheNotRestoredReason = "EmbedderPermissionRequestManager"
1574
1575	// PageBackForwardCacheNotRestoredReasonEmbedderModalDialog enum const.
1576	PageBackForwardCacheNotRestoredReasonEmbedderModalDialog PageBackForwardCacheNotRestoredReason = "EmbedderModalDialog"
1577
1578	// PageBackForwardCacheNotRestoredReasonEmbedderExtensions enum const.
1579	PageBackForwardCacheNotRestoredReasonEmbedderExtensions PageBackForwardCacheNotRestoredReason = "EmbedderExtensions"
1580
1581	// PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessaging enum const.
1582	PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessaging PageBackForwardCacheNotRestoredReason = "EmbedderExtensionMessaging"
1583
1584	// PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessagingForOpenPort enum const.
1585	PageBackForwardCacheNotRestoredReasonEmbedderExtensionMessagingForOpenPort PageBackForwardCacheNotRestoredReason = "EmbedderExtensionMessagingForOpenPort"
1586
1587	// PageBackForwardCacheNotRestoredReasonEmbedderExtensionSentMessageToCachedFrame enum const.
1588	PageBackForwardCacheNotRestoredReasonEmbedderExtensionSentMessageToCachedFrame PageBackForwardCacheNotRestoredReason = "EmbedderExtensionSentMessageToCachedFrame"
1589
1590	// PageBackForwardCacheNotRestoredReasonRequestedByWebViewClient enum const.
1591	PageBackForwardCacheNotRestoredReasonRequestedByWebViewClient PageBackForwardCacheNotRestoredReason = "RequestedByWebViewClient"
1592)
1593
1594// PageBackForwardCacheNotRestoredReasonType (experimental) Types of not restored reasons for back-forward cache.
1595type PageBackForwardCacheNotRestoredReasonType string
1596
1597const (
1598	// PageBackForwardCacheNotRestoredReasonTypeSupportPending enum const.
1599	PageBackForwardCacheNotRestoredReasonTypeSupportPending PageBackForwardCacheNotRestoredReasonType = "SupportPending"
1600
1601	// PageBackForwardCacheNotRestoredReasonTypePageSupportNeeded enum const.
1602	PageBackForwardCacheNotRestoredReasonTypePageSupportNeeded PageBackForwardCacheNotRestoredReasonType = "PageSupportNeeded"
1603
1604	// PageBackForwardCacheNotRestoredReasonTypeCircumstantial enum const.
1605	PageBackForwardCacheNotRestoredReasonTypeCircumstantial PageBackForwardCacheNotRestoredReasonType = "Circumstantial"
1606)
1607
1608// PageBackForwardCacheBlockingDetails (experimental) ...
1609type PageBackForwardCacheBlockingDetails struct {
1610	// URL (optional) Url of the file where blockage happened. Optional because of tests.
1611	URL string `json:"url,omitempty"`
1612
1613	// Function (optional) Function name where blockage happened. Optional because of anonymous functions and tests.
1614	Function string `json:"function,omitempty"`
1615
1616	// LineNumber Line number in the script (0-based).
1617	LineNumber int `json:"lineNumber"`
1618
1619	// ColumnNumber Column number in the script (0-based).
1620	ColumnNumber int `json:"columnNumber"`
1621}
1622
1623// PageBackForwardCacheNotRestoredExplanation (experimental) ...
1624type PageBackForwardCacheNotRestoredExplanation struct {
1625	// Type of the reason
1626	Type PageBackForwardCacheNotRestoredReasonType `json:"type"`
1627
1628	// Reason Not restored reason
1629	Reason PageBackForwardCacheNotRestoredReason `json:"reason"`
1630
1631	// Context (optional) Context associated with the reason. The meaning of this context is
1632	// dependent on the reason:
1633	// - EmbedderExtensionSentMessageToCachedFrame: the extension ID.
1634	Context string `json:"context,omitempty"`
1635
1636	// Details (optional) ...
1637	Details []*PageBackForwardCacheBlockingDetails `json:"details,omitempty"`
1638}
1639
1640// PageBackForwardCacheNotRestoredExplanationTree (experimental) ...
1641type PageBackForwardCacheNotRestoredExplanationTree struct {
1642	// URL of each frame
1643	URL string `json:"url"`
1644
1645	// Explanations Not restored reasons of each frame
1646	Explanations []*PageBackForwardCacheNotRestoredExplanation `json:"explanations"`
1647
1648	// Children Array of children frame
1649	Children []*PageBackForwardCacheNotRestoredExplanationTree `json:"children"`
1650}
1651
1652// PageAddScriptToEvaluateOnLoad (deprecated) (experimental) Deprecated, please use addScriptToEvaluateOnNewDocument instead.
1653type PageAddScriptToEvaluateOnLoad struct {
1654	// ScriptSource ...
1655	ScriptSource string `json:"scriptSource"`
1656}
1657
1658// ProtoReq name.
1659func (m PageAddScriptToEvaluateOnLoad) ProtoReq() string { return "Page.addScriptToEvaluateOnLoad" }
1660
1661// Call the request.
1662func (m PageAddScriptToEvaluateOnLoad) Call(c Client) (*PageAddScriptToEvaluateOnLoadResult, error) {
1663	var res PageAddScriptToEvaluateOnLoadResult
1664	return &res, call(m.ProtoReq(), m, &res, c)
1665}
1666
1667// PageAddScriptToEvaluateOnLoadResult (deprecated) (experimental) ...
1668type PageAddScriptToEvaluateOnLoadResult struct {
1669	// Identifier of the added script.
1670	Identifier PageScriptIdentifier `json:"identifier"`
1671}
1672
1673// PageAddScriptToEvaluateOnNewDocument Evaluates given script in every frame upon creation (before loading frame's scripts).
1674type PageAddScriptToEvaluateOnNewDocument struct {
1675	// Source ...
1676	Source string `json:"source"`
1677
1678	// WorldName (experimental) (optional) If specified, creates an isolated world with the given name and evaluates given script in it.
1679	// This world name will be used as the ExecutionContextDescription::name when the corresponding
1680	// event is emitted.
1681	WorldName string `json:"worldName,omitempty"`
1682
1683	// IncludeCommandLineAPI (experimental) (optional) Specifies whether command line API should be available to the script, defaults
1684	// to false.
1685	IncludeCommandLineAPI bool `json:"includeCommandLineAPI,omitempty"`
1686
1687	// RunImmediately (experimental) (optional) If true, runs the script immediately on existing execution contexts or worlds.
1688	// Default: false.
1689	RunImmediately bool `json:"runImmediately,omitempty"`
1690}
1691
1692// ProtoReq name.
1693func (m PageAddScriptToEvaluateOnNewDocument) ProtoReq() string {
1694	return "Page.addScriptToEvaluateOnNewDocument"
1695}
1696
1697// Call the request.
1698func (m PageAddScriptToEvaluateOnNewDocument) Call(c Client) (*PageAddScriptToEvaluateOnNewDocumentResult, error) {
1699	var res PageAddScriptToEvaluateOnNewDocumentResult
1700	return &res, call(m.ProtoReq(), m, &res, c)
1701}
1702
1703// PageAddScriptToEvaluateOnNewDocumentResult ...
1704type PageAddScriptToEvaluateOnNewDocumentResult struct {
1705	// Identifier of the added script.
1706	Identifier PageScriptIdentifier `json:"identifier"`
1707}
1708
1709// PageBringToFront Brings page to front (activates tab).
1710type PageBringToFront struct{}
1711
1712// ProtoReq name.
1713func (m PageBringToFront) ProtoReq() string { return "Page.bringToFront" }
1714
1715// Call sends the request.
1716func (m PageBringToFront) Call(c Client) error {
1717	return call(m.ProtoReq(), m, nil, c)
1718}
1719
1720// PageCaptureScreenshotFormat enum.
1721type PageCaptureScreenshotFormat string
1722
1723const (
1724	// PageCaptureScreenshotFormatJpeg enum const.
1725	PageCaptureScreenshotFormatJpeg PageCaptureScreenshotFormat = "jpeg"
1726
1727	// PageCaptureScreenshotFormatPng enum const.
1728	PageCaptureScreenshotFormatPng PageCaptureScreenshotFormat = "png"
1729
1730	// PageCaptureScreenshotFormatWebp enum const.
1731	PageCaptureScreenshotFormatWebp PageCaptureScreenshotFormat = "webp"
1732)
1733
1734// PageCaptureScreenshot Capture page screenshot.
1735type PageCaptureScreenshot struct {
1736	// Format (optional) Image compression format (defaults to png).
1737	Format PageCaptureScreenshotFormat `json:"format,omitempty"`
1738
1739	// Quality (optional) Compression quality from range [0..100] (jpeg only).
1740	Quality *int `json:"quality,omitempty"`
1741
1742	// Clip (optional) Capture the screenshot of a given region only.
1743	Clip *PageViewport `json:"clip,omitempty"`
1744
1745	// FromSurface (experimental) (optional) Capture the screenshot from the surface, rather than the view. Defaults to true.
1746	FromSurface bool `json:"fromSurface,omitempty"`
1747
1748	// CaptureBeyondViewport (experimental) (optional) Capture the screenshot beyond the viewport. Defaults to false.
1749	CaptureBeyondViewport bool `json:"captureBeyondViewport,omitempty"`
1750
1751	// OptimizeForSpeed (experimental) (optional) Optimize image encoding for speed, not for resulting size (defaults to false)
1752	OptimizeForSpeed bool `json:"optimizeForSpeed,omitempty"`
1753}
1754
1755// ProtoReq name.
1756func (m PageCaptureScreenshot) ProtoReq() string { return "Page.captureScreenshot" }
1757
1758// Call the request.
1759func (m PageCaptureScreenshot) Call(c Client) (*PageCaptureScreenshotResult, error) {
1760	var res PageCaptureScreenshotResult
1761	return &res, call(m.ProtoReq(), m, &res, c)
1762}
1763
1764// PageCaptureScreenshotResult ...
1765type PageCaptureScreenshotResult struct {
1766	// Data Base64-encoded image data.
1767	Data []byte `json:"data"`
1768}
1769
1770// PageCaptureSnapshotFormat enum.
1771type PageCaptureSnapshotFormat string
1772
1773const (
1774	// PageCaptureSnapshotFormatMhtml enum const.
1775	PageCaptureSnapshotFormatMhtml PageCaptureSnapshotFormat = "mhtml"
1776)
1777
1778// PageCaptureSnapshot (experimental) Returns a snapshot of the page as a string. For MHTML format, the serialization includes
1779// iframes, shadow DOM, external resources, and element-inline styles.
1780type PageCaptureSnapshot struct {
1781	// Format (optional) Format (defaults to mhtml).
1782	Format PageCaptureSnapshotFormat `json:"format,omitempty"`
1783}
1784
1785// ProtoReq name.
1786func (m PageCaptureSnapshot) ProtoReq() string { return "Page.captureSnapshot" }
1787
1788// Call the request.
1789func (m PageCaptureSnapshot) Call(c Client) (*PageCaptureSnapshotResult, error) {
1790	var res PageCaptureSnapshotResult
1791	return &res, call(m.ProtoReq(), m, &res, c)
1792}
1793
1794// PageCaptureSnapshotResult (experimental) ...
1795type PageCaptureSnapshotResult struct {
1796	// Data Serialized page data.
1797	Data string `json:"data"`
1798}
1799
1800// PageClearDeviceMetricsOverride (deprecated) (experimental) Clears the overridden device metrics.
1801type PageClearDeviceMetricsOverride struct{}
1802
1803// ProtoReq name.
1804func (m PageClearDeviceMetricsOverride) ProtoReq() string { return "Page.clearDeviceMetricsOverride" }
1805
1806// Call sends the request.
1807func (m PageClearDeviceMetricsOverride) Call(c Client) error {
1808	return call(m.ProtoReq(), m, nil, c)
1809}
1810
1811// PageClearDeviceOrientationOverride (deprecated) (experimental) Clears the overridden Device Orientation.
1812type PageClearDeviceOrientationOverride struct{}
1813
1814// ProtoReq name.
1815func (m PageClearDeviceOrientationOverride) ProtoReq() string {
1816	return "Page.clearDeviceOrientationOverride"
1817}
1818
1819// Call sends the request.
1820func (m PageClearDeviceOrientationOverride) Call(c Client) error {
1821	return call(m.ProtoReq(), m, nil, c)
1822}
1823
1824// PageClearGeolocationOverride (deprecated) Clears the overridden Geolocation Position and Error.
1825type PageClearGeolocationOverride struct{}
1826
1827// ProtoReq name.
1828func (m PageClearGeolocationOverride) ProtoReq() string { return "Page.clearGeolocationOverride" }
1829
1830// Call sends the request.
1831func (m PageClearGeolocationOverride) Call(c Client) error {
1832	return call(m.ProtoReq(), m, nil, c)
1833}
1834
1835// PageCreateIsolatedWorld Creates an isolated world for the given frame.
1836type PageCreateIsolatedWorld struct {
1837	// FrameID Id of the frame in which the isolated world should be created.
1838	FrameID PageFrameID `json:"frameId"`
1839
1840	// WorldName (optional) An optional name which is reported in the Execution Context.
1841	WorldName string `json:"worldName,omitempty"`
1842
1843	// GrantUniveralAccess (optional) Whether or not universal access should be granted to the isolated world. This is a powerful
1844	// option, use with caution.
1845	GrantUniveralAccess bool `json:"grantUniveralAccess,omitempty"`
1846}
1847
1848// ProtoReq name.
1849func (m PageCreateIsolatedWorld) ProtoReq() string { return "Page.createIsolatedWorld" }
1850
1851// Call the request.
1852func (m PageCreateIsolatedWorld) Call(c Client) (*PageCreateIsolatedWorldResult, error) {
1853	var res PageCreateIsolatedWorldResult
1854	return &res, call(m.ProtoReq(), m, &res, c)
1855}
1856
1857// PageCreateIsolatedWorldResult ...
1858type PageCreateIsolatedWorldResult struct {
1859	// ExecutionContextID Execution context of the isolated world.
1860	ExecutionContextID RuntimeExecutionContextID `json:"executionContextId"`
1861}
1862
1863// PageDeleteCookie (deprecated) (experimental) Deletes browser cookie with given name, domain and path.
1864type PageDeleteCookie struct {
1865	// CookieName Name of the cookie to remove.
1866	CookieName string `json:"cookieName"`
1867
1868	// URL to match cooke domain and path.
1869	URL string `json:"url"`
1870}
1871
1872// ProtoReq name.
1873func (m PageDeleteCookie) ProtoReq() string { return "Page.deleteCookie" }
1874
1875// Call sends the request.
1876func (m PageDeleteCookie) Call(c Client) error {
1877	return call(m.ProtoReq(), m, nil, c)
1878}
1879
1880// PageDisable Disables page domain notifications.
1881type PageDisable struct{}
1882
1883// ProtoReq name.
1884func (m PageDisable) ProtoReq() string { return "Page.disable" }
1885
1886// Call sends the request.
1887func (m PageDisable) Call(c Client) error {
1888	return call(m.ProtoReq(), m, nil, c)
1889}
1890
1891// PageEnable Enables page domain notifications.
1892type PageEnable struct{}
1893
1894// ProtoReq name.
1895func (m PageEnable) ProtoReq() string { return "Page.enable" }
1896
1897// Call sends the request.
1898func (m PageEnable) Call(c Client) error {
1899	return call(m.ProtoReq(), m, nil, c)
1900}
1901
1902// PageGetAppManifest Gets the processed manifest for this current document.
1903//
1904//	This API always waits for the manifest to be loaded.
1905//	If manifestId is provided, and it does not match the manifest of the
1906//	  current document, this API errors out.
1907//	If there is not a loaded page, this API errors out immediately.
1908type PageGetAppManifest struct {
1909	// ManifestID (optional) ...
1910	ManifestID string `json:"manifestId,omitempty"`
1911}
1912
1913// ProtoReq name.
1914func (m PageGetAppManifest) ProtoReq() string { return "Page.getAppManifest" }
1915
1916// Call the request.
1917func (m PageGetAppManifest) Call(c Client) (*PageGetAppManifestResult, error) {
1918	var res PageGetAppManifestResult
1919	return &res, call(m.ProtoReq(), m, &res, c)
1920}
1921
1922// PageGetAppManifestResult ...
1923type PageGetAppManifestResult struct {
1924	// URL Manifest location.
1925	URL string `json:"url"`
1926
1927	// Errors ...
1928	Errors []*PageAppManifestError `json:"errors"`
1929
1930	// Data (optional) Manifest content.
1931	Data string `json:"data,omitempty"`
1932
1933	// Parsed (deprecated) (experimental) (optional) Parsed manifest properties. Deprecated, use manifest instead.
1934	Parsed *PageAppManifestParsedProperties `json:"parsed,omitempty"`
1935
1936	// Manifest (experimental) ...
1937	Manifest *PageWebAppManifest `json:"manifest"`
1938}
1939
1940// PageGetInstallabilityErrors (experimental) ...
1941type PageGetInstallabilityErrors struct{}
1942
1943// ProtoReq name.
1944func (m PageGetInstallabilityErrors) ProtoReq() string { return "Page.getInstallabilityErrors" }
1945
1946// Call the request.
1947func (m PageGetInstallabilityErrors) Call(c Client) (*PageGetInstallabilityErrorsResult, error) {
1948	var res PageGetInstallabilityErrorsResult
1949	return &res, call(m.ProtoReq(), m, &res, c)
1950}
1951
1952// PageGetInstallabilityErrorsResult (experimental) ...
1953type PageGetInstallabilityErrorsResult struct {
1954	// InstallabilityErrors ...
1955	InstallabilityErrors []*PageInstallabilityError `json:"installabilityErrors"`
1956}
1957
1958// PageGetManifestIcons (deprecated) (experimental) Deprecated because it's not guaranteed that the returned icon is in fact the one used for PWA installation.
1959type PageGetManifestIcons struct{}
1960
1961// ProtoReq name.
1962func (m PageGetManifestIcons) ProtoReq() string { return "Page.getManifestIcons" }
1963
1964// Call the request.
1965func (m PageGetManifestIcons) Call(c Client) (*PageGetManifestIconsResult, error) {
1966	var res PageGetManifestIconsResult
1967	return &res, call(m.ProtoReq(), m, &res, c)
1968}
1969
1970// PageGetManifestIconsResult (deprecated) (experimental) ...
1971type PageGetManifestIconsResult struct {
1972	// PrimaryIcon (optional) ...
1973	PrimaryIcon []byte `json:"primaryIcon,omitempty"`
1974}
1975
1976// PageGetAppID (experimental) Returns the unique (PWA) app id.
1977// Only returns values if the feature flag 'WebAppEnableManifestId' is enabled.
1978type PageGetAppID struct{}
1979
1980// ProtoReq name.
1981func (m PageGetAppID) ProtoReq() string { return "Page.getAppId" }
1982
1983// Call the request.
1984func (m PageGetAppID) Call(c Client) (*PageGetAppIDResult, error) {
1985	var res PageGetAppIDResult
1986	return &res, call(m.ProtoReq(), m, &res, c)
1987}
1988
1989// PageGetAppIDResult (experimental) ...
1990type PageGetAppIDResult struct {
1991	// AppID (optional) App id, either from manifest's id attribute or computed from start_url
1992	AppID string `json:"appId,omitempty"`
1993
1994	// RecommendedID (optional) Recommendation for manifest's id attribute to match current id computed from start_url
1995	RecommendedID string `json:"recommendedId,omitempty"`
1996}
1997
1998// PageGetAdScriptID (experimental) ...
1999type PageGetAdScriptID struct {
2000	// FrameID ...
2001	FrameID PageFrameID `json:"frameId"`
2002}
2003
2004// ProtoReq name.
2005func (m PageGetAdScriptID) ProtoReq() string { return "Page.getAdScriptId" }
2006
2007// Call the request.
2008func (m PageGetAdScriptID) Call(c Client) (*PageGetAdScriptIDResult, error) {
2009	var res PageGetAdScriptIDResult
2010	return &res, call(m.ProtoReq(), m, &res, c)
2011}
2012
2013// PageGetAdScriptIDResult (experimental) ...
2014type PageGetAdScriptIDResult struct {
2015	// AdScriptID (optional) Identifies the bottom-most script which caused the frame to be labelled
2016	// as an ad. Only sent if frame is labelled as an ad and id is available.
2017	AdScriptID *PageAdScriptID `json:"adScriptId,omitempty"`
2018}
2019
2020// PageGetFrameTree Returns present frame tree structure.
2021type PageGetFrameTree struct{}
2022
2023// ProtoReq name.
2024func (m PageGetFrameTree) ProtoReq() string { return "Page.getFrameTree" }
2025
2026// Call the request.
2027func (m PageGetFrameTree) Call(c Client) (*PageGetFrameTreeResult, error) {
2028	var res PageGetFrameTreeResult
2029	return &res, call(m.ProtoReq(), m, &res, c)
2030}
2031
2032// PageGetFrameTreeResult ...
2033type PageGetFrameTreeResult struct {
2034	// FrameTree Present frame tree structure.
2035	FrameTree *PageFrameTree `json:"frameTree"`
2036}
2037
2038// PageGetLayoutMetrics Returns metrics relating to the layouting of the page, such as viewport bounds/scale.
2039type PageGetLayoutMetrics struct{}
2040
2041// ProtoReq name.
2042func (m PageGetLayoutMetrics) ProtoReq() string { return "Page.getLayoutMetrics" }
2043
2044// Call the request.
2045func (m PageGetLayoutMetrics) Call(c Client) (*PageGetLayoutMetricsResult, error) {
2046	var res PageGetLayoutMetricsResult
2047	return &res, call(m.ProtoReq(), m, &res, c)
2048}
2049
2050// PageGetLayoutMetricsResult ...
2051type PageGetLayoutMetricsResult struct {
2052	// LayoutViewport (deprecated) Deprecated metrics relating to the layout viewport. Is in device pixels. Use `cssLayoutViewport` instead.
2053	LayoutViewport *PageLayoutViewport `json:"layoutViewport"`
2054
2055	// VisualViewport (deprecated) Deprecated metrics relating to the visual viewport. Is in device pixels. Use `cssVisualViewport` instead.
2056	VisualViewport *PageVisualViewport `json:"visualViewport"`
2057
2058	// ContentSize (deprecated) Deprecated size of scrollable area. Is in DP. Use `cssContentSize` instead.
2059	ContentSize *DOMRect `json:"contentSize"`
2060
2061	// CSSLayoutViewport Metrics relating to the layout viewport in CSS pixels.
2062	CSSLayoutViewport *PageLayoutViewport `json:"cssLayoutViewport"`
2063
2064	// CSSVisualViewport Metrics relating to the visual viewport in CSS pixels.
2065	CSSVisualViewport *PageVisualViewport `json:"cssVisualViewport"`
2066
2067	// CSSContentSize Size of scrollable area in CSS pixels.
2068	CSSContentSize *DOMRect `json:"cssContentSize"`
2069}
2070
2071// PageGetNavigationHistory Returns navigation history for the current page.
2072type PageGetNavigationHistory struct{}
2073
2074// ProtoReq name.
2075func (m PageGetNavigationHistory) ProtoReq() string { return "Page.getNavigationHistory" }
2076
2077// Call the request.
2078func (m PageGetNavigationHistory) Call(c Client) (*PageGetNavigationHistoryResult, error) {
2079	var res PageGetNavigationHistoryResult
2080	return &res, call(m.ProtoReq(), m, &res, c)
2081}
2082
2083// PageGetNavigationHistoryResult ...
2084type PageGetNavigationHistoryResult struct {
2085	// CurrentIndex Index of the current navigation history entry.
2086	CurrentIndex int `json:"currentIndex"`
2087
2088	// Entries Array of navigation history entries.
2089	Entries []*PageNavigationEntry `json:"entries"`
2090}
2091
2092// PageResetNavigationHistory Resets navigation history for the current page.
2093type PageResetNavigationHistory struct{}
2094
2095// ProtoReq name.
2096func (m PageResetNavigationHistory) ProtoReq() string { return "Page.resetNavigationHistory" }
2097
2098// Call sends the request.
2099func (m PageResetNavigationHistory) Call(c Client) error {
2100	return call(m.ProtoReq(), m, nil, c)
2101}
2102
2103// PageGetResourceContent (experimental) Returns content of the given resource.
2104type PageGetResourceContent struct {
2105	// FrameID Frame id to get resource for.
2106	FrameID PageFrameID `json:"frameId"`
2107
2108	// URL of the resource to get content for.
2109	URL string `json:"url"`
2110}
2111
2112// ProtoReq name.
2113func (m PageGetResourceContent) ProtoReq() string { return "Page.getResourceContent" }
2114
2115// Call the request.
2116func (m PageGetResourceContent) Call(c Client) (*PageGetResourceContentResult, error) {
2117	var res PageGetResourceContentResult
2118	return &res, call(m.ProtoReq(), m, &res, c)
2119}
2120
2121// PageGetResourceContentResult (experimental) ...
2122type PageGetResourceContentResult struct {
2123	// Content Resource content.
2124	Content string `json:"content"`
2125
2126	// Base64Encoded True, if content was served as base64.
2127	Base64Encoded bool `json:"base64Encoded"`
2128}
2129
2130// PageGetResourceTree (experimental) Returns present frame / resource tree structure.
2131type PageGetResourceTree struct{}
2132
2133// ProtoReq name.
2134func (m PageGetResourceTree) ProtoReq() string { return "Page.getResourceTree" }
2135
2136// Call the request.
2137func (m PageGetResourceTree) Call(c Client) (*PageGetResourceTreeResult, error) {
2138	var res PageGetResourceTreeResult
2139	return &res, call(m.ProtoReq(), m, &res, c)
2140}
2141
2142// PageGetResourceTreeResult (experimental) ...
2143type PageGetResourceTreeResult struct {
2144	// FrameTree Present frame / resource tree structure.
2145	FrameTree *PageFrameResourceTree `json:"frameTree"`
2146}
2147
2148// PageHandleJavaScriptDialog Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
2149type PageHandleJavaScriptDialog struct {
2150	// Accept Whether to accept or dismiss the dialog.
2151	Accept bool `json:"accept"`
2152
2153	// PromptText (optional) The text to enter into the dialog prompt before accepting. Used only if this is a prompt
2154	// dialog.
2155	PromptText string `json:"promptText,omitempty"`
2156}
2157
2158// ProtoReq name.
2159func (m PageHandleJavaScriptDialog) ProtoReq() string { return "Page.handleJavaScriptDialog" }
2160
2161// Call sends the request.
2162func (m PageHandleJavaScriptDialog) Call(c Client) error {
2163	return call(m.ProtoReq(), m, nil, c)
2164}
2165
2166// PageNavigate Navigates current page to the given URL.
2167type PageNavigate struct {
2168	// URL to navigate the page to.
2169	URL string `json:"url"`
2170
2171	// Referrer (optional) Referrer URL.
2172	Referrer string `json:"referrer,omitempty"`
2173
2174	// TransitionType (optional) Intended transition type.
2175	TransitionType PageTransitionType `json:"transitionType,omitempty"`
2176
2177	// FrameID (optional) Frame id to navigate, if not specified navigates the top frame.
2178	FrameID PageFrameID `json:"frameId,omitempty"`
2179
2180	// ReferrerPolicy (experimental) (optional) Referrer-policy used for the navigation.
2181	ReferrerPolicy PageReferrerPolicy `json:"referrerPolicy,omitempty"`
2182}
2183
2184// ProtoReq name.
2185func (m PageNavigate) ProtoReq() string { return "Page.navigate" }
2186
2187// Call the request.
2188func (m PageNavigate) Call(c Client) (*PageNavigateResult, error) {
2189	var res PageNavigateResult
2190	return &res, call(m.ProtoReq(), m, &res, c)
2191}
2192
2193// PageNavigateResult ...
2194type PageNavigateResult struct {
2195	// FrameID Frame id that has navigated (or failed to navigate)
2196	FrameID PageFrameID `json:"frameId"`
2197
2198	// LoaderID (optional) Loader identifier. This is omitted in case of same-document navigation,
2199	// as the previously committed loaderId would not change.
2200	LoaderID NetworkLoaderID `json:"loaderId,omitempty"`
2201
2202	// ErrorText (optional) User friendly error message, present if and only if navigation has failed.
2203	ErrorText string `json:"errorText,omitempty"`
2204}
2205
2206// PageNavigateToHistoryEntry Navigates current page to the given history entry.
2207type PageNavigateToHistoryEntry struct {
2208	// EntryID Unique id of the entry to navigate to.
2209	EntryID int `json:"entryId"`
2210}
2211
2212// ProtoReq name.
2213func (m PageNavigateToHistoryEntry) ProtoReq() string { return "Page.navigateToHistoryEntry" }
2214
2215// Call sends the request.
2216func (m PageNavigateToHistoryEntry) Call(c Client) error {
2217	return call(m.ProtoReq(), m, nil, c)
2218}
2219
2220// PagePrintToPDFTransferMode enum.
2221type PagePrintToPDFTransferMode string
2222
2223const (
2224	// PagePrintToPDFTransferModeReturnAsBase64 enum const.
2225	PagePrintToPDFTransferModeReturnAsBase64 PagePrintToPDFTransferMode = "ReturnAsBase64"
2226
2227	// PagePrintToPDFTransferModeReturnAsStream enum const.
2228	PagePrintToPDFTransferModeReturnAsStream PagePrintToPDFTransferMode = "ReturnAsStream"
2229)
2230
2231// PagePrintToPDF Print page as PDF.
2232type PagePrintToPDF struct {
2233	// Landscape (optional) Paper orientation. Defaults to false.
2234	Landscape bool `json:"landscape,omitempty"`
2235
2236	// DisplayHeaderFooter (optional) Display header and footer. Defaults to false.
2237	DisplayHeaderFooter bool `json:"displayHeaderFooter,omitempty"`
2238
2239	// PrintBackground (optional) Print background graphics. Defaults to false.
2240	PrintBackground bool `json:"printBackground,omitempty"`
2241
2242	// Scale (optional) Scale of the webpage rendering. Defaults to 1.
2243	Scale *float64 `json:"scale,omitempty"`
2244
2245	// PaperWidth (optional) Paper width in inches. Defaults to 8.5 inches.
2246	PaperWidth *float64 `json:"paperWidth,omitempty"`
2247
2248	// PaperHeight (optional) Paper height in inches. Defaults to 11 inches.
2249	PaperHeight *float64 `json:"paperHeight,omitempty"`
2250
2251	// MarginTop (optional) Top margin in inches. Defaults to 1cm (~0.4 inches).
2252	MarginTop *float64 `json:"marginTop,omitempty"`
2253
2254	// MarginBottom (optional) Bottom margin in inches. Defaults to 1cm (~0.4 inches).
2255	MarginBottom *float64 `json:"marginBottom,omitempty"`
2256
2257	// MarginLeft (optional) Left margin in inches. Defaults to 1cm (~0.4 inches).
2258	MarginLeft *float64 `json:"marginLeft,omitempty"`
2259
2260	// MarginRight (optional) Right margin in inches. Defaults to 1cm (~0.4 inches).
2261	MarginRight *float64 `json:"marginRight,omitempty"`
2262
2263	// PageRanges (optional) Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are
2264	// printed in the document order, not in the order specified, and no
2265	// more than once.
2266	// Defaults to empty string, which implies the entire document is printed.
2267	// The page numbers are quietly capped to actual page count of the
2268	// document, and ranges beyond the end of the document are ignored.
2269	// If this results in no pages to print, an error is reported.
2270	// It is an error to specify a range with start greater than end.
2271	PageRanges string `json:"pageRanges,omitempty"`
2272
2273	// HeaderTemplate (optional) HTML template for the print header. Should be valid HTML markup with following
2274	// classes used to inject printing values into them:
2275	// - `date`: formatted print date
2276	// - `title`: document title
2277	// - `url`: document location
2278	// - `pageNumber`: current page number
2279	// - `totalPages`: total pages in the document
2280	//
2281	// For example, `<span class=title></span>` would generate span containing the title.
2282	HeaderTemplate string `json:"headerTemplate,omitempty"`
2283
2284	// FooterTemplate (optional) HTML template for the print footer. Should use the same format as the `headerTemplate`.
2285	FooterTemplate string `json:"footerTemplate,omitempty"`
2286
2287	// PreferCSSPageSize (optional) Whether or not to prefer page size as defined by css. Defaults to false,
2288	// in which case the content will be scaled to fit the paper size.
2289	PreferCSSPageSize bool `json:"preferCSSPageSize,omitempty"`
2290
2291	// TransferMode (experimental) (optional) return as stream
2292	TransferMode PagePrintToPDFTransferMode `json:"transferMode,omitempty"`
2293
2294	// GenerateTaggedPDF (experimental) (optional) Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice.
2295	GenerateTaggedPDF bool `json:"generateTaggedPDF,omitempty"`
2296
2297	// GenerateDocumentOutline (experimental) (optional) Whether or not to embed the document outline into the PDF.
2298	GenerateDocumentOutline bool `json:"generateDocumentOutline,omitempty"`
2299}
2300
2301// ProtoReq name.
2302func (m PagePrintToPDF) ProtoReq() string { return "Page.printToPDF" }
2303
2304// Call the request.
2305func (m PagePrintToPDF) Call(c Client) (*PagePrintToPDFResult, error) {
2306	var res PagePrintToPDFResult
2307	return &res, call(m.ProtoReq(), m, &res, c)
2308}
2309
2310// PagePrintToPDFResult ...
2311type PagePrintToPDFResult struct {
2312	// Data Base64-encoded pdf data. Empty if |returnAsStream| is specified.
2313	Data []byte `json:"data"`
2314
2315	// Stream (experimental) (optional) A handle of the stream that holds resulting PDF data.
2316	Stream IOStreamHandle `json:"stream,omitempty"`
2317}
2318
2319// PageReload Reloads given page optionally ignoring the cache.
2320type PageReload struct {
2321	// IgnoreCache (optional) If true, browser cache is ignored (as if the user pressed Shift+refresh).
2322	IgnoreCache bool `json:"ignoreCache,omitempty"`
2323
2324	// ScriptToEvaluateOnLoad (optional) If set, the script will be injected into all frames of the inspected page after reload.
2325	// Argument will be ignored if reloading dataURL origin.
2326	ScriptToEvaluateOnLoad string `json:"scriptToEvaluateOnLoad,omitempty"`
2327
2328	// LoaderID (experimental) (optional) If set, an error will be thrown if the target page's main frame's
2329	// loader id does not match the provided id. This prevents accidentally
2330	// reloading an unintended target in case there's a racing navigation.
2331	LoaderID NetworkLoaderID `json:"loaderId,omitempty"`
2332}
2333
2334// ProtoReq name.
2335func (m PageReload) ProtoReq() string { return "Page.reload" }
2336
2337// Call sends the request.
2338func (m PageReload) Call(c Client) error {
2339	return call(m.ProtoReq(), m, nil, c)
2340}
2341
2342// PageRemoveScriptToEvaluateOnLoad (deprecated) (experimental) Deprecated, please use removeScriptToEvaluateOnNewDocument instead.
2343type PageRemoveScriptToEvaluateOnLoad struct {
2344	// Identifier ...
2345	Identifier PageScriptIdentifier `json:"identifier"`
2346}
2347
2348// ProtoReq name.
2349func (m PageRemoveScriptToEvaluateOnLoad) ProtoReq() string {
2350	return "Page.removeScriptToEvaluateOnLoad"
2351}
2352
2353// Call sends the request.
2354func (m PageRemoveScriptToEvaluateOnLoad) Call(c Client) error {
2355	return call(m.ProtoReq(), m, nil, c)
2356}
2357
2358// PageRemoveScriptToEvaluateOnNewDocument Removes given script from the list.
2359type PageRemoveScriptToEvaluateOnNewDocument struct {
2360	// Identifier ...
2361	Identifier PageScriptIdentifier `json:"identifier"`
2362}
2363
2364// ProtoReq name.
2365func (m PageRemoveScriptToEvaluateOnNewDocument) ProtoReq() string {
2366	return "Page.removeScriptToEvaluateOnNewDocument"
2367}
2368
2369// Call sends the request.
2370func (m PageRemoveScriptToEvaluateOnNewDocument) Call(c Client) error {
2371	return call(m.ProtoReq(), m, nil, c)
2372}
2373
2374// PageScreencastFrameAck (experimental) Acknowledges that a screencast frame has been received by the frontend.
2375type PageScreencastFrameAck struct {
2376	// SessionID Frame number.
2377	SessionID int `json:"sessionId"`
2378}
2379
2380// ProtoReq name.
2381func (m PageScreencastFrameAck) ProtoReq() string { return "Page.screencastFrameAck" }
2382
2383// Call sends the request.
2384func (m PageScreencastFrameAck) Call(c Client) error {
2385	return call(m.ProtoReq(), m, nil, c)
2386}
2387
2388// PageSearchInResource (experimental) Searches for given string in resource content.
2389type PageSearchInResource struct {
2390	// FrameID Frame id for resource to search in.
2391	FrameID PageFrameID `json:"frameId"`
2392
2393	// URL of the resource to search in.
2394	URL string `json:"url"`
2395
2396	// Query String to search for.
2397	Query string `json:"query"`
2398
2399	// CaseSensitive (optional) If true, search is case sensitive.
2400	CaseSensitive bool `json:"caseSensitive,omitempty"`
2401
2402	// IsRegex (optional) If true, treats string parameter as regex.
2403	IsRegex bool `json:"isRegex,omitempty"`
2404}
2405
2406// ProtoReq name.
2407func (m PageSearchInResource) ProtoReq() string { return "Page.searchInResource" }
2408
2409// Call the request.
2410func (m PageSearchInResource) Call(c Client) (*PageSearchInResourceResult, error) {
2411	var res PageSearchInResourceResult
2412	return &res, call(m.ProtoReq(), m, &res, c)
2413}
2414
2415// PageSearchInResourceResult (experimental) ...
2416type PageSearchInResourceResult struct {
2417	// Result List of search matches.
2418	Result []*DebuggerSearchMatch `json:"result"`
2419}
2420
2421// PageSetAdBlockingEnabled (experimental) Enable Chrome's experimental ad filter on all sites.
2422type PageSetAdBlockingEnabled struct {
2423	// Enabled Whether to block ads.
2424	Enabled bool `json:"enabled"`
2425}
2426
2427// ProtoReq name.
2428func (m PageSetAdBlockingEnabled) ProtoReq() string { return "Page.setAdBlockingEnabled" }
2429
2430// Call sends the request.
2431func (m PageSetAdBlockingEnabled) Call(c Client) error {
2432	return call(m.ProtoReq(), m, nil, c)
2433}
2434
2435// PageSetBypassCSP Enable page Content Security Policy by-passing.
2436type PageSetBypassCSP struct {
2437	// Enabled Whether to bypass page CSP.
2438	Enabled bool `json:"enabled"`
2439}
2440
2441// ProtoReq name.
2442func (m PageSetBypassCSP) ProtoReq() string { return "Page.setBypassCSP" }
2443
2444// Call sends the request.
2445func (m PageSetBypassCSP) Call(c Client) error {
2446	return call(m.ProtoReq(), m, nil, c)
2447}
2448
2449// PageGetPermissionsPolicyState (experimental) Get Permissions Policy state on given frame.
2450type PageGetPermissionsPolicyState struct {
2451	// FrameID ...
2452	FrameID PageFrameID `json:"frameId"`
2453}
2454
2455// ProtoReq name.
2456func (m PageGetPermissionsPolicyState) ProtoReq() string { return "Page.getPermissionsPolicyState" }
2457
2458// Call the request.
2459func (m PageGetPermissionsPolicyState) Call(c Client) (*PageGetPermissionsPolicyStateResult, error) {
2460	var res PageGetPermissionsPolicyStateResult
2461	return &res, call(m.ProtoReq(), m, &res, c)
2462}
2463
2464// PageGetPermissionsPolicyStateResult (experimental) ...
2465type PageGetPermissionsPolicyStateResult struct {
2466	// States ...
2467	States []*PagePermissionsPolicyFeatureState `json:"states"`
2468}
2469
2470// PageGetOriginTrials (experimental) Get Origin Trials on given frame.
2471type PageGetOriginTrials struct {
2472	// FrameID ...
2473	FrameID PageFrameID `json:"frameId"`
2474}
2475
2476// ProtoReq name.
2477func (m PageGetOriginTrials) ProtoReq() string { return "Page.getOriginTrials" }
2478
2479// Call the request.
2480func (m PageGetOriginTrials) Call(c Client) (*PageGetOriginTrialsResult, error) {
2481	var res PageGetOriginTrialsResult
2482	return &res, call(m.ProtoReq(), m, &res, c)
2483}
2484
2485// PageGetOriginTrialsResult (experimental) ...
2486type PageGetOriginTrialsResult struct {
2487	// OriginTrials ...
2488	OriginTrials []*PageOriginTrial `json:"originTrials"`
2489}
2490
2491// PageSetDeviceMetricsOverride (deprecated) (experimental) Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
2492// window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
2493// query results).
2494type PageSetDeviceMetricsOverride struct {
2495	// Width Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
2496	Width int `json:"width"`
2497
2498	// Height Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
2499	Height int `json:"height"`
2500
2501	// DeviceScaleFactor Overriding device scale factor value. 0 disables the override.
2502	DeviceScaleFactor float64 `json:"deviceScaleFactor"`
2503
2504	// Mobile Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text
2505	// autosizing and more.
2506	Mobile bool `json:"mobile"`
2507
2508	// Scale (optional) Scale to apply to resulting view image.
2509	Scale *float64 `json:"scale,omitempty"`
2510
2511	// ScreenWidth (optional) Overriding screen width value in pixels (minimum 0, maximum 10000000).
2512	ScreenWidth *int `json:"screenWidth,omitempty"`
2513
2514	// ScreenHeight (optional) Overriding screen height value in pixels (minimum 0, maximum 10000000).
2515	ScreenHeight *int `json:"screenHeight,omitempty"`
2516
2517	// PositionX (optional) Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
2518	PositionX *int `json:"positionX,omitempty"`
2519
2520	// PositionY (optional) Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
2521	PositionY *int `json:"positionY,omitempty"`
2522
2523	// DontSetVisibleSize (optional) Do not set visible view size, rely upon explicit setVisibleSize call.
2524	DontSetVisibleSize bool `json:"dontSetVisibleSize,omitempty"`
2525
2526	// ScreenOrientation (optional) Screen orientation override.
2527	ScreenOrientation *EmulationScreenOrientation `json:"screenOrientation,omitempty"`
2528
2529	// Viewport (optional) The viewport dimensions and scale. If not set, the override is cleared.
2530	Viewport *PageViewport `json:"viewport,omitempty"`
2531}
2532
2533// ProtoReq name.
2534func (m PageSetDeviceMetricsOverride) ProtoReq() string { return "Page.setDeviceMetricsOverride" }
2535
2536// Call sends the request.
2537func (m PageSetDeviceMetricsOverride) Call(c Client) error {
2538	return call(m.ProtoReq(), m, nil, c)
2539}
2540
2541// PageSetDeviceOrientationOverride (deprecated) (experimental) Overrides the Device Orientation.
2542type PageSetDeviceOrientationOverride struct {
2543	// Alpha Mock alpha
2544	Alpha float64 `json:"alpha"`
2545
2546	// Beta Mock beta
2547	Beta float64 `json:"beta"`
2548
2549	// Gamma Mock gamma
2550	Gamma float64 `json:"gamma"`
2551}
2552
2553// ProtoReq name.
2554func (m PageSetDeviceOrientationOverride) ProtoReq() string {
2555	return "Page.setDeviceOrientationOverride"
2556}
2557
2558// Call sends the request.
2559func (m PageSetDeviceOrientationOverride) Call(c Client) error {
2560	return call(m.ProtoReq(), m, nil, c)
2561}
2562
2563// PageSetFontFamilies (experimental) Set generic font families.
2564type PageSetFontFamilies struct {
2565	// FontFamilies Specifies font families to set. If a font family is not specified, it won't be changed.
2566	FontFamilies *PageFontFamilies `json:"fontFamilies"`
2567
2568	// ForScripts (optional) Specifies font families to set for individual scripts.
2569	ForScripts []*PageScriptFontFamilies `json:"forScripts,omitempty"`
2570}
2571
2572// ProtoReq name.
2573func (m PageSetFontFamilies) ProtoReq() string { return "Page.setFontFamilies" }
2574
2575// Call sends the request.
2576func (m PageSetFontFamilies) Call(c Client) error {
2577	return call(m.ProtoReq(), m, nil, c)
2578}
2579
2580// PageSetFontSizes (experimental) Set default font sizes.
2581type PageSetFontSizes struct {
2582	// FontSizes Specifies font sizes to set. If a font size is not specified, it won't be changed.
2583	FontSizes *PageFontSizes `json:"fontSizes"`
2584}
2585
2586// ProtoReq name.
2587func (m PageSetFontSizes) ProtoReq() string { return "Page.setFontSizes" }
2588
2589// Call sends the request.
2590func (m PageSetFontSizes) Call(c Client) error {
2591	return call(m.ProtoReq(), m, nil, c)
2592}
2593
2594// PageSetDocumentContent Sets given markup as the document's HTML.
2595type PageSetDocumentContent struct {
2596	// FrameID Frame id to set HTML for.
2597	FrameID PageFrameID `json:"frameId"`
2598
2599	// HTML content to set.
2600	HTML string `json:"html"`
2601}
2602
2603// ProtoReq name.
2604func (m PageSetDocumentContent) ProtoReq() string { return "Page.setDocumentContent" }
2605
2606// Call sends the request.
2607func (m PageSetDocumentContent) Call(c Client) error {
2608	return call(m.ProtoReq(), m, nil, c)
2609}
2610
2611// PageSetDownloadBehaviorBehavior enum.
2612type PageSetDownloadBehaviorBehavior string
2613
2614const (
2615	// PageSetDownloadBehaviorBehaviorDeny enum const.
2616	PageSetDownloadBehaviorBehaviorDeny PageSetDownloadBehaviorBehavior = "deny"
2617
2618	// PageSetDownloadBehaviorBehaviorAllow enum const.
2619	PageSetDownloadBehaviorBehaviorAllow PageSetDownloadBehaviorBehavior = "allow"
2620
2621	// PageSetDownloadBehaviorBehaviorDefault enum const.
2622	PageSetDownloadBehaviorBehaviorDefault PageSetDownloadBehaviorBehavior = "default"
2623)
2624
2625// PageSetDownloadBehavior (deprecated) (experimental) Set the behavior when downloading a file.
2626type PageSetDownloadBehavior struct {
2627	// Behavior Whether to allow all or deny all download requests, or use default Chrome behavior if
2628	// available (otherwise deny).
2629	Behavior PageSetDownloadBehaviorBehavior `json:"behavior"`
2630
2631	// DownloadPath (optional) The default path to save downloaded files to. This is required if behavior is set to 'allow'
2632	DownloadPath string `json:"downloadPath,omitempty"`
2633}
2634
2635// ProtoReq name.
2636func (m PageSetDownloadBehavior) ProtoReq() string { return "Page.setDownloadBehavior" }
2637
2638// Call sends the request.
2639func (m PageSetDownloadBehavior) Call(c Client) error {
2640	return call(m.ProtoReq(), m, nil, c)
2641}
2642
2643// PageSetGeolocationOverride (deprecated) Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
2644// unavailable.
2645type PageSetGeolocationOverride struct {
2646	// Latitude (optional) Mock latitude
2647	Latitude *float64 `json:"latitude,omitempty"`
2648
2649	// Longitude (optional) Mock longitude
2650	Longitude *float64 `json:"longitude,omitempty"`
2651
2652	// Accuracy (optional) Mock accuracy
2653	Accuracy *float64 `json:"accuracy,omitempty"`
2654}
2655
2656// ProtoReq name.
2657func (m PageSetGeolocationOverride) ProtoReq() string { return "Page.setGeolocationOverride" }
2658
2659// Call sends the request.
2660func (m PageSetGeolocationOverride) Call(c Client) error {
2661	return call(m.ProtoReq(), m, nil, c)
2662}
2663
2664// PageSetLifecycleEventsEnabled Controls whether page will emit lifecycle events.
2665type PageSetLifecycleEventsEnabled struct {
2666	// Enabled If true, starts emitting lifecycle events.
2667	Enabled bool `json:"enabled"`
2668}
2669
2670// ProtoReq name.
2671func (m PageSetLifecycleEventsEnabled) ProtoReq() string { return "Page.setLifecycleEventsEnabled" }
2672
2673// Call sends the request.
2674func (m PageSetLifecycleEventsEnabled) Call(c Client) error {
2675	return call(m.ProtoReq(), m, nil, c)
2676}
2677
2678// PageSetTouchEmulationEnabledConfiguration enum.
2679type PageSetTouchEmulationEnabledConfiguration string
2680
2681const (
2682	// PageSetTouchEmulationEnabledConfigurationMobile enum const.
2683	PageSetTouchEmulationEnabledConfigurationMobile PageSetTouchEmulationEnabledConfiguration = "mobile"
2684
2685	// PageSetTouchEmulationEnabledConfigurationDesktop enum const.
2686	PageSetTouchEmulationEnabledConfigurationDesktop PageSetTouchEmulationEnabledConfiguration = "desktop"
2687)
2688
2689// PageSetTouchEmulationEnabled (deprecated) (experimental) Toggles mouse event-based touch event emulation.
2690type PageSetTouchEmulationEnabled struct {
2691	// Enabled Whether the touch event emulation should be enabled.
2692	Enabled bool `json:"enabled"`
2693
2694	// Configuration (optional) Touch/gesture events configuration. Default: current platform.
2695	Configuration PageSetTouchEmulationEnabledConfiguration `json:"configuration,omitempty"`
2696}
2697
2698// ProtoReq name.
2699func (m PageSetTouchEmulationEnabled) ProtoReq() string { return "Page.setTouchEmulationEnabled" }
2700
2701// Call sends the request.
2702func (m PageSetTouchEmulationEnabled) Call(c Client) error {
2703	return call(m.ProtoReq(), m, nil, c)
2704}
2705
2706// PageStartScreencastFormat enum.
2707type PageStartScreencastFormat string
2708
2709const (
2710	// PageStartScreencastFormatJpeg enum const.
2711	PageStartScreencastFormatJpeg PageStartScreencastFormat = "jpeg"
2712
2713	// PageStartScreencastFormatPng enum const.
2714	PageStartScreencastFormatPng PageStartScreencastFormat = "png"
2715)
2716
2717// PageStartScreencast (experimental) Starts sending each frame using the `screencastFrame` event.
2718type PageStartScreencast struct {
2719	// Format (optional) Image compression format.
2720	Format PageStartScreencastFormat `json:"format,omitempty"`
2721
2722	// Quality (optional) Compression quality from range [0..100].
2723	Quality *int `json:"quality,omitempty"`
2724
2725	// MaxWidth (optional) Maximum screenshot width.
2726	MaxWidth *int `json:"maxWidth,omitempty"`
2727
2728	// MaxHeight (optional) Maximum screenshot height.
2729	MaxHeight *int `json:"maxHeight,omitempty"`
2730
2731	// EveryNthFrame (optional) Send every n-th frame.
2732	EveryNthFrame *int `json:"everyNthFrame,omitempty"`
2733}
2734
2735// ProtoReq name.
2736func (m PageStartScreencast) ProtoReq() string { return "Page.startScreencast" }
2737
2738// Call sends the request.
2739func (m PageStartScreencast) Call(c Client) error {
2740	return call(m.ProtoReq(), m, nil, c)
2741}
2742
2743// PageStopLoading Force the page stop all navigations and pending resource fetches.
2744type PageStopLoading struct{}
2745
2746// ProtoReq name.
2747func (m PageStopLoading) ProtoReq() string { return "Page.stopLoading" }
2748
2749// Call sends the request.
2750func (m PageStopLoading) Call(c Client) error {
2751	return call(m.ProtoReq(), m, nil, c)
2752}
2753
2754// PageCrash (experimental) Crashes renderer on the IO thread, generates minidumps.
2755type PageCrash struct{}
2756
2757// ProtoReq name.
2758func (m PageCrash) ProtoReq() string { return "Page.crash" }
2759
2760// Call sends the request.
2761func (m PageCrash) Call(c Client) error {
2762	return call(m.ProtoReq(), m, nil, c)
2763}
2764
2765// PageClose Tries to close page, running its beforeunload hooks, if any.
2766type PageClose struct{}
2767
2768// ProtoReq name.
2769func (m PageClose) ProtoReq() string { return "Page.close" }
2770
2771// Call sends the request.
2772func (m PageClose) Call(c Client) error {
2773	return call(m.ProtoReq(), m, nil, c)
2774}
2775
2776// PageSetWebLifecycleStateState enum.
2777type PageSetWebLifecycleStateState string
2778
2779const (
2780	// PageSetWebLifecycleStateStateFrozen enum const.
2781	PageSetWebLifecycleStateStateFrozen PageSetWebLifecycleStateState = "frozen"
2782
2783	// PageSetWebLifecycleStateStateActive enum const.
2784	PageSetWebLifecycleStateStateActive PageSetWebLifecycleStateState = "active"
2785)
2786
2787// PageSetWebLifecycleState (experimental) Tries to update the web lifecycle state of the page.
2788// It will transition the page to the given state according to:
2789// https://github.com/WICG/web-lifecycle/
2790type PageSetWebLifecycleState struct {
2791	// State Target lifecycle state
2792	State PageSetWebLifecycleStateState `json:"state"`
2793}
2794
2795// ProtoReq name.
2796func (m PageSetWebLifecycleState) ProtoReq() string { return "Page.setWebLifecycleState" }
2797
2798// Call sends the request.
2799func (m PageSetWebLifecycleState) Call(c Client) error {
2800	return call(m.ProtoReq(), m, nil, c)
2801}
2802
2803// PageStopScreencast (experimental) Stops sending each frame in the `screencastFrame`.
2804type PageStopScreencast struct{}
2805
2806// ProtoReq name.
2807func (m PageStopScreencast) ProtoReq() string { return "Page.stopScreencast" }
2808
2809// Call sends the request.
2810func (m PageStopScreencast) Call(c Client) error {
2811	return call(m.ProtoReq(), m, nil, c)
2812}
2813
2814// PageProduceCompilationCache (experimental) Requests backend to produce compilation cache for the specified scripts.
2815// `scripts` are appended to the list of scripts for which the cache
2816// would be produced. The list may be reset during page navigation.
2817// When script with a matching URL is encountered, the cache is optionally
2818// produced upon backend discretion, based on internal heuristics.
2819// See also: `Page.compilationCacheProduced`.
2820type PageProduceCompilationCache struct {
2821	// Scripts ...
2822	Scripts []*PageCompilationCacheParams `json:"scripts"`
2823}
2824
2825// ProtoReq name.
2826func (m PageProduceCompilationCache) ProtoReq() string { return "Page.produceCompilationCache" }
2827
2828// Call sends the request.
2829func (m PageProduceCompilationCache) Call(c Client) error {
2830	return call(m.ProtoReq(), m, nil, c)
2831}
2832
2833// PageAddCompilationCache (experimental) Seeds compilation cache for given url. Compilation cache does not survive
2834// cross-process navigation.
2835type PageAddCompilationCache struct {
2836	// URL ...
2837	URL string `json:"url"`
2838
2839	// Data Base64-encoded data
2840	Data []byte `json:"data"`
2841}
2842
2843// ProtoReq name.
2844func (m PageAddCompilationCache) ProtoReq() string { return "Page.addCompilationCache" }
2845
2846// Call sends the request.
2847func (m PageAddCompilationCache) Call(c Client) error {
2848	return call(m.ProtoReq(), m, nil, c)
2849}
2850
2851// PageClearCompilationCache (experimental) Clears seeded compilation cache.
2852type PageClearCompilationCache struct{}
2853
2854// ProtoReq name.
2855func (m PageClearCompilationCache) ProtoReq() string { return "Page.clearCompilationCache" }
2856
2857// Call sends the request.
2858func (m PageClearCompilationCache) Call(c Client) error {
2859	return call(m.ProtoReq(), m, nil, c)
2860}
2861
2862// PageSetSPCTransactionMode (experimental) Sets the Secure Payment Confirmation transaction mode.
2863// https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
2864type PageSetSPCTransactionMode struct {
2865	// Mode ...
2866	Mode PageAutoResponseMode `json:"mode"`
2867}
2868
2869// ProtoReq name.
2870func (m PageSetSPCTransactionMode) ProtoReq() string { return "Page.setSPCTransactionMode" }
2871
2872// Call sends the request.
2873func (m PageSetSPCTransactionMode) Call(c Client) error {
2874	return call(m.ProtoReq(), m, nil, c)
2875}
2876
2877// PageSetRPHRegistrationMode (experimental) Extensions for Custom Handlers API:
2878// https://html.spec.whatwg.org/multipage/system-state.html#rph-automation
2879type PageSetRPHRegistrationMode struct {
2880	// Mode ...
2881	Mode PageAutoResponseMode `json:"mode"`
2882}
2883
2884// ProtoReq name.
2885func (m PageSetRPHRegistrationMode) ProtoReq() string { return "Page.setRPHRegistrationMode" }
2886
2887// Call sends the request.
2888func (m PageSetRPHRegistrationMode) Call(c Client) error {
2889	return call(m.ProtoReq(), m, nil, c)
2890}
2891
2892// PageGenerateTestReport (experimental) Generates a report for testing.
2893type PageGenerateTestReport struct {
2894	// Message to be displayed in the report.
2895	Message string `json:"message"`
2896
2897	// Group (optional) Specifies the endpoint group to deliver the report to.
2898	Group string `json:"group,omitempty"`
2899}
2900
2901// ProtoReq name.
2902func (m PageGenerateTestReport) ProtoReq() string { return "Page.generateTestReport" }
2903
2904// Call sends the request.
2905func (m PageGenerateTestReport) Call(c Client) error {
2906	return call(m.ProtoReq(), m, nil, c)
2907}
2908
2909// PageWaitForDebugger (experimental) Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.
2910type PageWaitForDebugger struct{}
2911
2912// ProtoReq name.
2913func (m PageWaitForDebugger) ProtoReq() string { return "Page.waitForDebugger" }
2914
2915// Call sends the request.
2916func (m PageWaitForDebugger) Call(c Client) error {
2917	return call(m.ProtoReq(), m, nil, c)
2918}
2919
2920// PageSetInterceptFileChooserDialog Intercept file chooser requests and transfer control to protocol clients.
2921// When file chooser interception is enabled, native file chooser dialog is not shown.
2922// Instead, a protocol event `Page.fileChooserOpened` is emitted.
2923type PageSetInterceptFileChooserDialog struct {
2924	// Enabled ...
2925	Enabled bool `json:"enabled"`
2926}
2927
2928// ProtoReq name.
2929func (m PageSetInterceptFileChooserDialog) ProtoReq() string {
2930	return "Page.setInterceptFileChooserDialog"
2931}
2932
2933// Call sends the request.
2934func (m PageSetInterceptFileChooserDialog) Call(c Client) error {
2935	return call(m.ProtoReq(), m, nil, c)
2936}
2937
2938// PageSetPrerenderingAllowed (experimental) Enable/disable prerendering manually.
2939//
2940// This command is a short-term solution for https://crbug.com/1440085.
2941// See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA
2942// for more details.
2943//
2944// TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets.
2945type PageSetPrerenderingAllowed struct {
2946	// IsAllowed ...
2947	IsAllowed bool `json:"isAllowed"`
2948}
2949
2950// ProtoReq name.
2951func (m PageSetPrerenderingAllowed) ProtoReq() string { return "Page.setPrerenderingAllowed" }
2952
2953// Call sends the request.
2954func (m PageSetPrerenderingAllowed) Call(c Client) error {
2955	return call(m.ProtoReq(), m, nil, c)
2956}
2957
2958// PageDomContentEventFired ...
2959type PageDomContentEventFired struct {
2960	// Timestamp ...
2961	Timestamp MonotonicTime `json:"timestamp"`
2962}
2963
2964// ProtoEvent name.
2965func (evt PageDomContentEventFired) ProtoEvent() string {
2966	return "Page.domContentEventFired"
2967}
2968
2969// PageFileChooserOpenedMode enum.
2970type PageFileChooserOpenedMode string
2971
2972const (
2973	// PageFileChooserOpenedModeSelectSingle enum const.
2974	PageFileChooserOpenedModeSelectSingle PageFileChooserOpenedMode = "selectSingle"
2975
2976	// PageFileChooserOpenedModeSelectMultiple enum const.
2977	PageFileChooserOpenedModeSelectMultiple PageFileChooserOpenedMode = "selectMultiple"
2978)
2979
2980// PageFileChooserOpened Emitted only when `page.interceptFileChooser` is enabled.
2981type PageFileChooserOpened struct {
2982	// FrameID (experimental) Id of the frame containing input node.
2983	FrameID PageFrameID `json:"frameId"`
2984
2985	// Mode Input mode.
2986	Mode PageFileChooserOpenedMode `json:"mode"`
2987
2988	// BackendNodeID (experimental) (optional) Input node id. Only present for file choosers opened via an `<input type="file">` element.
2989	BackendNodeID DOMBackendNodeID `json:"backendNodeId,omitempty"`
2990}
2991
2992// ProtoEvent name.
2993func (evt PageFileChooserOpened) ProtoEvent() string {
2994	return "Page.fileChooserOpened"
2995}
2996
2997// PageFrameAttached Fired when frame has been attached to its parent.
2998type PageFrameAttached struct {
2999	// FrameID Id of the frame that has been attached.
3000	FrameID PageFrameID `json:"frameId"`
3001
3002	// ParentFrameID Parent frame identifier.
3003	ParentFrameID PageFrameID `json:"parentFrameId"`
3004
3005	// Stack (optional) JavaScript stack trace of when frame was attached, only set if frame initiated from script.
3006	Stack *RuntimeStackTrace `json:"stack,omitempty"`
3007}
3008
3009// ProtoEvent name.
3010func (evt PageFrameAttached) ProtoEvent() string {
3011	return "Page.frameAttached"
3012}
3013
3014// PageFrameClearedScheduledNavigation (deprecated) Fired when frame no longer has a scheduled navigation.
3015type PageFrameClearedScheduledNavigation struct {
3016	// FrameID Id of the frame that has cleared its scheduled navigation.
3017	FrameID PageFrameID `json:"frameId"`
3018}
3019
3020// ProtoEvent name.
3021func (evt PageFrameClearedScheduledNavigation) ProtoEvent() string {
3022	return "Page.frameClearedScheduledNavigation"
3023}
3024
3025// PageFrameDetachedReason enum.
3026type PageFrameDetachedReason string
3027
3028const (
3029	// PageFrameDetachedReasonRemove enum const.
3030	PageFrameDetachedReasonRemove PageFrameDetachedReason = "remove"
3031
3032	// PageFrameDetachedReasonSwap enum const.
3033	PageFrameDetachedReasonSwap PageFrameDetachedReason = "swap"
3034)
3035
3036// PageFrameDetached Fired when frame has been detached from its parent.
3037type PageFrameDetached struct {
3038	// FrameID Id of the frame that has been detached.
3039	FrameID PageFrameID `json:"frameId"`
3040
3041	// Reason (experimental) ...
3042	Reason PageFrameDetachedReason `json:"reason"`
3043}
3044
3045// ProtoEvent name.
3046func (evt PageFrameDetached) ProtoEvent() string {
3047	return "Page.frameDetached"
3048}
3049
3050// PageFrameNavigated Fired once navigation of the frame has completed. Frame is now associated with the new loader.
3051type PageFrameNavigated struct {
3052	// Frame object.
3053	Frame *PageFrame `json:"frame"`
3054
3055	// Type (experimental) ...
3056	Type PageNavigationType `json:"type"`
3057}
3058
3059// ProtoEvent name.
3060func (evt PageFrameNavigated) ProtoEvent() string {
3061	return "Page.frameNavigated"
3062}
3063
3064// PageDocumentOpened (experimental) Fired when opening document to write to.
3065type PageDocumentOpened struct {
3066	// Frame object.
3067	Frame *PageFrame `json:"frame"`
3068}
3069
3070// ProtoEvent name.
3071func (evt PageDocumentOpened) ProtoEvent() string {
3072	return "Page.documentOpened"
3073}
3074
3075// PageFrameResized (experimental) ...
3076type PageFrameResized struct{}
3077
3078// ProtoEvent name.
3079func (evt PageFrameResized) ProtoEvent() string {
3080	return "Page.frameResized"
3081}
3082
3083// PageFrameRequestedNavigation (experimental) Fired when a renderer-initiated navigation is requested.
3084// Navigation may still be cancelled after the event is issued.
3085type PageFrameRequestedNavigation struct {
3086	// FrameID Id of the frame that is being navigated.
3087	FrameID PageFrameID `json:"frameId"`
3088
3089	// Reason The reason for the navigation.
3090	Reason PageClientNavigationReason `json:"reason"`
3091
3092	// URL The destination URL for the requested navigation.
3093	URL string `json:"url"`
3094
3095	// Disposition The disposition for the navigation.
3096	Disposition PageClientNavigationDisposition `json:"disposition"`
3097}
3098
3099// ProtoEvent name.
3100func (evt PageFrameRequestedNavigation) ProtoEvent() string {
3101	return "Page.frameRequestedNavigation"
3102}
3103
3104// PageFrameScheduledNavigation (deprecated) Fired when frame schedules a potential navigation.
3105type PageFrameScheduledNavigation struct {
3106	// FrameID Id of the frame that has scheduled a navigation.
3107	FrameID PageFrameID `json:"frameId"`
3108
3109	// Delay (in seconds) until the navigation is scheduled to begin. The navigation is not
3110	// guaranteed to start.
3111	Delay float64 `json:"delay"`
3112
3113	// Reason The reason for the navigation.
3114	Reason PageClientNavigationReason `json:"reason"`
3115
3116	// URL The destination URL for the scheduled navigation.
3117	URL string `json:"url"`
3118}
3119
3120// ProtoEvent name.
3121func (evt PageFrameScheduledNavigation) ProtoEvent() string {
3122	return "Page.frameScheduledNavigation"
3123}
3124
3125// PageFrameStartedLoading (experimental) Fired when frame has started loading.
3126type PageFrameStartedLoading struct {
3127	// FrameID Id of the frame that has started loading.
3128	FrameID PageFrameID `json:"frameId"`
3129}
3130
3131// ProtoEvent name.
3132func (evt PageFrameStartedLoading) ProtoEvent() string {
3133	return "Page.frameStartedLoading"
3134}
3135
3136// PageFrameStoppedLoading (experimental) Fired when frame has stopped loading.
3137type PageFrameStoppedLoading struct {
3138	// FrameID Id of the frame that has stopped loading.
3139	FrameID PageFrameID `json:"frameId"`
3140}
3141
3142// ProtoEvent name.
3143func (evt PageFrameStoppedLoading) ProtoEvent() string {
3144	return "Page.frameStoppedLoading"
3145}
3146
3147// PageDownloadWillBegin (deprecated) (experimental) Fired when page is about to start a download.
3148// Deprecated. Use Browser.downloadWillBegin instead.
3149type PageDownloadWillBegin struct {
3150	// FrameID Id of the frame that caused download to begin.
3151	FrameID PageFrameID `json:"frameId"`
3152
3153	// GUID Global unique identifier of the download.
3154	GUID string `json:"guid"`
3155
3156	// URL of the resource being downloaded.
3157	URL string `json:"url"`
3158
3159	// SuggestedFilename Suggested file name of the resource (the actual name of the file saved on disk may differ).
3160	SuggestedFilename string `json:"suggestedFilename"`
3161}
3162
3163// ProtoEvent name.
3164func (evt PageDownloadWillBegin) ProtoEvent() string {
3165	return "Page.downloadWillBegin"
3166}
3167
3168// PageDownloadProgressState enum.
3169type PageDownloadProgressState string
3170
3171const (
3172	// PageDownloadProgressStateInProgress enum const.
3173	PageDownloadProgressStateInProgress PageDownloadProgressState = "inProgress"
3174
3175	// PageDownloadProgressStateCompleted enum const.
3176	PageDownloadProgressStateCompleted PageDownloadProgressState = "completed"
3177
3178	// PageDownloadProgressStateCanceled enum const.
3179	PageDownloadProgressStateCanceled PageDownloadProgressState = "canceled"
3180)
3181
3182// PageDownloadProgress (deprecated) (experimental) Fired when download makes progress. Last call has |done| == true.
3183// Deprecated. Use Browser.downloadProgress instead.
3184type PageDownloadProgress struct {
3185	// GUID Global unique identifier of the download.
3186	GUID string `json:"guid"`
3187
3188	// TotalBytes Total expected bytes to download.
3189	TotalBytes float64 `json:"totalBytes"`
3190
3191	// ReceivedBytes Total bytes received.
3192	ReceivedBytes float64 `json:"receivedBytes"`
3193
3194	// State Download status.
3195	State PageDownloadProgressState `json:"state"`
3196}
3197
3198// ProtoEvent name.
3199func (evt PageDownloadProgress) ProtoEvent() string {
3200	return "Page.downloadProgress"
3201}
3202
3203// PageInterstitialHidden Fired when interstitial page was hidden.
3204type PageInterstitialHidden struct{}
3205
3206// ProtoEvent name.
3207func (evt PageInterstitialHidden) ProtoEvent() string {
3208	return "Page.interstitialHidden"
3209}
3210
3211// PageInterstitialShown Fired when interstitial page was shown.
3212type PageInterstitialShown struct{}
3213
3214// ProtoEvent name.
3215func (evt PageInterstitialShown) ProtoEvent() string {
3216	return "Page.interstitialShown"
3217}
3218
3219// PageJavascriptDialogClosed Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been
3220// closed.
3221type PageJavascriptDialogClosed struct {
3222	// Result Whether dialog was confirmed.
3223	Result bool `json:"result"`
3224
3225	// UserInput User input in case of prompt.
3226	UserInput string `json:"userInput"`
3227}
3228
3229// ProtoEvent name.
3230func (evt PageJavascriptDialogClosed) ProtoEvent() string {
3231	return "Page.javascriptDialogClosed"
3232}
3233
3234// PageJavascriptDialogOpening Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to
3235// open.
3236type PageJavascriptDialogOpening struct {
3237	// URL Frame url.
3238	URL string `json:"url"`
3239
3240	// Message that will be displayed by the dialog.
3241	Message string `json:"message"`
3242
3243	// Type Dialog type.
3244	Type PageDialogType `json:"type"`
3245
3246	// HasBrowserHandler True iff browser is capable showing or acting on the given dialog. When browser has no
3247	// dialog handler for given target, calling alert while Page domain is engaged will stall
3248	// the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.
3249	HasBrowserHandler bool `json:"hasBrowserHandler"`
3250
3251	// DefaultPrompt (optional) Default dialog prompt.
3252	DefaultPrompt string `json:"defaultPrompt,omitempty"`
3253}
3254
3255// ProtoEvent name.
3256func (evt PageJavascriptDialogOpening) ProtoEvent() string {
3257	return "Page.javascriptDialogOpening"
3258}
3259
3260// PageLifecycleEventName enum.
3261type PageLifecycleEventName string
3262
3263const (
3264	// PageLifecycleEventNameInit enum const.
3265	PageLifecycleEventNameInit PageLifecycleEventName = "init"
3266
3267	// PageLifecycleEventNameFirstPaint enum const.
3268	PageLifecycleEventNameFirstPaint PageLifecycleEventName = "firstPaint"
3269
3270	// PageLifecycleEventNameFirstContentfulPaint enum const.
3271	PageLifecycleEventNameFirstContentfulPaint PageLifecycleEventName = "firstContentfulPaint"
3272
3273	// PageLifecycleEventNameFirstImagePaint enum const.
3274	PageLifecycleEventNameFirstImagePaint PageLifecycleEventName = "firstImagePaint"
3275
3276	// PageLifecycleEventNameFirstMeaningfulPaintCandidate enum const.
3277	PageLifecycleEventNameFirstMeaningfulPaintCandidate PageLifecycleEventName = "firstMeaningfulPaintCandidate"
3278
3279	// PageLifecycleEventNameDOMContentLoaded enum const.
3280	PageLifecycleEventNameDOMContentLoaded PageLifecycleEventName = "DOMContentLoaded"
3281
3282	// PageLifecycleEventNameLoad enum const.
3283	PageLifecycleEventNameLoad PageLifecycleEventName = "load"
3284
3285	// PageLifecycleEventNameNetworkAlmostIdle enum const.
3286	PageLifecycleEventNameNetworkAlmostIdle PageLifecycleEventName = "networkAlmostIdle"
3287
3288	// PageLifecycleEventNameFirstMeaningfulPaint enum const.
3289	PageLifecycleEventNameFirstMeaningfulPaint PageLifecycleEventName = "firstMeaningfulPaint"
3290
3291	// PageLifecycleEventNameNetworkIdle enum const.
3292	PageLifecycleEventNameNetworkIdle PageLifecycleEventName = "networkIdle"
3293)
3294
3295// PageLifecycleEvent Fired for top level page lifecycle events such as navigation, load, paint, etc.
3296type PageLifecycleEvent struct {
3297	// FrameID Id of the frame.
3298	FrameID PageFrameID `json:"frameId"`
3299
3300	// LoaderID Loader identifier. Empty string if the request is fetched from worker.
3301	LoaderID NetworkLoaderID `json:"loaderId"`
3302
3303	// Name ...
3304	Name PageLifecycleEventName `json:"name"`
3305
3306	// Timestamp ...
3307	Timestamp MonotonicTime `json:"timestamp"`
3308}
3309
3310// ProtoEvent name.
3311func (evt PageLifecycleEvent) ProtoEvent() string {
3312	return "Page.lifecycleEvent"
3313}
3314
3315// PageBackForwardCacheNotUsed (experimental) Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do
3316// not assume any ordering with the Page.frameNavigated event. This event is fired only for
3317// main-frame history navigation where the document changes (non-same-document navigations),
3318// when bfcache navigation fails.
3319type PageBackForwardCacheNotUsed struct {
3320	// LoaderID The loader id for the associated navigation.
3321	LoaderID NetworkLoaderID `json:"loaderId"`
3322
3323	// FrameID The frame id of the associated frame.
3324	FrameID PageFrameID `json:"frameId"`
3325
3326	// NotRestoredExplanations Array of reasons why the page could not be cached. This must not be empty.
3327	NotRestoredExplanations []*PageBackForwardCacheNotRestoredExplanation `json:"notRestoredExplanations"`
3328
3329	// NotRestoredExplanationsTree (optional) Tree structure of reasons why the page could not be cached for each frame.
3330	NotRestoredExplanationsTree *PageBackForwardCacheNotRestoredExplanationTree `json:"notRestoredExplanationsTree,omitempty"`
3331}
3332
3333// ProtoEvent name.
3334func (evt PageBackForwardCacheNotUsed) ProtoEvent() string {
3335	return "Page.backForwardCacheNotUsed"
3336}
3337
3338// PageLoadEventFired ...
3339type PageLoadEventFired struct {
3340	// Timestamp ...
3341	Timestamp MonotonicTime `json:"timestamp"`
3342}
3343
3344// ProtoEvent name.
3345func (evt PageLoadEventFired) ProtoEvent() string {
3346	return "Page.loadEventFired"
3347}
3348
3349// PageNavigatedWithinDocument (experimental) Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.
3350type PageNavigatedWithinDocument struct {
3351	// FrameID Id of the frame.
3352	FrameID PageFrameID `json:"frameId"`
3353
3354	// URL Frame's new url.
3355	URL string `json:"url"`
3356}
3357
3358// ProtoEvent name.
3359func (evt PageNavigatedWithinDocument) ProtoEvent() string {
3360	return "Page.navigatedWithinDocument"
3361}
3362
3363// PageScreencastFrame (experimental) Compressed image data requested by the `startScreencast`.
3364type PageScreencastFrame struct {
3365	// Data Base64-encoded compressed image.
3366	Data []byte `json:"data"`
3367
3368	// Metadata Screencast frame metadata.
3369	Metadata *PageScreencastFrameMetadata `json:"metadata"`
3370
3371	// SessionID Frame number.
3372	SessionID int `json:"sessionId"`
3373}
3374
3375// ProtoEvent name.
3376func (evt PageScreencastFrame) ProtoEvent() string {
3377	return "Page.screencastFrame"
3378}
3379
3380// PageScreencastVisibilityChanged (experimental) Fired when the page with currently enabled screencast was shown or hidden `.
3381type PageScreencastVisibilityChanged struct {
3382	// Visible True if the page is visible.
3383	Visible bool `json:"visible"`
3384}
3385
3386// ProtoEvent name.
3387func (evt PageScreencastVisibilityChanged) ProtoEvent() string {
3388	return "Page.screencastVisibilityChanged"
3389}
3390
3391// PageWindowOpen Fired when a new window is going to be opened, via window.open(), link click, form submission,
3392// etc.
3393type PageWindowOpen struct {
3394	// URL The URL for the new window.
3395	URL string `json:"url"`
3396
3397	// WindowName Window name.
3398	WindowName string `json:"windowName"`
3399
3400	// WindowFeatures An array of enabled window features.
3401	WindowFeatures []string `json:"windowFeatures"`
3402
3403	// UserGesture Whether or not it was triggered by user gesture.
3404	UserGesture bool `json:"userGesture"`
3405}
3406
3407// ProtoEvent name.
3408func (evt PageWindowOpen) ProtoEvent() string {
3409	return "Page.windowOpen"
3410}
3411
3412// PageCompilationCacheProduced (experimental) Issued for every compilation cache generated. Is only available
3413// if Page.setGenerateCompilationCache is enabled.
3414type PageCompilationCacheProduced struct {
3415	// URL ...
3416	URL string `json:"url"`
3417
3418	// Data Base64-encoded data
3419	Data []byte `json:"data"`
3420}
3421
3422// ProtoEvent name.
3423func (evt PageCompilationCacheProduced) ProtoEvent() string {
3424	return "Page.compilationCacheProduced"
3425}