websockify/tests
Joel Martin 8db09746b7 New API. Refactor Canvas and RFB objects.
New API:

To use the RFB object, you now must instantiate it (this allows more
than one instance of it on the same page).

    rfb = new RFB(settings);

The 'settings' variable is a namespace that contains initial default
settings. These can also be set and read using 'rfb.set_FOO()' and
'rfb.get_FOO()' where FOO is the setting name. The current settings
are (and defaults) are:
    - target: the DOM Canvas element to use ('VNC_canvas').
    - encrypt: whether to encrypt the connection (false)
    - true_color: true_color or palette (true)
    - b64encode: base64 encode the WebSockets data (true)
    - local_cursor: use local cursor rendering (true if supported)
    - connectTimeout: milliseconds to wait for connect (2000)
    - updateState: callback when RFB state changes (none)
    - clipboardReceive: callback when clipboard data received (none)

The parameters to the updateState callback have also changed. The
function spec is now updateState(rfb, state, oldstate, msg):
    - rfb: the RFB object that this state change is for.
    - state: the new state
    - oldstate: the previous state
    - msg: a message associate with the state (not always set).

The clipboardReceive spec is clipboardReceive(rfb, text):
    - rfb: the RFB object that this text is from.
    - text: the clipboard text received.

Changes:

- The RFB and Canvas namespaces are now more proper objects. Private
  implementation is no longer exposed and the public API has been made
  explicit. Also, instantiation allows more than one VNC connection
  on the same page (to complete this, DefaultControls will also need
  this same refactoring).

- Added 'none' logging level.

- Removed automatic stylesheet selection workaround in util.js and
  move it to defaultcontrols so that it doesn't interfere with
  intergration.

- Also, some major JSLinting.

- Fix input, canvas, and cursor tests to work with new model.
2010-08-02 17:07:27 -05:00
..
base64.html Add native base64 test (atob and btoa). 2010-07-13 17:53:01 -05:00
canvas.html New API. Refactor Canvas and RFB objects. 2010-08-02 17:07:27 -05:00
cursor.html New API. Refactor Canvas and RFB objects. 2010-08-02 17:07:27 -05:00
face.png API changes. Client cursor and settings menu. 2010-07-21 20:34:23 -05:00
face.png.js Various cross-browser fixes. 2010-06-23 16:08:36 -05:00
include Add mouse wheel support and input test page. 2010-05-25 11:05:55 -05:00
input.html New API. Refactor Canvas and RFB objects. 2010-08-02 17:07:27 -05:00
ws.html Removed missed mootools include in ws.html test. 2010-07-07 12:40:56 -05:00
ws.py Support WebSockets 76 (hixie-76, hybi-00). 2010-06-24 17:04:57 -05:00
wsencoding.html Remove unneeded mootools and FABridge test. 2010-07-06 12:14:38 -05:00
wsencoding.py Add daemonization support to wsproxy.*. 2010-06-17 16:06:18 -05:00