Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2020 Changes in this version + const CommandEmulationCanEmulate + const CommandEmulationClearDeviceMetricsOverride + const CommandEmulationClearGeolocationOverride + const CommandEmulationResetPageScaleFactor + const CommandEmulationSetCPUThrottlingRate + const CommandEmulationSetDefaultBackgroundColorOverride + const CommandEmulationSetDeviceMetricsOverride + const CommandEmulationSetDocumentCookieDisabled + const CommandEmulationSetEmitTouchEventsForMouse + const CommandEmulationSetEmulatedMedia + const CommandEmulationSetEmulatedVisionDeficiency + const CommandEmulationSetFocusEmulationEnabled + const CommandEmulationSetGeolocationOverride + const CommandEmulationSetLocaleOverride + const CommandEmulationSetNavigatorOverrides + const CommandEmulationSetPageScaleFactor + const CommandEmulationSetScriptExecutionDisabled + const CommandEmulationSetScrollbarsHidden + const CommandEmulationSetTimezoneOverride + const CommandEmulationSetTouchEmulationEnabled + const CommandEmulationSetUserAgentOverride + const CommandEmulationSetVirtualTimePolicy + const CommandEmulationSetVisibleSize + const EventEmulationVirtualTimeBudgetExpired + var EventConstants = map[string]Unmarshaler + func GetEventReply(event string) (json.Unmarshaler, bool) + type CanEmulateArgs struct + func (a *CanEmulateArgs) MarshalJSON() ([]byte, error) + func (a *CanEmulateArgs) UnmarshalJSON(b []byte) error + type CanEmulateReply struct + Result bool + func (a *CanEmulateReply) GetFrameID() string + func (a *CanEmulateReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *CanEmulateReply) UnmarshalJSON(b []byte) error + type ClearDeviceMetricsOverrideArgs struct + func (a *ClearDeviceMetricsOverrideArgs) MarshalJSON() ([]byte, error) + func (a *ClearDeviceMetricsOverrideArgs) UnmarshalJSON(b []byte) error + type ClearDeviceMetricsOverrideReply struct + func (a *ClearDeviceMetricsOverrideReply) GetFrameID() string + func (a *ClearDeviceMetricsOverrideReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *ClearDeviceMetricsOverrideReply) UnmarshalJSON(b []byte) error + type ClearGeolocationOverrideArgs struct + func (a *ClearGeolocationOverrideArgs) MarshalJSON() ([]byte, error) + func (a *ClearGeolocationOverrideArgs) UnmarshalJSON(b []byte) error + type ClearGeolocationOverrideReply struct + func (a *ClearGeolocationOverrideReply) GetFrameID() string + func (a *ClearGeolocationOverrideReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *ClearGeolocationOverrideReply) UnmarshalJSON(b []byte) error + type MediaFeature struct + Name string + Value string + type ResetPageScaleFactorArgs struct + func (a *ResetPageScaleFactorArgs) MarshalJSON() ([]byte, error) + func (a *ResetPageScaleFactorArgs) UnmarshalJSON(b []byte) error + type ResetPageScaleFactorReply struct + func (a *ResetPageScaleFactorReply) GetFrameID() string + func (a *ResetPageScaleFactorReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *ResetPageScaleFactorReply) UnmarshalJSON(b []byte) error + type ScreenOrientation struct + Angle int + Type string + type SetCPUThrottlingRateArgs struct + Rate float64 + func (a *SetCPUThrottlingRateArgs) MarshalJSON() ([]byte, error) + func (a *SetCPUThrottlingRateArgs) UnmarshalJSON(b []byte) error + type SetCPUThrottlingRateReply struct + func (a *SetCPUThrottlingRateReply) GetFrameID() string + func (a *SetCPUThrottlingRateReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetCPUThrottlingRateReply) UnmarshalJSON(b []byte) error + type SetDefaultBackgroundColorOverrideArgs struct + Color *dom.RGBA + func (a *SetDefaultBackgroundColorOverrideArgs) MarshalJSON() ([]byte, error) + func (a *SetDefaultBackgroundColorOverrideArgs) UnmarshalJSON(b []byte) error + type SetDefaultBackgroundColorOverrideReply struct + func (a *SetDefaultBackgroundColorOverrideReply) GetFrameID() string + func (a *SetDefaultBackgroundColorOverrideReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetDefaultBackgroundColorOverrideReply) UnmarshalJSON(b []byte) error + type SetDeviceMetricsOverrideArgs struct + DeviceScaleFactor float64 + DontSetVisibleSize bool + Height int + Mobile bool + PositionX int + PositionY int + Scale float64 + ScreenHeight int + ScreenOrientation *ScreenOrientation + ScreenWidth int + Viewport *page.Viewport + Width int + func (a *SetDeviceMetricsOverrideArgs) MarshalJSON() ([]byte, error) + func (a *SetDeviceMetricsOverrideArgs) UnmarshalJSON(b []byte) error + type SetDeviceMetricsOverrideReply struct + func (a *SetDeviceMetricsOverrideReply) GetFrameID() string + func (a *SetDeviceMetricsOverrideReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetDeviceMetricsOverrideReply) UnmarshalJSON(b []byte) error + type SetDocumentCookieDisabledArgs struct + Disabled bool + func (a *SetDocumentCookieDisabledArgs) MarshalJSON() ([]byte, error) + func (a *SetDocumentCookieDisabledArgs) UnmarshalJSON(b []byte) error + type SetDocumentCookieDisabledReply struct + func (a *SetDocumentCookieDisabledReply) GetFrameID() string + func (a *SetDocumentCookieDisabledReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetDocumentCookieDisabledReply) UnmarshalJSON(b []byte) error + type SetEmitTouchEventsForMouseArgs struct + Configuration string + Enabled bool + func (a *SetEmitTouchEventsForMouseArgs) MarshalJSON() ([]byte, error) + func (a *SetEmitTouchEventsForMouseArgs) UnmarshalJSON(b []byte) error + type SetEmitTouchEventsForMouseReply struct + func (a *SetEmitTouchEventsForMouseReply) GetFrameID() string + func (a *SetEmitTouchEventsForMouseReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetEmitTouchEventsForMouseReply) UnmarshalJSON(b []byte) error + type SetEmulatedMediaArgs struct + Features *[]MediaFeature + Media string + func (a *SetEmulatedMediaArgs) MarshalJSON() ([]byte, error) + func (a *SetEmulatedMediaArgs) UnmarshalJSON(b []byte) error + type SetEmulatedMediaReply struct + func (a *SetEmulatedMediaReply) GetFrameID() string + func (a *SetEmulatedMediaReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetEmulatedMediaReply) UnmarshalJSON(b []byte) error + type SetEmulatedVisionDeficiencyArgs struct + Type string + func (a *SetEmulatedVisionDeficiencyArgs) MarshalJSON() ([]byte, error) + func (a *SetEmulatedVisionDeficiencyArgs) UnmarshalJSON(b []byte) error + type SetEmulatedVisionDeficiencyReply struct + func (a *SetEmulatedVisionDeficiencyReply) GetFrameID() string + func (a *SetEmulatedVisionDeficiencyReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetEmulatedVisionDeficiencyReply) UnmarshalJSON(b []byte) error + type SetFocusEmulationEnabledArgs struct + Enabled bool + func (a *SetFocusEmulationEnabledArgs) MarshalJSON() ([]byte, error) + func (a *SetFocusEmulationEnabledArgs) UnmarshalJSON(b []byte) error + type SetFocusEmulationEnabledReply struct + func (a *SetFocusEmulationEnabledReply) GetFrameID() string + func (a *SetFocusEmulationEnabledReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetFocusEmulationEnabledReply) UnmarshalJSON(b []byte) error + type SetGeolocationOverrideArgs struct + Accuracy float64 + Latitude float64 + Longitude float64 + func (a *SetGeolocationOverrideArgs) MarshalJSON() ([]byte, error) + func (a *SetGeolocationOverrideArgs) UnmarshalJSON(b []byte) error + type SetGeolocationOverrideReply struct + func (a *SetGeolocationOverrideReply) GetFrameID() string + func (a *SetGeolocationOverrideReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetGeolocationOverrideReply) UnmarshalJSON(b []byte) error + type SetLocaleOverrideArgs struct + Locale string + func (a *SetLocaleOverrideArgs) MarshalJSON() ([]byte, error) + func (a *SetLocaleOverrideArgs) UnmarshalJSON(b []byte) error + type SetLocaleOverrideReply struct + func (a *SetLocaleOverrideReply) GetFrameID() string + func (a *SetLocaleOverrideReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetLocaleOverrideReply) UnmarshalJSON(b []byte) error + type SetNavigatorOverridesArgs struct + Platform string + func (a *SetNavigatorOverridesArgs) MarshalJSON() ([]byte, error) + func (a *SetNavigatorOverridesArgs) UnmarshalJSON(b []byte) error + type SetNavigatorOverridesReply struct + func (a *SetNavigatorOverridesReply) GetFrameID() string + func (a *SetNavigatorOverridesReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetNavigatorOverridesReply) UnmarshalJSON(b []byte) error + type SetPageScaleFactorArgs struct + PageScaleFactor float64 + func (a *SetPageScaleFactorArgs) MarshalJSON() ([]byte, error) + func (a *SetPageScaleFactorArgs) UnmarshalJSON(b []byte) error + type SetPageScaleFactorReply struct + func (a *SetPageScaleFactorReply) GetFrameID() string + func (a *SetPageScaleFactorReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetPageScaleFactorReply) UnmarshalJSON(b []byte) error + type SetScriptExecutionDisabledArgs struct + Value bool + func (a *SetScriptExecutionDisabledArgs) MarshalJSON() ([]byte, error) + func (a *SetScriptExecutionDisabledArgs) UnmarshalJSON(b []byte) error + type SetScriptExecutionDisabledReply struct + func (a *SetScriptExecutionDisabledReply) GetFrameID() string + func (a *SetScriptExecutionDisabledReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetScriptExecutionDisabledReply) UnmarshalJSON(b []byte) error + type SetScrollbarsHiddenArgs struct + Hidden bool + func (a *SetScrollbarsHiddenArgs) MarshalJSON() ([]byte, error) + func (a *SetScrollbarsHiddenArgs) UnmarshalJSON(b []byte) error + type SetScrollbarsHiddenReply struct + func (a *SetScrollbarsHiddenReply) GetFrameID() string + func (a *SetScrollbarsHiddenReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetScrollbarsHiddenReply) UnmarshalJSON(b []byte) error + type SetTimezoneOverrideArgs struct + TimezoneID string + func (a *SetTimezoneOverrideArgs) MarshalJSON() ([]byte, error) + func (a *SetTimezoneOverrideArgs) UnmarshalJSON(b []byte) error + type SetTimezoneOverrideReply struct + func (a *SetTimezoneOverrideReply) GetFrameID() string + func (a *SetTimezoneOverrideReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetTimezoneOverrideReply) UnmarshalJSON(b []byte) error + type SetTouchEmulationEnabledArgs struct + Enabled bool + MaxTouchPoints int + func (a *SetTouchEmulationEnabledArgs) MarshalJSON() ([]byte, error) + func (a *SetTouchEmulationEnabledArgs) UnmarshalJSON(b []byte) error + type SetTouchEmulationEnabledReply struct + func (a *SetTouchEmulationEnabledReply) GetFrameID() string + func (a *SetTouchEmulationEnabledReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetTouchEmulationEnabledReply) UnmarshalJSON(b []byte) error + type SetUserAgentOverrideArgs struct + AcceptLanguage string + Platform string + UserAgent string + func (a *SetUserAgentOverrideArgs) MarshalJSON() ([]byte, error) + func (a *SetUserAgentOverrideArgs) UnmarshalJSON(b []byte) error + type SetUserAgentOverrideReply struct + func (a *SetUserAgentOverrideReply) GetFrameID() string + func (a *SetUserAgentOverrideReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetUserAgentOverrideReply) UnmarshalJSON(b []byte) error + type SetVirtualTimePolicyArgs struct + Budget float64 + InitialVirtualTime *shared.TimeSinceEpoch + MaxVirtualTimeTaskStarvationCount int + Policy VirtualTimePolicy + WaitForNavigation bool + func (a *SetVirtualTimePolicyArgs) MarshalJSON() ([]byte, error) + func (a *SetVirtualTimePolicyArgs) UnmarshalJSON(b []byte) error + type SetVirtualTimePolicyReply struct + VirtualTimeTicksBase float64 + func (a *SetVirtualTimePolicyReply) GetFrameID() string + func (a *SetVirtualTimePolicyReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetVirtualTimePolicyReply) UnmarshalJSON(b []byte) error + type SetVisibleSizeArgs struct + Height int + Width int + func (a *SetVisibleSizeArgs) MarshalJSON() ([]byte, error) + func (a *SetVisibleSizeArgs) UnmarshalJSON(b []byte) error + type SetVisibleSizeReply struct + func (a *SetVisibleSizeReply) GetFrameID() string + func (a *SetVisibleSizeReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *SetVisibleSizeReply) UnmarshalJSON(b []byte) error + type Unmarshaler func() json.Unmarshaler + type VirtualTimeBudgetExpiredReply struct + func (a *VirtualTimeBudgetExpiredReply) GetFrameID() string + func (a *VirtualTimeBudgetExpiredReply) MatchFrameID(frameID string, m []byte) (bool, error) + func (a *VirtualTimeBudgetExpiredReply) UnmarshalJSON(b []byte) error + type VirtualTimePolicy string + const VirtualTimePolicyAdvance + const VirtualTimePolicyNotSet + const VirtualTimePolicyPause + const VirtualTimePolicyPauseIfNetworkFetchesPending + func (e VirtualTimePolicy) String() string + func (e VirtualTimePolicy) Valid() bool