Documentation ¶
Index ¶
- type CanEmulateCommand
- type CanEmulateCommandFn
- type CanEmulateReturn
- type ClearDeviceMetricsOverrideCommand
- type ClearDeviceMetricsOverrideCommandFn
- type ClearDeviceMetricsOverrideReturn
- type ClearGeolocationOverrideCommand
- type ClearGeolocationOverrideCommandFn
- type ClearGeolocationOverrideReturn
- type EmulationAgent
- func (agent *EmulationAgent) FireVirtualTimeBudgetExpired()
- func (agent *EmulationAgent) FireVirtualTimeBudgetExpiredOnTarget(targetId string)
- func (agent *EmulationAgent) Name() string
- func (agent *EmulationAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *EmulationAgent) SetCanEmulateHandler(handler func(CanEmulateCommand))
- func (agent *EmulationAgent) SetClearDeviceMetricsOverrideHandler(handler func(ClearDeviceMetricsOverrideCommand))
- func (agent *EmulationAgent) SetClearGeolocationOverrideHandler(handler func(ClearGeolocationOverrideCommand))
- func (agent *EmulationAgent) SetForceViewportHandler(handler func(ForceViewportCommand))
- func (agent *EmulationAgent) SetResetPageScaleFactorHandler(handler func(ResetPageScaleFactorCommand))
- func (agent *EmulationAgent) SetResetViewportHandler(handler func(ResetViewportCommand))
- func (agent *EmulationAgent) SetSetCPUThrottlingRateHandler(handler func(SetCPUThrottlingRateCommand))
- func (agent *EmulationAgent) SetSetDefaultBackgroundColorOverrideHandler(handler func(SetDefaultBackgroundColorOverrideCommand))
- func (agent *EmulationAgent) SetSetDeviceMetricsOverrideHandler(handler func(SetDeviceMetricsOverrideCommand))
- func (agent *EmulationAgent) SetSetEmulatedMediaHandler(handler func(SetEmulatedMediaCommand))
- func (agent *EmulationAgent) SetSetGeolocationOverrideHandler(handler func(SetGeolocationOverrideCommand))
- func (agent *EmulationAgent) SetSetPageScaleFactorHandler(handler func(SetPageScaleFactorCommand))
- func (agent *EmulationAgent) SetSetScriptExecutionDisabledHandler(handler func(SetScriptExecutionDisabledCommand))
- func (agent *EmulationAgent) SetSetTouchEmulationEnabledHandler(handler func(SetTouchEmulationEnabledCommand))
- func (agent *EmulationAgent) SetSetVirtualTimePolicyHandler(handler func(SetVirtualTimePolicyCommand))
- func (agent *EmulationAgent) SetSetVisibleSizeHandler(handler func(SetVisibleSizeCommand))
- type ForceViewportCommand
- type ForceViewportCommandFn
- type ForceViewportReturn
- type ResetPageScaleFactorCommand
- type ResetPageScaleFactorCommandFn
- type ResetPageScaleFactorReturn
- type ResetViewportCommand
- type ResetViewportCommandFn
- type ResetViewportReturn
- type ScreenOrientation
- type ScreenOrientationTypeEnum
- type SetCPUThrottlingRateCommand
- type SetCPUThrottlingRateCommandFn
- type SetCPUThrottlingRateReturn
- type SetDefaultBackgroundColorOverrideCommand
- type SetDefaultBackgroundColorOverrideCommandFn
- type SetDefaultBackgroundColorOverrideReturn
- type SetDeviceMetricsOverrideCommand
- type SetDeviceMetricsOverrideCommandFn
- type SetDeviceMetricsOverrideReturn
- type SetEmulatedMediaCommand
- type SetEmulatedMediaCommandFn
- type SetEmulatedMediaReturn
- type SetGeolocationOverrideCommand
- type SetGeolocationOverrideCommandFn
- type SetGeolocationOverrideReturn
- type SetPageScaleFactorCommand
- type SetPageScaleFactorCommandFn
- type SetPageScaleFactorReturn
- type SetScriptExecutionDisabledCommand
- type SetScriptExecutionDisabledCommandFn
- type SetScriptExecutionDisabledReturn
- type SetTouchEmulationEnabledCommand
- type SetTouchEmulationEnabledCommandFn
- type SetTouchEmulationEnabledConfigurationEnum
- type SetTouchEmulationEnabledReturn
- type SetVirtualTimePolicyCommand
- type SetVirtualTimePolicyCommandFn
- type SetVirtualTimePolicyReturn
- type SetVisibleSizeCommand
- type SetVisibleSizeCommandFn
- type SetVisibleSizeReturn
- type VirtualTimeBudgetExpiredEvent
- type VirtualTimePolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanEmulateCommand ¶
type CanEmulateCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*CanEmulateCommand) Initalize ¶
func (c *CanEmulateCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*CanEmulateCommand) Respond ¶
func (c *CanEmulateCommand) Respond(r *CanEmulateReturn)
func (*CanEmulateCommand) RespondWithError ¶
func (c *CanEmulateCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type CanEmulateCommandFn ¶
type CanEmulateCommandFn struct {
// contains filtered or unexported fields
}
func (*CanEmulateCommandFn) Load ¶
func (a *CanEmulateCommandFn) Load() func(CanEmulateCommand)
func (*CanEmulateCommandFn) Store ¶
func (a *CanEmulateCommandFn) Store(fn func(CanEmulateCommand))
type CanEmulateReturn ¶
type CanEmulateReturn struct {
Result bool `json:"result"` // True if emulation is supported.
}
type ClearDeviceMetricsOverrideCommand ¶
type ClearDeviceMetricsOverrideCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ClearDeviceMetricsOverrideCommand) Initalize ¶
func (c *ClearDeviceMetricsOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ClearDeviceMetricsOverrideCommand) Respond ¶
func (c *ClearDeviceMetricsOverrideCommand) Respond()
func (*ClearDeviceMetricsOverrideCommand) RespondWithError ¶
func (c *ClearDeviceMetricsOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ClearDeviceMetricsOverrideCommandFn ¶
type ClearDeviceMetricsOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*ClearDeviceMetricsOverrideCommandFn) Load ¶
func (a *ClearDeviceMetricsOverrideCommandFn) Load() func(ClearDeviceMetricsOverrideCommand)
func (*ClearDeviceMetricsOverrideCommandFn) Store ¶
func (a *ClearDeviceMetricsOverrideCommandFn) Store(fn func(ClearDeviceMetricsOverrideCommand))
type ClearDeviceMetricsOverrideReturn ¶
type ClearDeviceMetricsOverrideReturn struct { }
type ClearGeolocationOverrideCommand ¶
type ClearGeolocationOverrideCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ClearGeolocationOverrideCommand) Initalize ¶
func (c *ClearGeolocationOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ClearGeolocationOverrideCommand) Respond ¶
func (c *ClearGeolocationOverrideCommand) Respond()
func (*ClearGeolocationOverrideCommand) RespondWithError ¶
func (c *ClearGeolocationOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ClearGeolocationOverrideCommandFn ¶
type ClearGeolocationOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*ClearGeolocationOverrideCommandFn) Load ¶
func (a *ClearGeolocationOverrideCommandFn) Load() func(ClearGeolocationOverrideCommand)
func (*ClearGeolocationOverrideCommandFn) Store ¶
func (a *ClearGeolocationOverrideCommandFn) Store(fn func(ClearGeolocationOverrideCommand))
type ClearGeolocationOverrideReturn ¶
type ClearGeolocationOverrideReturn struct { }
type EmulationAgent ¶
type EmulationAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *EmulationAgent
func (*EmulationAgent) FireVirtualTimeBudgetExpired ¶
func (agent *EmulationAgent) FireVirtualTimeBudgetExpired()
Dispatchable Events
func (*EmulationAgent) FireVirtualTimeBudgetExpiredOnTarget ¶
func (agent *EmulationAgent) FireVirtualTimeBudgetExpiredOnTarget(targetId string)
func (*EmulationAgent) Name ¶
func (agent *EmulationAgent) Name() string
func (*EmulationAgent) ProcessCommand ¶
func (agent *EmulationAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
func (*EmulationAgent) SetCanEmulateHandler ¶
func (agent *EmulationAgent) SetCanEmulateHandler(handler func(CanEmulateCommand))
func (*EmulationAgent) SetClearDeviceMetricsOverrideHandler ¶
func (agent *EmulationAgent) SetClearDeviceMetricsOverrideHandler(handler func(ClearDeviceMetricsOverrideCommand))
func (*EmulationAgent) SetClearGeolocationOverrideHandler ¶
func (agent *EmulationAgent) SetClearGeolocationOverrideHandler(handler func(ClearGeolocationOverrideCommand))
func (*EmulationAgent) SetForceViewportHandler ¶
func (agent *EmulationAgent) SetForceViewportHandler(handler func(ForceViewportCommand))
func (*EmulationAgent) SetResetPageScaleFactorHandler ¶
func (agent *EmulationAgent) SetResetPageScaleFactorHandler(handler func(ResetPageScaleFactorCommand))
func (*EmulationAgent) SetResetViewportHandler ¶
func (agent *EmulationAgent) SetResetViewportHandler(handler func(ResetViewportCommand))
func (*EmulationAgent) SetSetCPUThrottlingRateHandler ¶
func (agent *EmulationAgent) SetSetCPUThrottlingRateHandler(handler func(SetCPUThrottlingRateCommand))
func (*EmulationAgent) SetSetDefaultBackgroundColorOverrideHandler ¶
func (agent *EmulationAgent) SetSetDefaultBackgroundColorOverrideHandler(handler func(SetDefaultBackgroundColorOverrideCommand))
func (*EmulationAgent) SetSetDeviceMetricsOverrideHandler ¶
func (agent *EmulationAgent) SetSetDeviceMetricsOverrideHandler(handler func(SetDeviceMetricsOverrideCommand))
Commands Sent From Frontend
func (*EmulationAgent) SetSetEmulatedMediaHandler ¶
func (agent *EmulationAgent) SetSetEmulatedMediaHandler(handler func(SetEmulatedMediaCommand))
func (*EmulationAgent) SetSetGeolocationOverrideHandler ¶
func (agent *EmulationAgent) SetSetGeolocationOverrideHandler(handler func(SetGeolocationOverrideCommand))
func (*EmulationAgent) SetSetPageScaleFactorHandler ¶
func (agent *EmulationAgent) SetSetPageScaleFactorHandler(handler func(SetPageScaleFactorCommand))
func (*EmulationAgent) SetSetScriptExecutionDisabledHandler ¶
func (agent *EmulationAgent) SetSetScriptExecutionDisabledHandler(handler func(SetScriptExecutionDisabledCommand))
func (*EmulationAgent) SetSetTouchEmulationEnabledHandler ¶
func (agent *EmulationAgent) SetSetTouchEmulationEnabledHandler(handler func(SetTouchEmulationEnabledCommand))
func (*EmulationAgent) SetSetVirtualTimePolicyHandler ¶
func (agent *EmulationAgent) SetSetVirtualTimePolicyHandler(handler func(SetVirtualTimePolicyCommand))
func (*EmulationAgent) SetSetVisibleSizeHandler ¶
func (agent *EmulationAgent) SetSetVisibleSizeHandler(handler func(SetVisibleSizeCommand))
type ForceViewportCommand ¶
type ForceViewportCommand struct { DestinationTargetID string X float64 `json:"x"` // X coordinate of top-left corner of the area (CSS pixels). Y float64 `json:"y"` // Y coordinate of top-left corner of the area (CSS pixels). Scale float64 `json:"scale"` // Scale to apply to the area (relative to a page scale of 1.0). // contains filtered or unexported fields }
func (*ForceViewportCommand) Initalize ¶
func (c *ForceViewportCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ForceViewportCommand) Respond ¶
func (c *ForceViewportCommand) Respond()
func (*ForceViewportCommand) RespondWithError ¶
func (c *ForceViewportCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ForceViewportCommandFn ¶
type ForceViewportCommandFn struct {
// contains filtered or unexported fields
}
func (*ForceViewportCommandFn) Load ¶
func (a *ForceViewportCommandFn) Load() func(ForceViewportCommand)
func (*ForceViewportCommandFn) Store ¶
func (a *ForceViewportCommandFn) Store(fn func(ForceViewportCommand))
type ForceViewportReturn ¶
type ForceViewportReturn struct { }
type ResetPageScaleFactorCommand ¶
type ResetPageScaleFactorCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ResetPageScaleFactorCommand) Initalize ¶
func (c *ResetPageScaleFactorCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ResetPageScaleFactorCommand) Respond ¶
func (c *ResetPageScaleFactorCommand) Respond()
func (*ResetPageScaleFactorCommand) RespondWithError ¶
func (c *ResetPageScaleFactorCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ResetPageScaleFactorCommandFn ¶
type ResetPageScaleFactorCommandFn struct {
// contains filtered or unexported fields
}
func (*ResetPageScaleFactorCommandFn) Load ¶
func (a *ResetPageScaleFactorCommandFn) Load() func(ResetPageScaleFactorCommand)
func (*ResetPageScaleFactorCommandFn) Store ¶
func (a *ResetPageScaleFactorCommandFn) Store(fn func(ResetPageScaleFactorCommand))
type ResetPageScaleFactorReturn ¶
type ResetPageScaleFactorReturn struct { }
type ResetViewportCommand ¶
type ResetViewportCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ResetViewportCommand) Initalize ¶
func (c *ResetViewportCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ResetViewportCommand) Respond ¶
func (c *ResetViewportCommand) Respond()
func (*ResetViewportCommand) RespondWithError ¶
func (c *ResetViewportCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ResetViewportCommandFn ¶
type ResetViewportCommandFn struct {
// contains filtered or unexported fields
}
func (*ResetViewportCommandFn) Load ¶
func (a *ResetViewportCommandFn) Load() func(ResetViewportCommand)
func (*ResetViewportCommandFn) Store ¶
func (a *ResetViewportCommandFn) Store(fn func(ResetViewportCommand))
type ResetViewportReturn ¶
type ResetViewportReturn struct { }
type ScreenOrientation ¶
type ScreenOrientation struct { Type ScreenOrientationTypeEnum `json:"type"` // Orientation type. Angle int64 `json:"angle"` // Orientation angle. }
type ScreenOrientationTypeEnum ¶
type ScreenOrientationTypeEnum string
const ( ScreenOrientationTypePortraitPrimary ScreenOrientationTypeEnum = "portraitPrimary" ScreenOrientationTypePortraitSecondary ScreenOrientationTypeEnum = "portraitSecondary" ScreenOrientationTypeLandscapePrimary ScreenOrientationTypeEnum = "landscapePrimary" ScreenOrientationTypeLandscapeSecondary ScreenOrientationTypeEnum = "landscapeSecondary" )
type SetCPUThrottlingRateCommand ¶
type SetCPUThrottlingRateCommand struct { DestinationTargetID string Rate float64 `json:"rate"` // Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc). // contains filtered or unexported fields }
func (*SetCPUThrottlingRateCommand) Initalize ¶
func (c *SetCPUThrottlingRateCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetCPUThrottlingRateCommand) Respond ¶
func (c *SetCPUThrottlingRateCommand) Respond()
func (*SetCPUThrottlingRateCommand) RespondWithError ¶
func (c *SetCPUThrottlingRateCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetCPUThrottlingRateCommandFn ¶
type SetCPUThrottlingRateCommandFn struct {
// contains filtered or unexported fields
}
func (*SetCPUThrottlingRateCommandFn) Load ¶
func (a *SetCPUThrottlingRateCommandFn) Load() func(SetCPUThrottlingRateCommand)
func (*SetCPUThrottlingRateCommandFn) Store ¶
func (a *SetCPUThrottlingRateCommandFn) Store(fn func(SetCPUThrottlingRateCommand))
type SetCPUThrottlingRateReturn ¶
type SetCPUThrottlingRateReturn struct { }
type SetDefaultBackgroundColorOverrideCommand ¶
type SetDefaultBackgroundColorOverrideCommand struct { DestinationTargetID string Color *dom.RGBA `json:"color,omitempty"` // RGBA of the default background color. If not specified, any existing override will be cleared. // contains filtered or unexported fields }
func (*SetDefaultBackgroundColorOverrideCommand) Initalize ¶
func (c *SetDefaultBackgroundColorOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetDefaultBackgroundColorOverrideCommand) Respond ¶
func (c *SetDefaultBackgroundColorOverrideCommand) Respond()
func (*SetDefaultBackgroundColorOverrideCommand) RespondWithError ¶
func (c *SetDefaultBackgroundColorOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetDefaultBackgroundColorOverrideCommandFn ¶
type SetDefaultBackgroundColorOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*SetDefaultBackgroundColorOverrideCommandFn) Load ¶
func (a *SetDefaultBackgroundColorOverrideCommandFn) Load() func(SetDefaultBackgroundColorOverrideCommand)
func (*SetDefaultBackgroundColorOverrideCommandFn) Store ¶
func (a *SetDefaultBackgroundColorOverrideCommandFn) Store(fn func(SetDefaultBackgroundColorOverrideCommand))
type SetDefaultBackgroundColorOverrideReturn ¶
type SetDefaultBackgroundColorOverrideReturn struct { }
type SetDeviceMetricsOverrideCommand ¶
type SetDeviceMetricsOverrideCommand struct { DestinationTargetID string Width int64 `json:"width"` // Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. Height int64 `json:"height"` // Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. DeviceScaleFactor float64 `json:"deviceScaleFactor"` // Overriding device scale factor value. 0 disables the override. Mobile bool `json:"mobile"` // Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. FitWindow bool `json:"fitWindow"` // Whether a view that exceeds the available browser window area should be scaled down to fit. Scale *float64 `json:"scale,omitempty"` // [Experimental] Scale to apply to resulting view image. Ignored in |fitWindow| mode. OffsetX *float64 `json:"offsetX,omitempty"` // [Experimental] Not used. OffsetY *float64 `json:"offsetY,omitempty"` // [Experimental] Not used. ScreenWidth *int64 `json:"screenWidth,omitempty"` // [Experimental] Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. ScreenHeight *int64 `json:"screenHeight,omitempty"` // [Experimental] Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. PositionX *int64 `json:"positionX,omitempty"` // [Experimental] Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. PositionY *int64 `json:"positionY,omitempty"` // [Experimental] Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. ScreenOrientation *ScreenOrientation `json:"screenOrientation,omitempty"` // Screen orientation override. // contains filtered or unexported fields }
func (*SetDeviceMetricsOverrideCommand) Initalize ¶
func (c *SetDeviceMetricsOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetDeviceMetricsOverrideCommand) Respond ¶
func (c *SetDeviceMetricsOverrideCommand) Respond()
func (*SetDeviceMetricsOverrideCommand) RespondWithError ¶
func (c *SetDeviceMetricsOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetDeviceMetricsOverrideCommandFn ¶
type SetDeviceMetricsOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*SetDeviceMetricsOverrideCommandFn) Load ¶
func (a *SetDeviceMetricsOverrideCommandFn) Load() func(SetDeviceMetricsOverrideCommand)
func (*SetDeviceMetricsOverrideCommandFn) Store ¶
func (a *SetDeviceMetricsOverrideCommandFn) Store(fn func(SetDeviceMetricsOverrideCommand))
type SetDeviceMetricsOverrideReturn ¶
type SetDeviceMetricsOverrideReturn struct { }
type SetEmulatedMediaCommand ¶
type SetEmulatedMediaCommand struct { DestinationTargetID string Media string `json:"media"` // Media type to emulate. Empty string disables the override. // contains filtered or unexported fields }
func (*SetEmulatedMediaCommand) Initalize ¶
func (c *SetEmulatedMediaCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetEmulatedMediaCommand) Respond ¶
func (c *SetEmulatedMediaCommand) Respond()
func (*SetEmulatedMediaCommand) RespondWithError ¶
func (c *SetEmulatedMediaCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetEmulatedMediaCommandFn ¶
type SetEmulatedMediaCommandFn struct {
// contains filtered or unexported fields
}
func (*SetEmulatedMediaCommandFn) Load ¶
func (a *SetEmulatedMediaCommandFn) Load() func(SetEmulatedMediaCommand)
func (*SetEmulatedMediaCommandFn) Store ¶
func (a *SetEmulatedMediaCommandFn) Store(fn func(SetEmulatedMediaCommand))
type SetEmulatedMediaReturn ¶
type SetEmulatedMediaReturn struct { }
type SetGeolocationOverrideCommand ¶
type SetGeolocationOverrideCommand struct { DestinationTargetID string Latitude *float64 `json:"latitude,omitempty"` // Mock latitude Longitude *float64 `json:"longitude,omitempty"` // Mock longitude Accuracy *float64 `json:"accuracy,omitempty"` // Mock accuracy // contains filtered or unexported fields }
func (*SetGeolocationOverrideCommand) Initalize ¶
func (c *SetGeolocationOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetGeolocationOverrideCommand) Respond ¶
func (c *SetGeolocationOverrideCommand) Respond()
func (*SetGeolocationOverrideCommand) RespondWithError ¶
func (c *SetGeolocationOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetGeolocationOverrideCommandFn ¶
type SetGeolocationOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*SetGeolocationOverrideCommandFn) Load ¶
func (a *SetGeolocationOverrideCommandFn) Load() func(SetGeolocationOverrideCommand)
func (*SetGeolocationOverrideCommandFn) Store ¶
func (a *SetGeolocationOverrideCommandFn) Store(fn func(SetGeolocationOverrideCommand))
type SetGeolocationOverrideReturn ¶
type SetGeolocationOverrideReturn struct { }
type SetPageScaleFactorCommand ¶
type SetPageScaleFactorCommand struct { DestinationTargetID string PageScaleFactor float64 `json:"pageScaleFactor"` // Page scale factor. // contains filtered or unexported fields }
func (*SetPageScaleFactorCommand) Initalize ¶
func (c *SetPageScaleFactorCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetPageScaleFactorCommand) Respond ¶
func (c *SetPageScaleFactorCommand) Respond()
func (*SetPageScaleFactorCommand) RespondWithError ¶
func (c *SetPageScaleFactorCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetPageScaleFactorCommandFn ¶
type SetPageScaleFactorCommandFn struct {
// contains filtered or unexported fields
}
func (*SetPageScaleFactorCommandFn) Load ¶
func (a *SetPageScaleFactorCommandFn) Load() func(SetPageScaleFactorCommand)
func (*SetPageScaleFactorCommandFn) Store ¶
func (a *SetPageScaleFactorCommandFn) Store(fn func(SetPageScaleFactorCommand))
type SetPageScaleFactorReturn ¶
type SetPageScaleFactorReturn struct { }
type SetScriptExecutionDisabledCommand ¶
type SetScriptExecutionDisabledCommand struct { DestinationTargetID string Value bool `json:"value"` // Whether script execution should be disabled in the page. // contains filtered or unexported fields }
func (*SetScriptExecutionDisabledCommand) Initalize ¶
func (c *SetScriptExecutionDisabledCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetScriptExecutionDisabledCommand) Respond ¶
func (c *SetScriptExecutionDisabledCommand) Respond()
func (*SetScriptExecutionDisabledCommand) RespondWithError ¶
func (c *SetScriptExecutionDisabledCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetScriptExecutionDisabledCommandFn ¶
type SetScriptExecutionDisabledCommandFn struct {
// contains filtered or unexported fields
}
func (*SetScriptExecutionDisabledCommandFn) Load ¶
func (a *SetScriptExecutionDisabledCommandFn) Load() func(SetScriptExecutionDisabledCommand)
func (*SetScriptExecutionDisabledCommandFn) Store ¶
func (a *SetScriptExecutionDisabledCommandFn) Store(fn func(SetScriptExecutionDisabledCommand))
type SetScriptExecutionDisabledReturn ¶
type SetScriptExecutionDisabledReturn struct { }
type SetTouchEmulationEnabledCommand ¶
type SetTouchEmulationEnabledCommand struct { DestinationTargetID string Enabled bool `json:"enabled"` // Whether the touch event emulation should be enabled. Configuration *SetTouchEmulationEnabledConfigurationEnum `json:"configuration,omitempty"` // Touch/gesture events configuration. Default: current platform. // contains filtered or unexported fields }
func (*SetTouchEmulationEnabledCommand) Initalize ¶
func (c *SetTouchEmulationEnabledCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetTouchEmulationEnabledCommand) Respond ¶
func (c *SetTouchEmulationEnabledCommand) Respond()
func (*SetTouchEmulationEnabledCommand) RespondWithError ¶
func (c *SetTouchEmulationEnabledCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetTouchEmulationEnabledCommandFn ¶
type SetTouchEmulationEnabledCommandFn struct {
// contains filtered or unexported fields
}
func (*SetTouchEmulationEnabledCommandFn) Load ¶
func (a *SetTouchEmulationEnabledCommandFn) Load() func(SetTouchEmulationEnabledCommand)
func (*SetTouchEmulationEnabledCommandFn) Store ¶
func (a *SetTouchEmulationEnabledCommandFn) Store(fn func(SetTouchEmulationEnabledCommand))
type SetTouchEmulationEnabledConfigurationEnum ¶
type SetTouchEmulationEnabledConfigurationEnum string
const ( SetTouchEmulationEnabledConfigurationMobile SetTouchEmulationEnabledConfigurationEnum = "mobile" SetTouchEmulationEnabledConfigurationDesktop SetTouchEmulationEnabledConfigurationEnum = "desktop" )
type SetTouchEmulationEnabledReturn ¶
type SetTouchEmulationEnabledReturn struct { }
type SetVirtualTimePolicyCommand ¶
type SetVirtualTimePolicyCommand struct { DestinationTargetID string Policy VirtualTimePolicy `json:"policy"` Budget *int64 `json:"budget,omitempty"` // If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent. // contains filtered or unexported fields }
func (*SetVirtualTimePolicyCommand) Initalize ¶
func (c *SetVirtualTimePolicyCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetVirtualTimePolicyCommand) Respond ¶
func (c *SetVirtualTimePolicyCommand) Respond()
func (*SetVirtualTimePolicyCommand) RespondWithError ¶
func (c *SetVirtualTimePolicyCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetVirtualTimePolicyCommandFn ¶
type SetVirtualTimePolicyCommandFn struct {
// contains filtered or unexported fields
}
func (*SetVirtualTimePolicyCommandFn) Load ¶
func (a *SetVirtualTimePolicyCommandFn) Load() func(SetVirtualTimePolicyCommand)
func (*SetVirtualTimePolicyCommandFn) Store ¶
func (a *SetVirtualTimePolicyCommandFn) Store(fn func(SetVirtualTimePolicyCommand))
type SetVirtualTimePolicyReturn ¶
type SetVirtualTimePolicyReturn struct { }
type SetVisibleSizeCommand ¶
type SetVisibleSizeCommand struct { DestinationTargetID string Width int64 `json:"width"` // Frame width (DIP). Height int64 `json:"height"` // Frame height (DIP). // contains filtered or unexported fields }
func (*SetVisibleSizeCommand) Initalize ¶
func (c *SetVisibleSizeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetVisibleSizeCommand) Respond ¶
func (c *SetVisibleSizeCommand) Respond()
func (*SetVisibleSizeCommand) RespondWithError ¶
func (c *SetVisibleSizeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetVisibleSizeCommandFn ¶
type SetVisibleSizeCommandFn struct {
// contains filtered or unexported fields
}
func (*SetVisibleSizeCommandFn) Load ¶
func (a *SetVisibleSizeCommandFn) Load() func(SetVisibleSizeCommand)
func (*SetVisibleSizeCommandFn) Store ¶
func (a *SetVisibleSizeCommandFn) Store(fn func(SetVisibleSizeCommand))
type SetVisibleSizeReturn ¶
type SetVisibleSizeReturn struct { }
type VirtualTimeBudgetExpiredEvent ¶
type VirtualTimeBudgetExpiredEvent struct { }
type VirtualTimePolicy ¶
type VirtualTimePolicy string
const ( VirtualTimePolicyAdvance VirtualTimePolicy = "advance" VirtualTimePolicyPause VirtualTimePolicy = "pause" VirtualTimePolicyPauseIfNetworkFetchesPending VirtualTimePolicy = "pauseIfNetworkFetchesPending" )
Click to show internal directories.
Click to hide internal directories.