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

package input

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

Package input provides the Chrome DevTools Protocol commands, types, and events for the Input domain.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go input.go types.go

Constants

const (
    CommandDispatchKeyEvent           = "Input.dispatchKeyEvent"
    CommandInsertText                 = "Input.insertText"
    CommandDispatchMouseEvent         = "Input.dispatchMouseEvent"
    CommandDispatchTouchEvent         = "Input.dispatchTouchEvent"
    CommandEmulateTouchFromMouseEvent = "Input.emulateTouchFromMouseEvent"
    CommandSetIgnoreInputEvents       = "Input.setIgnoreInputEvents"
    CommandSynthesizePinchGesture     = "Input.synthesizePinchGesture"
    CommandSynthesizeScrollGesture    = "Input.synthesizeScrollGesture"
    CommandSynthesizeTapGesture       = "Input.synthesizeTapGesture"
)

Command names.

type DispatchKeyEventParams Uses

type DispatchKeyEventParams struct {
    Type                  KeyType         `json:"type"`                            // Type of the key event.
    Modifiers             Modifier        `json:"modifiers"`                       // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
    Timestamp             *TimeSinceEpoch `json:"timestamp,omitempty"`             // Time at which the event occurred.
    Text                  string          `json:"text,omitempty"`                  // Text as generated by processing a virtual key code with a keyboard layout. Not needed for for keyUp and rawKeyDown events (default: "")
    UnmodifiedText        string          `json:"unmodifiedText,omitempty"`        // Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: "").
    KeyIdentifier         string          `json:"keyIdentifier,omitempty"`         // Unique key identifier (e.g., 'U+0041') (default: "").
    Code                  string          `json:"code,omitempty"`                  // Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
    Key                   string          `json:"key,omitempty"`                   // Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
    WindowsVirtualKeyCode int64           `json:"windowsVirtualKeyCode,omitempty"` // Windows virtual key code (default: 0).
    NativeVirtualKeyCode  int64           `json:"nativeVirtualKeyCode,omitempty"`  // Native virtual key code (default: 0).
    AutoRepeat            bool            `json:"autoRepeat"`                      // Whether the event was generated from auto repeat (default: false).
    IsKeypad              bool            `json:"isKeypad"`                        // Whether the event was generated from the keypad (default: false).
    IsSystemKey           bool            `json:"isSystemKey"`                     // Whether the event was a system key event (default: false).
    Location              int64           `json:"location,omitempty"`              // Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0).
    Commands              []string        `json:"commands,omitempty"`              // Editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in document.execCommand and NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
}

DispatchKeyEventParams dispatches a key event to the page.

func DispatchKeyEvent Uses

func DispatchKeyEvent(typeVal KeyType) *DispatchKeyEventParams

DispatchKeyEvent dispatches a key event to the page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchKeyEvent

parameters:

type - Type of the key event.

func (*DispatchKeyEventParams) Do Uses

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

Do executes Input.dispatchKeyEvent against the provided context.

func (DispatchKeyEventParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DispatchKeyEventParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*DispatchKeyEventParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DispatchKeyEventParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (DispatchKeyEventParams) WithAutoRepeat Uses

func (p DispatchKeyEventParams) WithAutoRepeat(autoRepeat bool) *DispatchKeyEventParams

WithAutoRepeat whether the event was generated from auto repeat (default: false).

func (DispatchKeyEventParams) WithCode Uses

func (p DispatchKeyEventParams) WithCode(code string) *DispatchKeyEventParams

WithCode unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").

func (DispatchKeyEventParams) WithCommands Uses

func (p DispatchKeyEventParams) WithCommands(commands []string) *DispatchKeyEventParams

WithCommands editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in document.execCommand and NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.

func (DispatchKeyEventParams) WithIsKeypad Uses

func (p DispatchKeyEventParams) WithIsKeypad(isKeypad bool) *DispatchKeyEventParams

WithIsKeypad whether the event was generated from the keypad (default: false).

func (DispatchKeyEventParams) WithIsSystemKey Uses

func (p DispatchKeyEventParams) WithIsSystemKey(isSystemKey bool) *DispatchKeyEventParams

WithIsSystemKey whether the event was a system key event (default: false).

func (DispatchKeyEventParams) WithKey Uses

func (p DispatchKeyEventParams) WithKey(key string) *DispatchKeyEventParams

WithKey unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").

func (DispatchKeyEventParams) WithKeyIdentifier Uses

func (p DispatchKeyEventParams) WithKeyIdentifier(keyIdentifier string) *DispatchKeyEventParams

WithKeyIdentifier unique key identifier (e.g., 'U+0041') (default: "").

func (DispatchKeyEventParams) WithLocation Uses

func (p DispatchKeyEventParams) WithLocation(location int64) *DispatchKeyEventParams

WithLocation whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0).

