Module chromiumoxide::cdp::browser_protocol::emulation[][src]

This domain emulates different environments for the page.

Structs

CanEmulateParams

Tells whether emulation is supported. canEmulate

CanEmulateReturns

Tells whether emulation is supported. canEmulate

CanEmulateReturnsBuilder
ClearDeviceMetricsOverrideParams

Clears the overriden device metrics. clearDeviceMetricsOverride

ClearDeviceMetricsOverrideReturns

Clears the overriden device metrics. clearDeviceMetricsOverride

ClearGeolocationOverrideParams

Clears the overriden Geolocation Position and Error. clearGeolocationOverride

ClearGeolocationOverrideReturns

Clears the overriden Geolocation Position and Error. clearGeolocationOverride

ClearIdleOverrideParams

Clears Idle state overrides. clearIdleOverride

ClearIdleOverrideReturns

Clears Idle state overrides. clearIdleOverride

DisplayFeature
DisplayFeatureBuilder
EventVirtualTimeBudgetExpired

Notification sent after the virtual time budget for the current VirtualTimePolicy has run out. virtualTimeBudgetExpired

MediaFeature
MediaFeatureBuilder
ResetPageScaleFactorParams

Requests that page scale factor is reset to initial values. resetPageScaleFactor

ResetPageScaleFactorReturns

Requests that page scale factor is reset to initial values. resetPageScaleFactor

ScreenOrientation

Screen orientation. ScreenOrientation

ScreenOrientationBuilder
SetCpuThrottlingRateParams

Enables CPU throttling to emulate slow CPUs. setCPUThrottlingRate

SetCpuThrottlingRateParamsBuilder
SetCpuThrottlingRateReturns

Enables CPU throttling to emulate slow CPUs. setCPUThrottlingRate

SetDefaultBackgroundColorOverrideParams

Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one. setDefaultBackgroundColorOverride

SetDefaultBackgroundColorOverrideParamsBuilder
SetDefaultBackgroundColorOverrideReturns

Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one. setDefaultBackgroundColorOverride

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). setDeviceMetricsOverride

SetDeviceMetricsOverrideParamsBuilder
SetDeviceMetricsOverrideReturns

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). setDeviceMetricsOverride

SetDocumentCookieDisabledParams
SetDocumentCookieDisabledParamsBuilder
SetDocumentCookieDisabledReturns
SetEmitTouchEventsForMouseParams
SetEmitTouchEventsForMouseParamsBuilder
SetEmitTouchEventsForMouseReturns
SetEmulatedMediaParams

Emulates the given media type or media feature for CSS media queries. setEmulatedMedia

SetEmulatedMediaParamsBuilder
SetEmulatedMediaReturns

Emulates the given media type or media feature for CSS media queries. setEmulatedMedia

SetEmulatedVisionDeficiencyParams

Emulates the given vision deficiency. setEmulatedVisionDeficiency

SetEmulatedVisionDeficiencyParamsBuilder
SetEmulatedVisionDeficiencyReturns

Emulates the given vision deficiency. setEmulatedVisionDeficiency

SetFocusEmulationEnabledParams

Enables or disables simulating a focused and active page. setFocusEmulationEnabled

SetFocusEmulationEnabledParamsBuilder
SetFocusEmulationEnabledReturns

Enables or disables simulating a focused and active page. setFocusEmulationEnabled

SetGeolocationOverrideParams

Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. setGeolocationOverride

SetGeolocationOverrideParamsBuilder
SetGeolocationOverrideReturns

Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. setGeolocationOverride

SetIdleOverrideParams

Overrides the Idle state. setIdleOverride

SetIdleOverrideParamsBuilder
SetIdleOverrideReturns

Overrides the Idle state. setIdleOverride

SetLocaleOverrideParams

Overrides default host system locale with the specified one. setLocaleOverride

SetLocaleOverrideParamsBuilder
SetLocaleOverrideReturns

Overrides default host system locale with the specified one. setLocaleOverride

SetPageScaleFactorParams

Sets a specified page scale factor. setPageScaleFactor

SetPageScaleFactorParamsBuilder
SetPageScaleFactorReturns

Sets a specified page scale factor. setPageScaleFactor

SetScriptExecutionDisabledParams

Switches script execution in the page. setScriptExecutionDisabled

SetScriptExecutionDisabledParamsBuilder
SetScriptExecutionDisabledReturns

Switches script execution in the page. setScriptExecutionDisabled

SetScrollbarsHiddenParams
SetScrollbarsHiddenParamsBuilder
SetScrollbarsHiddenReturns
SetTimezoneOverrideParams

Overrides default host system timezone with the specified one. setTimezoneOverride

SetTimezoneOverrideParamsBuilder
SetTimezoneOverrideReturns

Overrides default host system timezone with the specified one. setTimezoneOverride

SetTouchEmulationEnabledParams

Enables touch on platforms which do not support them. setTouchEmulationEnabled

SetTouchEmulationEnabledParamsBuilder
SetTouchEmulationEnabledReturns

Enables touch on platforms which do not support them. setTouchEmulationEnabled

SetUserAgentOverrideParams

Allows overriding user agent with the given string. setUserAgentOverride

SetUserAgentOverrideParamsBuilder
SetUserAgentOverrideReturns

Allows overriding user agent with the given string. setUserAgentOverride

SetVirtualTimePolicyParams

Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget. setVirtualTimePolicy

SetVirtualTimePolicyParamsBuilder
SetVirtualTimePolicyReturns

Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget. setVirtualTimePolicy

SetVirtualTimePolicyReturnsBuilder
UserAgentBrandVersion

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

UserAgentBrandVersionBuilder
UserAgentMetadata

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

UserAgentMetadataBuilder

Enums

DisplayFeatureOrientation

Orientation of a display feature in relation to screen

ScreenOrientationType

Orientation type.

SetEmitTouchEventsForMouseConfiguration

Touch/gesture events configuration. Default: current platform.

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.