Documentation
¶
Overview ¶
Package deviceorientation provides the Chrome DevTools Protocol commands, types, and events for the DeviceOrientation domain.
Generated by the cdproto-gen command.
Index ¶
Constants ¶
View Source
const ( CommandClearDeviceOrientationOverride = "DeviceOrientation.clearDeviceOrientationOverride" CommandSetDeviceOrientationOverride = "DeviceOrientation.setDeviceOrientationOverride" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearDeviceOrientationOverrideParams ¶
type ClearDeviceOrientationOverrideParams struct{}
ClearDeviceOrientationOverrideParams clears the overridden Device Orientation.
func ClearDeviceOrientationOverride ¶
func ClearDeviceOrientationOverride() *ClearDeviceOrientationOverrideParams
ClearDeviceOrientationOverride clears the overridden Device Orientation.
type SetDeviceOrientationOverrideParams ¶
type SetDeviceOrientationOverrideParams struct {
Alpha float64 `json:"alpha"` // Mock alpha
Beta float64 `json:"beta"` // Mock beta
Gamma float64 `json:"gamma"` // Mock gamma
}
SetDeviceOrientationOverrideParams overrides the Device Orientation.
func SetDeviceOrientationOverride ¶
func SetDeviceOrientationOverride(alpha float64, beta float64, gamma float64) *SetDeviceOrientationOverrideParams
SetDeviceOrientationOverride overrides the Device Orientation.
parameters:
alpha - Mock alpha beta - Mock beta gamma - Mock gamma
Click to show internal directories.
Click to hide internal directories.