Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CanEmulateResponse(val result: Boolean)

Response type for the EmulationDomain.canEmulate command.

Link copied to clipboard

A dummy response object for the EmulationDomain.clearDeviceMetricsOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

A dummy response object for the EmulationDomain.clearDevicePostureOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

A dummy response object for the EmulationDomain.clearGeolocationOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object ClearIdleOverrideResponse

A dummy response object for the EmulationDomain.clearIdleOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class DevicePosture(val type: DevicePostureType)

(undocumented in the protocol definition)

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard

Enum of image types that can be disabled.

Link copied to clipboard
@Serializable
data class DisplayFeature(val orientation: DisplayFeatureOrientation, val offset: Int, val maskLength: Int)

(undocumented in the protocol definition)

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard

This domain emulates different environments for the page.

Link copied to clipboard
@Serializable
data class GetOverriddenSensorInformationRequest(val type: SensorType)

Request object containing input parameters for the EmulationDomain.getOverriddenSensorInformation command.

Link copied to clipboard
@Serializable
data class GetOverriddenSensorInformationResponse(val requestedSamplingFrequency: Double)

Response type for the EmulationDomain.getOverriddenSensorInformation command.

Link copied to clipboard
@Serializable
data class MediaFeature(val name: String, val value: String)

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
object ResetPageScaleFactorResponse

A dummy response object for the EmulationDomain.resetPageScaleFactor command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class ScreenOrientation(val type: ScreenOrientationType, val angle: Int)

Screen orientation.

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class SensorMetadata(val available: Boolean? = null, val minimumFrequency: Double? = null, val maximumFrequency: Double? = null)

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
data class SensorReading(val single: SensorReadingSingle? = null, val xyz: SensorReadingXYZ? = null, val quaternion: SensorReadingQuaternion? = null)

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
data class SensorReadingQuaternion(val x: Double, val y: Double, val z: Double, val w: Double)

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
data class SensorReadingSingle(val value: Double)

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
data class SensorReadingXYZ(val x: Double, val y: Double, val z: Double)

(undocumented in the protocol definition)

Link copied to clipboard
@Serializable
enum SensorType : Enum<SensorType>

Used to specify sensor types to emulate. See https://w3c.github.io/sensors/#automation for more information.

Link copied to clipboard
@Serializable
data class SetAutoDarkModeOverrideRequest(val enabled: Boolean? = null)

Request object containing input parameters for the EmulationDomain.setAutoDarkModeOverride command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setAutoDarkModeOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetAutomationOverrideRequest(val enabled: Boolean)

Request object containing input parameters for the EmulationDomain.setAutomationOverride command.

Link copied to clipboard
@Serializable
object SetAutomationOverrideResponse

A dummy response object for the EmulationDomain.setAutomationOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetCPUThrottlingRateRequest(val rate: Double)

Request object containing input parameters for the EmulationDomain.setCPUThrottlingRate command.

Link copied to clipboard
@Serializable
object SetCPUThrottlingRateResponse

A dummy response object for the EmulationDomain.setCPUThrottlingRate command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDefaultBackgroundColorOverrideRequest(val color: RGBA? = null)

Request object containing input parameters for the EmulationDomain.setDefaultBackgroundColorOverride command.

A dummy response object for the EmulationDomain.setDefaultBackgroundColorOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDeviceMetricsOverrideRequest(val width: Int, val height: Int, val deviceScaleFactor: Double, val mobile: Boolean, val scale: Double? = null, val screenWidth: Int? = null, val screenHeight: Int? = null, val positionX: Int? = null, val positionY: Int? = null, val dontSetVisibleSize: Boolean? = null, val screenOrientation: ScreenOrientation? = null, val viewport: Viewport? = null, val displayFeature: DisplayFeature? = null, val devicePosture: DevicePosture? = null)

Request object containing input parameters for the EmulationDomain.setDeviceMetricsOverride command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setDeviceMetricsOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDevicePostureOverrideRequest(val posture: DevicePosture)

Request object containing input parameters for the EmulationDomain.setDevicePostureOverride command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setDevicePostureOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDisabledImageTypesRequest(val imageTypes: List<DisabledImageType>)

Request object containing input parameters for the EmulationDomain.setDisabledImageTypes command.

Link copied to clipboard
@Serializable
object SetDisabledImageTypesResponse

A dummy response object for the EmulationDomain.setDisabledImageTypes command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDocumentCookieDisabledRequest(val disabled: Boolean)

Request object containing input parameters for the EmulationDomain.setDocumentCookieDisabled command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setDocumentCookieDisabled command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetEmitTouchEventsForMouseRequest(val enabled: Boolean, val configuration: TouchEventsConfiguration? = null)

Request object containing input parameters for the EmulationDomain.setEmitTouchEventsForMouse command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setEmitTouchEventsForMouse command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetEmulatedMediaRequest(val media: String? = null, val features: List<MediaFeature>? = null)

Request object containing input parameters for the EmulationDomain.setEmulatedMedia command.

Link copied to clipboard
@Serializable
object SetEmulatedMediaResponse

A dummy response object for the EmulationDomain.setEmulatedMedia command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

