noVNC/include
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
..
as3crypto_patched Import as3crypto_patch: ffda6e9cd8b1d74f45472c676afda8360ae1e5aa 2010-04-30 14:13:32 -05:00
web-socket-js Rebuild web-socket-js swf with gimite updates. 2010-07-02 10:50:52 -05:00
base64.js Refactor console logging code. 2010-07-06 11:56:13 -05:00
black.css API changes. Client cursor and settings menu. 2010-07-21 20:34:23 -05:00
canvas.js New API. Refactor Canvas and RFB objects. 2010-08-02 17:07:27 -05:00
default_controls.js New API. Refactor Canvas and RFB objects. 2010-08-02 17:07:27 -05:00
des.js Isolate DOM references in load() and connect(). 2010-05-11 16:39:17 -05:00
plain.css API changes. Client cursor and settings menu. 2010-07-21 20:34:23 -05:00
rfb.js New API. Refactor Canvas and RFB objects. 2010-08-02 17:07:27 -05:00
util.js New API. Refactor Canvas and RFB objects. 2010-08-02 17:07:27 -05:00
vnc.js JSLint. RFB obj to rfb.js; vnc.js the 'loader'. 2010-07-22 10:54:47 -05:00