fixup

package
v0.0.0-...-5828393 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixupDomains

func FixupDomains(domains []*internal.Domain)

FixupDomains changes types in the domains, so that the generated code is more type specific, and easier to use.

currently:

  • add 'Inspector.MethodType' type as a string enumeration of all the event/command names.
  • add 'Inspector.MessageError' type as a object with code (integer), and message (string).
  • add 'Inspector.Message' type as a object with id (integer), method (MethodType), params (interface{}), error (MessageError).
  • add 'Inspector.DetachReason' type and change event 'Inspector.detached”s parameter reason's type.
  • add 'Inspector.ErrorType' type.
  • change 'Runtime.Timestamp' to 'Network.Timestamp'.
  • change any object property or command/event parameter named 'timestamp' or has $ref to Network/Runtime.Timestamp to type 'Network.Timestamp'.
  • convert object properties and event/command parameters that are enums into independent types.
  • change '*.modifiers' parameters to type Input.Modifier.
  • add 'DOM.NodeType' type and convert "nodeType" parameters to it.
  • change Page.Frame.id/parentID to FrameID type.
  • add additional properties to 'Page.Frame' and 'DOM.Node' for use by higher level packages.
  • add special unmarshaler to NodeId, BackendNodeId, FrameId to handle values from older (v1.1) protocol versions. -- NOTE: this might need to be applied to more types, such as network.LoaderId
  • rename 'Input.GestureSourceType' -> 'Input.GestureType'.
  • rename CSS.CSS* types.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL