cdproto: github.com/chromedp/cdproto/deviceorientation Index | Files

package deviceorientation

import "github.com/chromedp/cdproto/deviceorientation"

Package deviceorientation provides the Chrome DevTools Protocol commands, types, and events for the DeviceOrientation domain.

Generated by the cdproto-gen command.

Index

Package Files

deviceorientation.go easyjson.go

Constants

const (
    CommandClearDeviceOrientationOverride = "DeviceOrientation.clearDeviceOrientationOverride"
    CommandSetDeviceOrientationOverride   = "DeviceOrientation.setDeviceOrientationOverride"
)

Command names.

type ClearDeviceOrientationOverrideParams Uses

type ClearDeviceOrientationOverrideParams struct{}

ClearDeviceOrientationOverrideParams clears the overridden Device Orientation.

func ClearDeviceOrientationOverride Uses

func ClearDeviceOrientationOverride() *ClearDeviceOrientationOverrideParams

ClearDeviceOrientationOverride clears the overridden Device Orientation.

See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceOrientation#method-clearDeviceOrientationOverride

func (*ClearDeviceOrientationOverrideParams) Do Uses

func (p *ClearDeviceOrientationOverrideParams) Do(ctx context.Context) (err error)

Do executes DeviceOrientation.clearDeviceOrientationOverride against the provided context.

func (ClearDeviceOrientationOverrideParams) MarshalEasyJSON Uses

func (v ClearDeviceOrientationOverrideParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClearDeviceOrientationOverrideParams) MarshalJSON Uses

func (v ClearDeviceOrientationOverrideParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClearDeviceOrientationOverrideParams) UnmarshalEasyJSON Uses

func (v *ClearDeviceOrientationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClearDeviceOrientationOverrideParams) UnmarshalJSON Uses

func (v *ClearDeviceOrientationOverrideParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetDeviceOrientationOverrideParams Uses

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 Uses

func SetDeviceOrientationOverride(alpha float64, beta float64, gamma float64) *SetDeviceOrientationOverrideParams

SetDeviceOrientationOverride overrides the Device Orientation.

See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceOrientation#method-setDeviceOrientationOverride

parameters:

alpha - Mock alpha
beta - Mock beta
gamma - Mock gamma

func (*SetDeviceOrientationOverrideParams) Do Uses

func (p *SetDeviceOrientationOverrideParams) Do(ctx context.Context) (err error)

Do executes DeviceOrientation.setDeviceOrientationOverride against the provided context.

func (SetDeviceOrientationOverrideParams) MarshalEasyJSON Uses

func (v SetDeviceOrientationOverrideParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDeviceOrientationOverrideParams) MarshalJSON Uses

func (v SetDeviceOrientationOverrideParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetDeviceOrientationOverrideParams) UnmarshalEasyJSON Uses

func (v *SetDeviceOrientationOverrideParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDeviceOrientationOverrideParams) UnmarshalJSON Uses

func (v *SetDeviceOrientationOverrideParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Package deviceorientation imports 6 packages (graph) and is imported by 3 packages. Updated 2021-01-08. Refresh now. Tools for package owners.