Request object containing input parameters for the EmulationDomain.setEmulatedVisionDeficiency command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setEmulatedVisionDeficiency command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetFocusEmulationEnabledRequest(val enabled: Boolean)

Request object containing input parameters for the EmulationDomain.setFocusEmulationEnabled command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setFocusEmulationEnabled command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetGeolocationOverrideRequest(val latitude: Double? = null, val longitude: Double? = null, val accuracy: Double? = null)

Request object containing input parameters for the EmulationDomain.setGeolocationOverride command.

Link copied to clipboard
@Serializable
object SetGeolocationOverrideResponse

A dummy response object for the EmulationDomain.setGeolocationOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetHardwareConcurrencyOverrideRequest(val hardwareConcurrency: Int)

Request object containing input parameters for the EmulationDomain.setHardwareConcurrencyOverride command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setHardwareConcurrencyOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetIdleOverrideRequest(val isUserActive: Boolean, val isScreenUnlocked: Boolean)

Request object containing input parameters for the EmulationDomain.setIdleOverride command.

Link copied to clipboard
@Serializable
object SetIdleOverrideResponse

A dummy response object for the EmulationDomain.setIdleOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetLocaleOverrideRequest(val locale: String? = null)

Request object containing input parameters for the EmulationDomain.setLocaleOverride command.

Link copied to clipboard
@Serializable
object SetLocaleOverrideResponse

A dummy response object for the EmulationDomain.setLocaleOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetNavigatorOverridesRequest(val platform: String)

Request object containing input parameters for the EmulationDomain.setNavigatorOverrides command.

Link copied to clipboard
@Serializable
object SetNavigatorOverridesResponse

A dummy response object for the EmulationDomain.setNavigatorOverrides command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetPageScaleFactorRequest(val pageScaleFactor: Double)

Request object containing input parameters for the EmulationDomain.setPageScaleFactor command.

Link copied to clipboard
@Serializable
object SetPageScaleFactorResponse

A dummy response object for the EmulationDomain.setPageScaleFactor command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetScriptExecutionDisabledRequest(val value: Boolean)

Request object containing input parameters for the EmulationDomain.setScriptExecutionDisabled command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setScriptExecutionDisabled command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetScrollbarsHiddenRequest(val hidden: Boolean)

Request object containing input parameters for the EmulationDomain.setScrollbarsHidden command.

Link copied to clipboard
@Serializable
object SetScrollbarsHiddenResponse

A dummy response object for the EmulationDomain.setScrollbarsHidden command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetSensorOverrideEnabledRequest(val enabled: Boolean, val type: SensorType, val metadata: SensorMetadata? = null)

Request object containing input parameters for the EmulationDomain.setSensorOverrideEnabled command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setSensorOverrideEnabled command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetSensorOverrideReadingsRequest(val type: SensorType, val reading: SensorReading)

Request object containing input parameters for the EmulationDomain.setSensorOverrideReadings command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setSensorOverrideReadings command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetTimezoneOverrideRequest(val timezoneId: String)

Request object containing input parameters for the EmulationDomain.setTimezoneOverride command.

Link copied to clipboard
@Serializable
object SetTimezoneOverrideResponse

A dummy response object for the EmulationDomain.setTimezoneOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetTouchEmulationEnabledRequest(val enabled: Boolean, val maxTouchPoints: Int? = null)

Request object containing input parameters for the EmulationDomain.setTouchEmulationEnabled command.

Link copied to clipboard

A dummy response object for the EmulationDomain.setTouchEmulationEnabled command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetUserAgentOverrideRequest(val userAgent: String, val acceptLanguage: String? = null, val platform: String? = null, val userAgentMetadata: UserAgentMetadata? = null)

Request object containing input parameters for the EmulationDomain.setUserAgentOverride command.

Link copied to clipboard
@Serializable
object SetUserAgentOverrideResponse

A dummy response object for the EmulationDomain.setUserAgentOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetVirtualTimePolicyRequest(val policy: VirtualTimePolicy, val budget: Double? = null, val maxVirtualTimeTaskStarvationCount: Int? = null, val initialVirtualTime: TimeSinceEpoch? = null)

Request object containing input parameters for the EmulationDomain.setVirtualTimePolicy command.

Link copied to clipboard
@Serializable
data class SetVirtualTimePolicyResponse(val virtualTimeTicksBase: Double)

Response type for the EmulationDomain.setVirtualTimePolicy command.

Link copied to clipboard
@Serializable
data class SetVisibleSizeRequest(val width: Int, val height: Int)

Request object containing input parameters for the EmulationDomain.setVisibleSize command.

Link copied to clipboard
@Serializable
object SetVisibleSizeResponse

A dummy response object for the EmulationDomain.setVisibleSize command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class UserAgentBrandVersion(val brand: String, val version: String)

Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints

Link copied to clipboard
@Serializable
data class UserAgentMetadata(val brands: List<UserAgentBrandVersion>? = null, val fullVersionList: List<UserAgentBrandVersion>? = null, val fullVersion: String? = null, val platform: String, val platformVersion: String, val architecture: String, val model: String, val mobile: Boolean, val bitness: String? = null, val wow64: Boolean? = null)

Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use.

Link copied to clipboard

advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.