vendor/github.com/go-rod/rod/lib/proto/device_orientation.go

44 lines · 1151 bytes

 1// This file is generated by "./lib/proto/generate"
 2
 3package proto
 4
 5/*
 6
 7DeviceOrientation
 8
 9*/
10
11// DeviceOrientationClearDeviceOrientationOverride Clears the overridden Device Orientation.
12type DeviceOrientationClearDeviceOrientationOverride struct{}
13
14// ProtoReq name.
15func (m DeviceOrientationClearDeviceOrientationOverride) ProtoReq() string {
16	return "DeviceOrientation.clearDeviceOrientationOverride"
17}
18
19// Call sends the request.
20func (m DeviceOrientationClearDeviceOrientationOverride) Call(c Client) error {
21	return call(m.ProtoReq(), m, nil, c)
22}
23
24// DeviceOrientationSetDeviceOrientationOverride Overrides the Device Orientation.
25type DeviceOrientationSetDeviceOrientationOverride struct {
26	// Alpha Mock alpha
27	Alpha float64 `json:"alpha"`
28
29	// Beta Mock beta
30	Beta float64 `json:"beta"`
31
32	// Gamma Mock gamma
33	Gamma float64 `json:"gamma"`
34}
35
36// ProtoReq name.
37func (m DeviceOrientationSetDeviceOrientationOverride) ProtoReq() string {
38	return "DeviceOrientation.setDeviceOrientationOverride"
39}
40
41// Call sends the request.
42func (m DeviceOrientationSetDeviceOrientationOverride) Call(c Client) error {
43	return call(m.ProtoReq(), m, nil, c)
44}