func (DispatchKeyEventParams) WithModifiers Uses

func (p DispatchKeyEventParams) WithModifiers(modifiers Modifier) *DispatchKeyEventParams

WithModifiers bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

func (DispatchKeyEventParams) WithNativeVirtualKeyCode Uses

func (p DispatchKeyEventParams) WithNativeVirtualKeyCode(nativeVirtualKeyCode int64) *DispatchKeyEventParams

WithNativeVirtualKeyCode native virtual key code (default: 0).

func (DispatchKeyEventParams) WithText Uses

func (p DispatchKeyEventParams) WithText(text string) *DispatchKeyEventParams

WithText text as generated by processing a virtual key code with a keyboard layout. Not needed for for keyUp and rawKeyDown events (default: "").

func (DispatchKeyEventParams) WithTimestamp Uses

func (p DispatchKeyEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *DispatchKeyEventParams

WithTimestamp time at which the event occurred.

func (DispatchKeyEventParams) WithUnmodifiedText Uses

func (p DispatchKeyEventParams) WithUnmodifiedText(unmodifiedText string) *DispatchKeyEventParams

WithUnmodifiedText text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: "").

func (DispatchKeyEventParams) WithWindowsVirtualKeyCode Uses

func (p DispatchKeyEventParams) WithWindowsVirtualKeyCode(windowsVirtualKeyCode int64) *DispatchKeyEventParams

WithWindowsVirtualKeyCode windows virtual key code (default: 0).

type DispatchMouseEventParams Uses

type DispatchMouseEventParams struct {
    Type               MouseType                     `json:"type"`                         // Type of the mouse event.
    X                  float64                       `json:"x"`                            // X coordinate of the event relative to the main frame's viewport in CSS pixels.
    Y                  float64                       `json:"y"`                            // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
    Modifiers          Modifier                      `json:"modifiers"`                    // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
    Timestamp          *TimeSinceEpoch               `json:"timestamp,omitempty"`          // Time at which the event occurred.
    Button             MouseButton                   `json:"button,omitempty"`             // Mouse button (default: "none").
    Buttons            int64                         `json:"buttons,omitempty"`            // A number indicating which buttons are pressed on the mouse when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
    ClickCount         int64                         `json:"clickCount,omitempty"`         // Number of times the mouse button was clicked (default: 0).
    Force              float64                       `json:"force,omitempty"`              // The normalized pressure, which has a range of [0,1] (default: 0).
    TangentialPressure float64                       `json:"tangentialPressure,omitempty"` // The normalized tangential pressure, which has a range of [-1,1] (default: 0).
    TiltX              int64                         `json:"tiltX,omitempty"`              // The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0).
    TiltY              int64                         `json:"tiltY,omitempty"`              // The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
    Twist              int64                         `json:"twist,omitempty"`              // The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
    DeltaX             float64                       `json:"deltaX,omitempty"`             // X delta in CSS pixels for mouse wheel event (default: 0).
    DeltaY             float64                       `json:"deltaY,omitempty"`             // Y delta in CSS pixels for mouse wheel event (default: 0).
    PointerType        DispatchMouseEventPointerType `json:"pointerType,omitempty"`        // Pointer type (default: "mouse").
}

DispatchMouseEventParams dispatches a mouse event to the page.

func DispatchMouseEvent Uses

func DispatchMouseEvent(typeVal MouseType, x float64, y float64) *DispatchMouseEventParams

DispatchMouseEvent dispatches a mouse event to the page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchMouseEvent

parameters:

type - Type of the mouse event.
x - X coordinate of the event relative to the main frame's viewport in CSS pixels.
y - Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.

func (*DispatchMouseEventParams) Do Uses

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

Do executes Input.dispatchMouseEvent against the provided context.

