| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 module p2p { | 31 module p2p { |
| 32 | 32 |
| 33 interface [ | 33 interface [ |
| 34 Conditional=MEDIA_STREAM, | 34 Conditional=MEDIA_STREAM, |
| 35 ActiveDOMObject, | 35 ActiveDOMObject, |
| 36 Constructor(in DOMString serverConfiguration, in [Callback] IceCallback
iceCallback), | 36 Constructor(in DOMString serverConfiguration, in [Callback] IceCallback
iceCallback), |
| 37 CallWith=ScriptExecutionContext, | 37 CallWith=ScriptExecutionContext, |
| 38 ConstructorRaisesException, |
| 38 EventTarget | 39 EventTarget |
| 39 ] PeerConnection00 { | 40 ] PeerConnection00 { |
| 40 SessionDescription createOffer(in [Optional] Dictionary mediaHints) | 41 SessionDescription createOffer(in [Optional] Dictionary mediaHints) |
| 41 raises(DOMException); | 42 raises(DOMException); |
| 42 SessionDescription createAnswer(in DOMString offer, in [Optional] Dictio
nary mediaHints) | 43 SessionDescription createAnswer(in DOMString offer, in [Optional] Dictio
nary mediaHints) |
| 43 raises(DOMException); | 44 raises(DOMException); |
| 44 | 45 |
| 45 // Actions, for setLocalDescription/setRemoteDescription. | 46 // Actions, for setLocalDescription/setRemoteDescription. |
| 46 const unsigned short SDP_OFFER = 0x100; | 47 const unsigned short SDP_OFFER = 0x100; |
| 47 const unsigned short SDP_PRANSWER = 0x200; | 48 const unsigned short SDP_PRANSWER = 0x200; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 in EventListener listener, | 99 in EventListener listener, |
| 99 in [Optional] boolean useCapture); | 100 in [Optional] boolean useCapture); |
| 100 void removeEventListener(in DOMString type, | 101 void removeEventListener(in DOMString type, |
| 101 in EventListener listener, | 102 in EventListener listener, |
| 102 in [Optional] boolean useCapture); | 103 in [Optional] boolean useCapture); |
| 103 boolean dispatchEvent(in Event event) | 104 boolean dispatchEvent(in Event event) |
| 104 raises(EventException); | 105 raises(EventException); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } | 108 } |
| OLD | NEW |