Module chrome_remote_interface_model::emulation[][src]

This is supported on crate features Emulation and DOM and Page and Runtime only.

This domain emulates different environments for the page.

Structs

CanEmulateCommand

Tells whether emulation is supported.

CanEmulateReturn

Tells whether emulation is supported.

ClearDeviceMetricsOverrideCommand

Clears the overriden device metrics.

ClearDeviceMetricsOverrideReturn

Clears the overriden device metrics.

ClearGeolocationOverrideCommand

Clears the overriden Geolocation Position and Error.

ClearGeolocationOverrideReturn

Clears the overriden Geolocation Position and Error.

ClearIdleOverrideCommandexperimental

Clears Idle state overrides.

ClearIdleOverrideReturnexperimental

Clears Idle state overrides.

DisplayFeature
MediaFeature
ResetPageScaleFactorCommandexperimental

Requests that page scale factor is reset to initial values.

ResetPageScaleFactorReturnexperimental

Requests that page scale factor is reset to initial values.

ScreenOrientation

Screen orientation.

SetCpuThrottlingRateCommandexperimental

Enables CPU throttling to emulate slow CPUs.

SetCpuThrottlingRateReturnexperimental

Enables CPU throttling to emulate slow CPUs.

SetDefaultBackgroundColorOverrideCommand

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

SetDefaultBackgroundColorOverrideReturn

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

SetDeviceMetricsOverrideCommand

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

SetDeviceMetricsOverrideCommandBuilder
SetDeviceMetricsOverrideReturn

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

SetDisabledImageTypesCommandexperimental
SetDisabledImageTypesReturnexperimental
SetDocumentCookieDisabledCommandexperimental
SetDocumentCookieDisabledReturnexperimental
SetEmitTouchEventsForMouseCommandexperimental
SetEmitTouchEventsForMouseReturnexperimental
SetEmulatedMediaCommand

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

SetEmulatedMediaReturn

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

SetEmulatedVisionDeficiencyCommandexperimental

Emulates the given vision deficiency.

SetEmulatedVisionDeficiencyReturnexperimental

Emulates the given vision deficiency.

SetFocusEmulationEnabledCommandexperimental

Enables or disables simulating a focused and active page.

SetFocusEmulationEnabledReturnexperimental

Enables or disables simulating a focused and active page.

SetGeolocationOverrideCommand

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

SetGeolocationOverrideReturn

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

SetIdleOverrideCommandexperimental

Overrides the Idle state.

SetIdleOverrideReturnexperimental

Overrides the Idle state.

SetLocaleOverrideCommandexperimental

Overrides default host system locale with the specified one.

SetLocaleOverrideReturnexperimental

Overrides default host system locale with the specified one.

SetNavigatorOverridesCommandDeprecatedexperimental

Overrides value returned by the javascript navigator object.

SetNavigatorOverridesReturnDeprecatedexperimental

Overrides value returned by the javascript navigator object.

SetPageScaleFactorCommandexperimental

Sets a specified page scale factor.

SetPageScaleFactorReturnexperimental

Sets a specified page scale factor.

SetScriptExecutionDisabledCommand

Switches script execution in the page.

SetScriptExecutionDisabledReturn

Switches script execution in the page.

SetScrollbarsHiddenCommandexperimental
SetScrollbarsHiddenReturnexperimental
SetTimezoneOverrideCommandexperimental

Overrides default host system timezone with the specified one.

SetTimezoneOverrideReturnexperimental

Overrides default host system timezone with the specified one.

SetTouchEmulationEnabledCommand

Enables touch on platforms which do not support them.

SetTouchEmulationEnabledReturn

Enables touch on platforms which do not support them.

SetUserAgentOverrideCommand

Allows overriding user agent with the given string.

SetUserAgentOverrideCommandBuilder
SetUserAgentOverrideReturn

Allows overriding user agent with the given string.

SetVirtualTimePolicyCommandexperimental

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.

SetVirtualTimePolicyCommandBuilderexperimental
SetVirtualTimePolicyReturnexperimental

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.

SetVisibleSizeCommandDeprecatedexperimental

Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.

SetVisibleSizeReturnDeprecatedexperimental

Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.

UserAgentBrandVersionexperimental

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

UserAgentMetadataexperimental

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

UserAgentMetadataBuilderexperimental
VirtualTimeBudgetExpiredEventexperimental

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

Enums

DisabledImageTypeexperimental
DisplayFeatureOrientation
ScreenOrientationType
SetEmitTouchEventsForMouseCommandConfiguration
SetEmulatedVisionDeficiencyCommandType
VirtualTimePolicyexperimental