func (DispatchMouseEventParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DispatchMouseEventParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*DispatchMouseEventParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DispatchMouseEventParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (DispatchMouseEventParams) WithButton Uses

func (p DispatchMouseEventParams) WithButton(button MouseButton) *DispatchMouseEventParams

WithButton mouse button (default: "none").

func (DispatchMouseEventParams) WithButtons Uses

func (p DispatchMouseEventParams) WithButtons(buttons int64) *DispatchMouseEventParams

WithButtons a number indicating which buttons are pressed on the mouse when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.

func (DispatchMouseEventParams) WithClickCount Uses

func (p DispatchMouseEventParams) WithClickCount(clickCount int64) *DispatchMouseEventParams

WithClickCount number of times the mouse button was clicked (default: 0).

func (DispatchMouseEventParams) WithDeltaX Uses

func (p DispatchMouseEventParams) WithDeltaX(deltaX float64) *DispatchMouseEventParams

WithDeltaX X delta in CSS pixels for mouse wheel event (default: 0).

func (DispatchMouseEventParams) WithDeltaY Uses

func (p DispatchMouseEventParams) WithDeltaY(deltaY float64) *DispatchMouseEventParams

WithDeltaY Y delta in CSS pixels for mouse wheel event (default: 0).

func (DispatchMouseEventParams) WithForce Uses

func (p DispatchMouseEventParams) WithForce(force float64) *DispatchMouseEventParams

WithForce the normalized pressure, which has a range of [0,1] (default: 0).

func (DispatchMouseEventParams) WithModifiers Uses

func (p DispatchMouseEventParams) WithModifiers(modifiers Modifier) *DispatchMouseEventParams

WithModifiers bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

func (DispatchMouseEventParams) WithPointerType Uses

func (p DispatchMouseEventParams) WithPointerType(pointerType DispatchMouseEventPointerType) *DispatchMouseEventParams

WithPointerType pointer type (default: "mouse").

func (DispatchMouseEventParams) WithTangentialPressure Uses

func (p DispatchMouseEventParams) WithTangentialPressure(tangentialPressure float64) *DispatchMouseEventParams

WithTangentialPressure the normalized tangential pressure, which has a range of [-1,1] (default: 0).

func (DispatchMouseEventParams) WithTiltX Uses

func (p DispatchMouseEventParams) WithTiltX(tiltX int64) *DispatchMouseEventParams

WithTiltX the plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0).

func (DispatchMouseEventParams) WithTiltY Uses

func (p DispatchMouseEventParams) WithTiltY(tiltY int64) *DispatchMouseEventParams

WithTiltY the plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).

func (DispatchMouseEventParams) WithTimestamp Uses

func (p DispatchMouseEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *DispatchMouseEventParams

WithTimestamp time at which the event occurred.

func (DispatchMouseEventParams) WithTwist Uses

func (p DispatchMouseEventParams) WithTwist(twist int64) *DispatchMouseEventParams

WithTwist the clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).

type DispatchMouseEventPointerType Uses

type DispatchMouseEventPointerType string

DispatchMouseEventPointerType pointer type (default: "mouse").

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchMouseEvent

const (
    Mouse DispatchMouseEventPointerType = "mouse"
    Pen   DispatchMouseEventPointerType = "pen"
)

DispatchMouseEventPointerType values.

func (DispatchMouseEventPointerType) MarshalEasyJSON Uses

func (t DispatchMouseEventPointerType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DispatchMouseEventPointerType) MarshalJSON Uses

