API Docs for: 0.0.6
Show:

Dalek.DriverNative.Commands.Window Class

Module: Driver

Window related methods

Methods

_closeCb

(
  • hash
)
Object private

Sends out an event with the results of the close call

Parameters:

  • hash String

    Unique hash of that fn call

Returns:

Object:

promise Exists promise

_maximizeCb

(
  • hash
  • result
)
Object private

Sends out an event with the results of the maximize call

Parameters:

  • hash String

    Unique hash of that fn call

  • result String

    Serialized JSON with the reuslts of the toFrame call

Returns:

Object:

promise Exists promise

_windowCb

(
  • name
  • hash
  • result
)
Object private

Sends out an event with the results of the toWindow call

Parameters:

  • name String

    Name of the window to switch to

  • hash String

    Unique hash of that fn call

  • result String

    Serialized JSON with the reuslts of the toFrame call

Returns:

Object:

promise Exists promise

_windowCb

(
  • dimensions
  • hash
  • result
)
Object private

Sends out an event with the results of the resize call and stores the current viewport dimensions to the globale Config

Parameters:

  • dimensions Object

    New window width & height

  • hash String

    Unique hash of that fn call

  • result String

    Serialized JSON with the reuslts of the toFrame call

Returns:

Object:

promise Exists promise

close

(
  • hash
)
chainable

Closes the current window

Parameters:

  • hash String

    Unique hash of that fn call

maximize

(
  • hash
)
chainable

Maximizes the current window

Parameters:

  • hash String

    Unique hash of that fn call

resize

(
  • dimensions
  • hash
)
chainable

Resizes the current window

Parameters:

  • dimensions Object

    New window width & height

  • hash String

    Unique hash of that fn call

toFrame

(
  • name
  • hash
)
chainable

Switches to another window context

Parameters:

  • name String

    Name of the window to switch to

  • hash String

    Unique hash of that fn call