package
0.0.0-20200525080501-418ac89e6fd2
Repository: https://github.com/bootgo/cdproto.git
Documentation: pkg.go.dev

# Functions

CanEmulate tells whether emulation is supported.
ClearDeviceMetricsOverride clears the overridden device metrics.
ClearGeolocationOverride clears the overridden Geolocation Position and Error.
ResetPageScaleFactor requests that page scale factor is reset to initial values.
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).
SetDocumentCookieDisabled [no description].
SetEmitTouchEventsForMouse [no description].
SetEmulatedMedia emulates the given media for CSS media queries.
SetFocusEmulationEnabled enables or disables simulating a focused and active page.
SetGeolocationOverride overrides the Geolocation Position or Error.
SetPageScaleFactor sets a specified page scale factor.
SetScriptExecutionDisabled switches script execution in the page.
SetScrollbarsHidden [no description].
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

# Structs

CanEmulateParams tells whether emulation is supported.
CanEmulateReturns return values.
ClearDeviceMetricsOverrideParams clears the overridden device metrics.
ClearGeolocationOverrideParams clears the overridden Geolocation Position and Error.
EventVirtualTimeAdvanced notification sent after the virtual time has advanced.
EventVirtualTimeBudgetExpired notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
EventVirtualTimePaused notification sent after the virtual time has paused.
ResetPageScaleFactorParams requests that page scale factor is reset to initial values.
ScreenOrientation screen orientation.
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).
SetDocumentCookieDisabledParams [no description].
SetEmitTouchEventsForMouseParams [no description].
SetEmulatedMediaParams emulates the given media for CSS media queries.
SetFocusEmulationEnabledParams enables or disables simulating a focused and active page.
SetGeolocationOverrideParams overrides the Geolocation Position or Error.
SetPageScaleFactorParams sets a specified page scale factor.
SetScriptExecutionDisabledParams switches script execution in the page.
SetScrollbarsHiddenParams [no description].
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.

# Type aliases

OrientationType orientation type.
SetEmitTouchEventsForMouseConfiguration touch/gesture events configuration.
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.