package
0.0.0-20250224005500-01948a15fe7c
Repository: https://github.com/chromedp/cdproto.git
Documentation: pkg.go.dev

# Functions

ClearDeviceMetricsOverride clears the overridden device metrics.
ClearDevicePostureOverride clears a device posture override set with either setDeviceMetricsOverride() or setDevicePostureOverride() and starts using posture information from the platform again.
ClearGeolocationOverride clears the overridden Geolocation Position and Error.
ClearIdleOverride clears Idle state overrides.
GetOverriddenSensorInformation [no description].
ResetPageScaleFactor requests that page scale factor is reset to initial values.
SetAutoDarkModeOverride automatically render all web contents using a dark theme.
SetAutomationOverride allows overriding the automation flag.
SetCPUThrottlingRate enables CPU throttling to emulate slow CPUs.
SetDefaultBackgroundColorOverride sets or clears an override of the default background color of the frame.
SetDeviceMetricsOverride overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results).
SetDevicePostureOverride start reporting the given posture value to the Device Posture API.
SetDisabledImageTypes [no description].
SetDocumentCookieDisabled [no description].
SetEmitTouchEventsForMouse [no description].
SetEmulatedMedia emulates the given media type or media feature for CSS media queries.
SetEmulatedVisionDeficiency emulates the given vision deficiency.
SetFocusEmulationEnabled enables or disables simulating a focused and active page.
SetGeolocationOverride overrides the Geolocation Position or Error.
SetHardwareConcurrencyOverride [no description].
SetIdleOverride overrides the Idle state.
SetLocaleOverride overrides default host system locale with the specified one.
SetPageScaleFactor sets a specified page scale factor.
SetPressureSourceOverrideEnabled overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data.
SetPressureStateOverride provides a given pressure state that will be processed and eventually be delivered to PressureObserver users.
SetScriptExecutionDisabled switches script execution in the page.
SetScrollbarsHidden [no description].
SetSensorOverrideEnabled overrides a platform sensor of a given type.
SetSensorOverrideReadings updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.
SetTimezoneOverride overrides default host system timezone with the specified one.
SetTouchEmulationEnabled enables touch on platforms which do not support them.
SetUserAgentOverride allows overriding user agent with the given string.
SetVirtualTimePolicy turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy.

# Constants

Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
DevicePostureType values.
DevicePostureType values.
DisabledImageType values.
DisabledImageType values.
DisplayFeatureOrientation values.
DisplayFeatureOrientation values.
OrientationType values.
OrientationType values.
OrientationType values.
OrientationType values.
PressureSource values.
PressureState values.
PressureState values.
PressureState values.
PressureState values.
SensorType values.
SensorType values.
SensorType values.
SensorType values.
SensorType values.
SensorType values.
SensorType values.
SensorType values.
SetEmitTouchEventsForMouseConfiguration values.
SetEmitTouchEventsForMouseConfiguration values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
SetEmulatedVisionDeficiencyType values.
VirtualTimePolicy values.
VirtualTimePolicy values.
VirtualTimePolicy values.

# Structs

ClearDeviceMetricsOverrideParams clears the overridden device metrics.
ClearDevicePostureOverrideParams clears a device posture override set with either setDeviceMetricsOverride() or setDevicePostureOverride() and starts using posture information from the platform again.
ClearGeolocationOverrideParams clears the overridden Geolocation Position and Error.
ClearIdleOverrideParams clears Idle state overrides.
DevicePosture [no description].
DisplayFeature [no description].
EventVirtualTimeBudgetExpired notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
GetOverriddenSensorInformationParams [no description].
GetOverriddenSensorInformationReturns return values.
MediaFeature [no description].
PressureMetadata [no description].
ResetPageScaleFactorParams requests that page scale factor is reset to initial values.
ScreenOrientation screen orientation.
SensorMetadata [no description].
SensorReading [no description].
SensorReadingQuaternion [no description].
SensorReadingSingle [no description].
SensorReadingXYZ [no description].
SetAutoDarkModeOverrideParams automatically render all web contents using a dark theme.
SetAutomationOverrideParams allows overriding the automation flag.
SetCPUThrottlingRateParams enables CPU throttling to emulate slow CPUs.
SetDefaultBackgroundColorOverrideParams sets or clears an override of the default background color of the frame.
SetDeviceMetricsOverrideParams overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media query results).
SetDevicePostureOverrideParams start reporting the given posture value to the Device Posture API.
SetDisabledImageTypesParams [no description].
SetDocumentCookieDisabledParams [no description].
SetEmitTouchEventsForMouseParams [no description].
SetEmulatedMediaParams emulates the given media type or media feature for CSS media queries.
SetEmulatedVisionDeficiencyParams emulates the given vision deficiency.
SetFocusEmulationEnabledParams enables or disables simulating a focused and active page.
SetGeolocationOverrideParams overrides the Geolocation Position or Error.
SetHardwareConcurrencyOverrideParams [no description].
SetIdleOverrideParams overrides the Idle state.
SetLocaleOverrideParams overrides default host system locale with the specified one.
SetPageScaleFactorParams sets a specified page scale factor.
SetPressureSourceOverrideEnabledParams overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data.
SetPressureStateOverrideParams provides a given pressure state that will be processed and eventually be delivered to PressureObserver users.
SetScriptExecutionDisabledParams switches script execution in the page.
SetScrollbarsHiddenParams [no description].
SetSensorOverrideEnabledParams overrides a platform sensor of a given type.
SetSensorOverrideReadingsParams updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.
SetTimezoneOverrideParams overrides default host system timezone with the specified one.
SetTouchEmulationEnabledParams enables touch on platforms which do not support them.
SetUserAgentOverrideParams allows overriding user agent with the given string.
SetVirtualTimePolicyParams turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy.
SetVirtualTimePolicyReturns return values.
UserAgentBrandVersion used to specify User Agent Client Hints to emulate.
UserAgentMetadata used to specify User Agent Client Hints to emulate.

# Type aliases

DevicePostureType current posture of the device.
DisabledImageType enum of image types that can be disabled.
DisplayFeatureOrientation orientation of a display feature in relation to screen.
OrientationType orientation type.
PressureSource [no description].
PressureState [no description].
SensorType used to specify sensor types to emulate.
SetEmitTouchEventsForMouseConfiguration touch/gesture events configuration.
SetEmulatedVisionDeficiencyType vision deficiency to emulate.
VirtualTimePolicy 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.