Files
sdk/lib/html/doc/interface/PeerConnection00.dartdoc
T
sra@google.com 6f516ae928 Add dummy dart:html library for documentation.
dartdoc will be added in the fake dart:html library in lib/html/doc
and merged into the real dart:html library during dart:html build.

We will be adding a tool to that can be run as part of the dart:html build to
merge in the documentation.  The tool will also be able to run stand-alone to
update the documentation post-build.  This will allow documentation work to
continue independently of building.

Review URL: https://chromiumcodereview.appspot.com//10544064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8415 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-08 02:07:50 +00:00

114 lines
3.2 KiB
Plaintext

// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// WARNING:
// This file contains documentation that is merged into the real source.
// Do not make code changes here.
/// @domName PeerConnection00
interface PeerConnection00 extends EventTarget default _PeerConnection00FactoryProvider {
PeerConnection00(String serverConfiguration, IceCallback iceCallback);
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
*/
PeerConnection00Events get on();
static final int ACTIVE = 2;
static final int CLOSED = 3;
static final int ICE_CHECKING = 0x300;
static final int ICE_CLOSED = 0x700;
static final int ICE_COMPLETED = 0x500;
static final int ICE_CONNECTED = 0x400;
static final int ICE_FAILED = 0x600;
static final int ICE_GATHERING = 0x100;
static final int ICE_WAITING = 0x200;
static final int NEW = 0;
static final int OPENING = 1;
static final int SDP_ANSWER = 0x300;
static final int SDP_OFFER = 0x100;
static final int SDP_PRANSWER = 0x200;
/** @domName PeerConnection00.iceState */
final int iceState;
/** @domName PeerConnection00.localDescription */
final SessionDescription localDescription;
/** @domName PeerConnection00.localStreams */
final MediaStreamList localStreams;
/** @domName PeerConnection00.readyState */
final int readyState;
/** @domName PeerConnection00.remoteDescription */
final SessionDescription remoteDescription;
/** @domName PeerConnection00.remoteStreams */
final MediaStreamList remoteStreams;
/** @domName PeerConnection00.addEventListener */
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName PeerConnection00.addStream */
void addStream(MediaStream stream, [Map mediaStreamHints]);
/** @domName PeerConnection00.close */
void close();
/** @domName PeerConnection00.createAnswer */
SessionDescription createAnswer(String offer, [Map mediaHints]);
/** @domName PeerConnection00.createOffer */
SessionDescription createOffer([Map mediaHints]);
/** @domName PeerConnection00.dispatchEvent */
bool $dom_dispatchEvent(Event event);
/** @domName PeerConnection00.processIceMessage */
void processIceMessage(IceCandidate candidate);
/** @domName PeerConnection00.removeEventListener */
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]);
/** @domName PeerConnection00.removeStream */
void removeStream(MediaStream stream);
/** @domName PeerConnection00.setLocalDescription */
void setLocalDescription(int action, SessionDescription desc);
/** @domName PeerConnection00.setRemoteDescription */
void setRemoteDescription(int action, SessionDescription desc);
/** @domName PeerConnection00.startIce */
void startIce([Map iceOptions]);
}
interface PeerConnection00Events extends Events {
EventListenerList get addStream();
EventListenerList get connecting();
EventListenerList get open();
EventListenerList get removeStream();
EventListenerList get stateChange();
}