func (t DispatchMouseEventPointerType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (DispatchMouseEventPointerType) String Uses

func (t DispatchMouseEventPointerType) String() string

String returns the DispatchMouseEventPointerType as string value.

func (*DispatchMouseEventPointerType) UnmarshalEasyJSON Uses

func (t *DispatchMouseEventPointerType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DispatchMouseEventPointerType) UnmarshalJSON Uses

func (t *DispatchMouseEventPointerType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type DispatchTouchEventParams Uses

type DispatchTouchEventParams struct {
    Type        TouchType       `json:"type"`                // Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one.
    TouchPoints []*TouchPoint   `json:"touchPoints"`         // Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one.
    Modifiers   Modifier        `json:"modifiers"`           // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
    Timestamp   *TimeSinceEpoch `json:"timestamp,omitempty"` // Time at which the event occurred.
}

DispatchTouchEventParams dispatches a touch event to the page.

func DispatchTouchEvent Uses

func DispatchTouchEvent(typeVal TouchType, touchPoints []*TouchPoint) *DispatchTouchEventParams

DispatchTouchEvent dispatches a touch event to the page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchTouchEvent

parameters:

type - Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one.
touchPoints - Active touch points on the touch device. One event per any changed point (compared to previous touch event in a sequence) is generated, emulating pressing/moving/releasing points one by one.

func (*DispatchTouchEventParams) Do Uses

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

Do executes Input.dispatchTouchEvent against the provided context.

func (DispatchTouchEventParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DispatchTouchEventParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*DispatchTouchEventParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DispatchTouchEventParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (DispatchTouchEventParams) WithModifiers Uses

func (p DispatchTouchEventParams) WithModifiers(modifiers Modifier) *DispatchTouchEventParams

WithModifiers bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

func (DispatchTouchEventParams) WithTimestamp Uses

func (p DispatchTouchEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *DispatchTouchEventParams

WithTimestamp time at which the event occurred.

type EmulateTouchFromMouseEventParams Uses

type EmulateTouchFromMouseEventParams struct {
    Type       MouseType       `json:"type"`                 // Type of the mouse event.
    X          int64           `json:"x"`                    // X coordinate of the mouse pointer in DIP.
    Y          int64           `json:"y"`                    // Y coordinate of the mouse pointer in DIP.
    Button     MouseButton     `json:"button"`               // Mouse button. Only "none", "left", "right" are supported.
    Timestamp  *TimeSinceEpoch `json:"timestamp,omitempty"`  // Time at which the event occurred (default: current time).
    DeltaX     float64         `json:"deltaX,omitempty"`     // X delta in DIP for mouse wheel event (default: 0).
    DeltaY     float64         `json:"deltaY,omitempty"`     // Y delta in DIP for mouse wheel event (default: 0).
    Modifiers  Modifier        `json:"modifiers"`            // Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
    ClickCount int64           `json:"clickCount,omitempty"` // Number of times the mouse button was clicked (default: 0).
}

EmulateTouchFromMouseEventParams emulates touch event from the mouse event parameters.

func EmulateTouchFromMouseEvent Uses

func EmulateTouchFromMouseEvent(typeVal MouseType, x int64, y int64, button MouseButton) *EmulateTouchFromMouseEventParams

EmulateTouchFromMouseEvent emulates touch event from the mouse event parameters.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-emulateTouchFromMouseEvent

parameters:

type - Type of the mouse event.
x - X coordinate of the mouse pointer in DIP.
y - Y coordinate of the mouse pointer in DIP.
button - Mouse button. Only "none", "left", "right" are supported.

func (*EmulateTouchFromMouseEventParams) Do Uses

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

Do executes Input.emulateTouchFromMouseEvent against the provided context.

func (EmulateTouchFromMouseEventParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EmulateTouchFromMouseEventParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EmulateTouchFromMouseEventParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EmulateTouchFromMouseEventParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (EmulateTouchFromMouseEventParams) WithClickCount Uses

func (p EmulateTouchFromMouseEventParams) WithClickCount(clickCount int64) *EmulateTouchFromMouseEventParams

WithClickCount number of times the mouse button was clicked (default: 0).

func (EmulateTouchFromMouseEventParams) WithDeltaX Uses

func (p EmulateTouchFromMouseEventParams) WithDeltaX(deltaX float64) *EmulateTouchFromMouseEventParams

WithDeltaX X delta in DIP for mouse wheel event (default: 0).

func (EmulateTouchFromMouseEventParams) WithDeltaY Uses

func (p EmulateTouchFromMouseEventParams) WithDeltaY(deltaY float64) *EmulateTouchFromMouseEventParams

WithDeltaY Y delta in DIP for mouse wheel event (default: 0).

func (EmulateTouchFromMouseEventParams) WithModifiers Uses

func (p EmulateTouchFromMouseEventParams) WithModifiers(modifiers Modifier) *EmulateTouchFromMouseEventParams

WithModifiers bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).

func (EmulateTouchFromMouseEventParams) WithTimestamp Uses

func (p EmulateTouchFromMouseEventParams) WithTimestamp(timestamp *TimeSinceEpoch) *EmulateTouchFromMouseEventParams

WithTimestamp time at which the event occurred (default: current time).

type GestureSourceType Uses

type GestureSourceType string

GestureSourceType [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-GestureSourceType

const (
    GestureDefault GestureSourceType = "default"
    GestureTouch   GestureSourceType = "touch"
    GestureMouse   GestureSourceType = "mouse"
)

GestureSourceType values.

func (GestureSourceType) MarshalEasyJSON Uses

func (t GestureSourceType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (GestureSourceType) MarshalJSON Uses

func (t GestureSourceType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (GestureSourceType) String Uses

func (t GestureSourceType) String() string

String returns the GestureSourceType as string value.

func (*GestureSourceType) UnmarshalEasyJSON Uses

func (t *GestureSourceType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*GestureSourceType) UnmarshalJSON Uses

func (t *GestureSourceType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type InsertTextParams Uses

type InsertTextParams struct {
    Text string `json:"text"` // The text to insert.
}

InsertTextParams this method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME.

func InsertText Uses

func InsertText(text string) *InsertTextParams

InsertText this method emulates inserting text that doesn't come from a key press, for example an emoji keyboard or an IME.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-insertText

parameters:

text - The text to insert.

func (*InsertTextParams) Do Uses

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

Do executes Input.insertText against the provided context.

func (InsertTextParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (InsertTextParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*InsertTextParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*InsertTextParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type KeyType Uses

type KeyType string

KeyType type of the key event.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchKeyEvent

const (
    KeyDown    KeyType = "keyDown"
    KeyUp      KeyType = "keyUp"
    KeyRawDown KeyType = "rawKeyDown"
    KeyChar    KeyType = "char"
)

KeyType values.

func (KeyType) MarshalEasyJSON Uses

func (t KeyType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (KeyType) MarshalJSON Uses

func (t KeyType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (KeyType) String Uses

func (t KeyType) String() string

String returns the KeyType as string value.

func (*KeyType) UnmarshalEasyJSON Uses

func (t *KeyType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*KeyType) UnmarshalJSON Uses

func (t *KeyType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type Modifier Uses

type Modifier int64

Modifier input key modifier type.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchKeyEvent

const (
    ModifierNone  Modifier = 0
    ModifierAlt   Modifier = 1
    ModifierCtrl  Modifier = 2
    ModifierMeta  Modifier = 4
    ModifierShift Modifier = 8
)

Modifier values.

const ModifierCommand Modifier = ModifierMeta

ModifierCommand is an alias for ModifierMeta.

func (Modifier) Int64 Uses

func (t Modifier) Int64() int64

Int64 returns the Modifier as int64 value.

func (Modifier) MarshalEasyJSON Uses

func (t Modifier) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (Modifier) MarshalJSON Uses

func (t Modifier) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (Modifier) String Uses

func (t Modifier) String() string

String returns the Modifier as string value.

func (*Modifier) UnmarshalEasyJSON Uses

func (t *Modifier) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*Modifier) UnmarshalJSON Uses

func (t *Modifier) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type MouseButton Uses

type MouseButton string

MouseButton [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-MouseButton

const (
    None    MouseButton = "none"
    Left    MouseButton = "left"
    Middle  MouseButton = "middle"
    Right   MouseButton = "right"
    Back    MouseButton = "back"
    Forward MouseButton = "forward"
)

MouseButton values.

func (MouseButton) MarshalEasyJSON Uses

func (t MouseButton) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (MouseButton) MarshalJSON Uses

func (t MouseButton) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (MouseButton) String Uses

func (t MouseButton) String() string

String returns the MouseButton as string value.

func (*MouseButton) UnmarshalEasyJSON Uses

func (t *MouseButton) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*MouseButton) UnmarshalJSON Uses

func (t *MouseButton) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type MouseType Uses

type MouseType string

MouseType type of the mouse event.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchMouseEvent

const (
    MousePressed  MouseType = "mousePressed"
    MouseReleased MouseType = "mouseReleased"
    MouseMoved    MouseType = "mouseMoved"
    MouseWheel    MouseType = "mouseWheel"
)

MouseType values.

func (MouseType) MarshalEasyJSON Uses

func (t MouseType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (MouseType) MarshalJSON Uses

func (t MouseType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (MouseType) String Uses

func (t MouseType) String() string

String returns the MouseType as string value.

func (*MouseType) UnmarshalEasyJSON Uses

func (t *MouseType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*MouseType) UnmarshalJSON Uses

func (t *MouseType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type SetIgnoreInputEventsParams Uses

type SetIgnoreInputEventsParams struct {
    Ignore bool `json:"ignore"` // Ignores input events processing when set to true.
}

SetIgnoreInputEventsParams ignores input events (useful while auditing page).

func SetIgnoreInputEvents Uses

func SetIgnoreInputEvents(ignore bool) *SetIgnoreInputEventsParams

SetIgnoreInputEvents ignores input events (useful while auditing page).

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-setIgnoreInputEvents

parameters:

ignore - Ignores input events processing when set to true.

func (*SetIgnoreInputEventsParams) Do Uses

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

Do executes Input.setIgnoreInputEvents against the provided context.

func (SetIgnoreInputEventsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetIgnoreInputEventsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetIgnoreInputEventsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetIgnoreInputEventsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SynthesizePinchGestureParams Uses

type SynthesizePinchGestureParams struct {
    X                 float64           `json:"x"`                           // X coordinate of the start of the gesture in CSS pixels.
    Y                 float64           `json:"y"`                           // Y coordinate of the start of the gesture in CSS pixels.
    ScaleFactor       float64           `json:"scaleFactor"`                 // Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).
    RelativeSpeed     int64             `json:"relativeSpeed,omitempty"`     // Relative pointer speed in pixels per second (default: 800).
    GestureSourceType GestureSourceType `json:"gestureSourceType,omitempty"` // Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).
}

SynthesizePinchGestureParams synthesizes a pinch gesture over a time period by issuing appropriate touch events.

func SynthesizePinchGesture Uses

func SynthesizePinchGesture(x float64, y float64, scaleFactor float64) *SynthesizePinchGestureParams

SynthesizePinchGesture synthesizes a pinch gesture over a time period by issuing appropriate touch events.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-synthesizePinchGesture

parameters:

x - X coordinate of the start of the gesture in CSS pixels.
y - Y coordinate of the start of the gesture in CSS pixels.
scaleFactor - Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).

func (*SynthesizePinchGestureParams) Do Uses

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

Do executes Input.synthesizePinchGesture against the provided context.

func (SynthesizePinchGestureParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SynthesizePinchGestureParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SynthesizePinchGestureParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SynthesizePinchGestureParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SynthesizePinchGestureParams) WithGestureSourceType Uses

func (p SynthesizePinchGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizePinchGestureParams

WithGestureSourceType which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).

func (SynthesizePinchGestureParams) WithRelativeSpeed Uses

func (p SynthesizePinchGestureParams) WithRelativeSpeed(relativeSpeed int64) *SynthesizePinchGestureParams

WithRelativeSpeed relative pointer speed in pixels per second (default: 800).

type SynthesizeScrollGestureParams Uses

type SynthesizeScrollGestureParams struct {
    X                     float64           `json:"x"`                               // X coordinate of the start of the gesture in CSS pixels.
    Y                     float64           `json:"y"`                               // Y coordinate of the start of the gesture in CSS pixels.
    XDistance             float64           `json:"xDistance,omitempty"`             // The distance to scroll along the X axis (positive to scroll left).
    YDistance             float64           `json:"yDistance,omitempty"`             // The distance to scroll along the Y axis (positive to scroll up).
    XOverscroll           float64           `json:"xOverscroll,omitempty"`           // The number of additional pixels to scroll back along the X axis, in addition to the given distance.
    YOverscroll           float64           `json:"yOverscroll,omitempty"`           // The number of additional pixels to scroll back along the Y axis, in addition to the given distance.
    PreventFling          bool              `json:"preventFling,omitempty"`          // Prevent fling (default: true).
    Speed                 int64             `json:"speed,omitempty"`                 // Swipe speed in pixels per second (default: 800).
    GestureSourceType     GestureSourceType `json:"gestureSourceType,omitempty"`     // Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).
    RepeatCount           int64             `json:"repeatCount,omitempty"`           // The number of times to repeat the gesture (default: 0).
    RepeatDelayMs         int64             `json:"repeatDelayMs,omitempty"`         // The number of milliseconds delay between each repeat. (default: 250).
    InteractionMarkerName string            `json:"interactionMarkerName,omitempty"` // The name of the interaction markers to generate, if not empty (default: "").
}

SynthesizeScrollGestureParams synthesizes a scroll gesture over a time period by issuing appropriate touch events.

func SynthesizeScrollGesture Uses

func SynthesizeScrollGesture(x float64, y float64) *SynthesizeScrollGestureParams

SynthesizeScrollGesture synthesizes a scroll gesture over a time period by issuing appropriate touch events.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-synthesizeScrollGesture

parameters:

x - X coordinate of the start of the gesture in CSS pixels.
y - Y coordinate of the start of the gesture in CSS pixels.

func (*SynthesizeScrollGestureParams) Do Uses

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

Do executes Input.synthesizeScrollGesture against the provided context.

func (SynthesizeScrollGestureParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SynthesizeScrollGestureParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SynthesizeScrollGestureParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SynthesizeScrollGestureParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SynthesizeScrollGestureParams) WithGestureSourceType Uses

func (p SynthesizeScrollGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeScrollGestureParams

WithGestureSourceType which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).

func (SynthesizeScrollGestureParams) WithInteractionMarkerName Uses

func (p SynthesizeScrollGestureParams) WithInteractionMarkerName(interactionMarkerName string) *SynthesizeScrollGestureParams

WithInteractionMarkerName the name of the interaction markers to generate, if not empty (default: "").

func (SynthesizeScrollGestureParams) WithPreventFling Uses

func (p SynthesizeScrollGestureParams) WithPreventFling(preventFling bool) *SynthesizeScrollGestureParams

WithPreventFling prevent fling (default: true).

func (SynthesizeScrollGestureParams) WithRepeatCount Uses

func (p SynthesizeScrollGestureParams) WithRepeatCount(repeatCount int64) *SynthesizeScrollGestureParams

WithRepeatCount the number of times to repeat the gesture (default: 0).

func (SynthesizeScrollGestureParams) WithRepeatDelayMs Uses

func (p SynthesizeScrollGestureParams) WithRepeatDelayMs(repeatDelayMs int64) *SynthesizeScrollGestureParams

WithRepeatDelayMs the number of milliseconds delay between each repeat. (default: 250).

func (SynthesizeScrollGestureParams) WithSpeed Uses

func (p SynthesizeScrollGestureParams) WithSpeed(speed int64) *SynthesizeScrollGestureParams

WithSpeed swipe speed in pixels per second (default: 800).

func (SynthesizeScrollGestureParams) WithXDistance Uses

func (p SynthesizeScrollGestureParams) WithXDistance(xDistance float64) *SynthesizeScrollGestureParams

WithXDistance the distance to scroll along the X axis (positive to scroll left).

func (SynthesizeScrollGestureParams) WithXOverscroll Uses

func (p SynthesizeScrollGestureParams) WithXOverscroll(xOverscroll float64) *SynthesizeScrollGestureParams

WithXOverscroll the number of additional pixels to scroll back along the X axis, in addition to the given distance.

func (SynthesizeScrollGestureParams) WithYDistance Uses

func (p SynthesizeScrollGestureParams) WithYDistance(yDistance float64) *SynthesizeScrollGestureParams

WithYDistance the distance to scroll along the Y axis (positive to scroll up).

func (SynthesizeScrollGestureParams) WithYOverscroll Uses

func (p SynthesizeScrollGestureParams) WithYOverscroll(yOverscroll float64) *SynthesizeScrollGestureParams

WithYOverscroll the number of additional pixels to scroll back along the Y axis, in addition to the given distance.

type SynthesizeTapGestureParams Uses

type SynthesizeTapGestureParams struct {
    X                 float64           `json:"x"`                           // X coordinate of the start of the gesture in CSS pixels.
    Y                 float64           `json:"y"`                           // Y coordinate of the start of the gesture in CSS pixels.
    Duration          int64             `json:"duration,omitempty"`          // Duration between touchdown and touchup events in ms (default: 50).
    TapCount          int64             `json:"tapCount,omitempty"`          // Number of times to perform the tap (e.g. 2 for double tap, default: 1).
    GestureSourceType GestureSourceType `json:"gestureSourceType,omitempty"` // Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).
}

SynthesizeTapGestureParams synthesizes a tap gesture over a time period by issuing appropriate touch events.

func SynthesizeTapGesture Uses

func SynthesizeTapGesture(x float64, y float64) *SynthesizeTapGestureParams

SynthesizeTapGesture synthesizes a tap gesture over a time period by issuing appropriate touch events.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-synthesizeTapGesture

parameters:

x - X coordinate of the start of the gesture in CSS pixels.
y - Y coordinate of the start of the gesture in CSS pixels.

func (*SynthesizeTapGestureParams) Do Uses

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

Do executes Input.synthesizeTapGesture against the provided context.

func (SynthesizeTapGestureParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SynthesizeTapGestureParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SynthesizeTapGestureParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SynthesizeTapGestureParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SynthesizeTapGestureParams) WithDuration Uses

func (p SynthesizeTapGestureParams) WithDuration(duration int64) *SynthesizeTapGestureParams

WithDuration duration between touchdown and touchup events in ms (default: 50).

func (SynthesizeTapGestureParams) WithGestureSourceType Uses

func (p SynthesizeTapGestureParams) WithGestureSourceType(gestureSourceType GestureSourceType) *SynthesizeTapGestureParams

WithGestureSourceType which type of input events to be generated (default: 'default', which queries the platform for the preferred input type).

func (SynthesizeTapGestureParams) WithTapCount Uses

func (p SynthesizeTapGestureParams) WithTapCount(tapCount int64) *SynthesizeTapGestureParams

WithTapCount number of times to perform the tap (e.g. 2 for double tap, default: 1).

type TimeSinceEpoch Uses

type TimeSinceEpoch time.Time

TimeSinceEpoch UTC time in seconds, counted from January 1, 1970.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-TimeSinceEpoch

func (TimeSinceEpoch) MarshalEasyJSON Uses

func (t TimeSinceEpoch) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (TimeSinceEpoch) MarshalJSON Uses

func (t TimeSinceEpoch) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (TimeSinceEpoch) Time Uses

func (t TimeSinceEpoch) Time() time.Time

Time returns the TimeSinceEpoch as time.Time value.

func (*TimeSinceEpoch) UnmarshalEasyJSON Uses

func (t *TimeSinceEpoch) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*TimeSinceEpoch) UnmarshalJSON Uses

func (t *TimeSinceEpoch) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type TouchPoint Uses

type TouchPoint struct {
    X                  float64 `json:"x"`                            // X coordinate of the event relative to the main frame's viewport in CSS pixels.
    Y                  float64 `json:"y"`                            // Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
    RadiusX            float64 `json:"radiusX,omitempty"`            // X radius of the touch area (default: 1.0).
    RadiusY            float64 `json:"radiusY,omitempty"`            // Y radius of the touch area (default: 1.0).
    RotationAngle      float64 `json:"rotationAngle,omitempty"`      // Rotation angle (default: 0.0).
    Force              float64 `json:"force,omitempty"`              // Force (default: 1.0).
    TangentialPressure float64 `json:"tangentialPressure,omitempty"` // The normalized tangential pressure, which has a range of [-1,1] (default: 0).
    TiltX              int64   `json:"tiltX,omitempty"`              // The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)
    TiltY              int64   `json:"tiltY,omitempty"`              // The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
    Twist              int64   `json:"twist,omitempty"`              // The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
    ID                 float64 `json:"id,omitempty"`                 // Identifier used to track touch sources between events, must be unique within an event.
}

TouchPoint [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#type-TouchPoint

func (TouchPoint) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (TouchPoint) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*TouchPoint) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TouchPoint) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type TouchType Uses

type TouchType string

TouchType type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while TouchStart and TouchMove must contains at least one.

See: https://chromedevtools.github.io/devtools-protocol/tot/Input#method-dispatchTouchEvent

const (
    TouchStart  TouchType = "touchStart"
    TouchEnd    TouchType = "touchEnd"
    TouchMove   TouchType = "touchMove"
    TouchCancel TouchType = "touchCancel"
)

TouchType values.

func (TouchType) MarshalEasyJSON Uses

func (t TouchType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (TouchType) MarshalJSON Uses

func (t TouchType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (TouchType) String Uses

func (t TouchType) String() string

String returns the TouchType as string value.

func (*TouchType) UnmarshalEasyJSON Uses

func (t *TouchType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*TouchType) UnmarshalJSON Uses

func (t *TouchType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

Package input imports 10 packages (graph) and is imported by 29 packages. Updated 2021-01-08. Refresh now. Tools for package owners.