Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: third_party/WebCore/Modules/mediastream/PeerConnection00.idl

Issue 10381128: Roll IDL to multivm@516 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 19 matching lines...) Expand all
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 EventTarget 38 EventTarget
39 ] PeerConnection00 { 39 ] PeerConnection00 {
40 // FIXME: Make mediaHints an object 40 SessionDescription createOffer(in [Optional] Dictionary mediaHints)
41 SessionDescription createOffer(in [Optional] DOMString mediaHints); 41 raises(DOMException);
42 42 SessionDescription createAnswer(in DOMString offer, in [Optional] Dictio nary mediaHints)
43 // FIXME: Make mediaHints an object 43 raises(DOMException);
44 SessionDescription createAnswer(in DOMString offer, in [Optional] DOMStr ing mediaHints);
45 44
46 // Actions, for setLocalDescription/setRemoteDescription. 45 // Actions, for setLocalDescription/setRemoteDescription.
47 const unsigned short SDP_OFFER = 0x100; 46 const unsigned short SDP_OFFER = 0x100;
48 const unsigned short SDP_PRANSWER = 0x200; 47 const unsigned short SDP_PRANSWER = 0x200;
49 const unsigned short SDP_ANSWER = 0x300; 48 const unsigned short SDP_ANSWER = 0x300;
50 49
51 void setLocalDescription(in unsigned short action, in SessionDescription desc) 50 void setLocalDescription(in unsigned short action, in SessionDescription desc)
52 raises(DOMException); 51 raises(DOMException);
53
54 void setRemoteDescription(in unsigned short action, in SessionDescriptio n desc) 52 void setRemoteDescription(in unsigned short action, in SessionDescriptio n desc)
55 raises(DOMException); 53 raises(DOMException);
56 54
57 readonly attribute SessionDescription localDescription; 55 readonly attribute SessionDescription localDescription;
58
59 readonly attribute SessionDescription remoteDescription; 56 readonly attribute SessionDescription remoteDescription;
60 57
61 const unsigned short NEW = 0; 58 const unsigned short NEW = 0;
62 const unsigned short NEGOTIATING = 1; 59 const unsigned short OPENING = 1;
63 const unsigned short ACTIVE = 2; 60 const unsigned short ACTIVE = 2;
64 const unsigned short CLOSED = 3; 61 const unsigned short CLOSED = 3;
65 readonly attribute unsigned short readyState; 62 readonly attribute unsigned short readyState;
66 63
67 // FIXME: Make iceOptions an object 64 void startIce(in [Optional] Dictionary iceOptions)
68 void startIce(in [Optional] DOMString iceOptions)
69 raises(DOMException); 65 raises(DOMException);
70 66
71 void processIceMessage(in IceCandidate candidate) 67 void processIceMessage(in IceCandidate candidate)
72 raises(DOMException); 68 raises(DOMException);
73 69
74 const unsigned short ICE_GATHERING = 0x100; 70 const unsigned short ICE_GATHERING = 0x100;
75 const unsigned short ICE_WAITING = 0x200; 71 const unsigned short ICE_WAITING = 0x200;
76 const unsigned short ICE_CHECKING = 0x300; 72 const unsigned short ICE_CHECKING = 0x300;
77 const unsigned short ICE_CONNECTED = 0x400; 73 const unsigned short ICE_CONNECTED = 0x400;
78 const unsigned short ICE_COMPLETED = 0x500; 74 const unsigned short ICE_COMPLETED = 0x500;
79 const unsigned short ICE_FAILED = 0x600; 75 const unsigned short ICE_FAILED = 0x600;
80 const unsigned short ICE_CLOSED = 0x700; 76 const unsigned short ICE_CLOSED = 0x700;
81 readonly attribute unsigned short iceState; 77 readonly attribute unsigned short iceState;
82 78
83 // FIXME: Make mediaStreamHints an object 79 [StrictTypeChecking] void addStream(in MediaStream stream, in [Optional] Dictionary mediaStreamHints)
84 [StrictTypeChecking] void addStream(in MediaStream stream, in [Optional] DOMString mediaStreamHints)
85 raises(DOMException); 80 raises(DOMException);
86 [StrictTypeChecking] void removeStream(in MediaStream stream) 81 [StrictTypeChecking] void removeStream(in MediaStream stream)
87 raises(DOMException); 82 raises(DOMException);
88 83
89 readonly attribute MediaStreamList localStreams; 84 readonly attribute MediaStreamList localStreams;
90 readonly attribute MediaStreamList remoteStreams; 85 readonly attribute MediaStreamList remoteStreams;
91 86
92 void close() 87 void close()
93 raises(DOMException); 88 raises(DOMException);
94 89
95 attribute EventListener onconnecting; 90 attribute EventListener onconnecting;
96 attribute EventListener onopen; 91 attribute EventListener onopen;
97 attribute EventListener onstatechange; 92 attribute EventListener onstatechange;
98 attribute EventListener onaddstream; 93 attribute EventListener onaddstream;
99 attribute EventListener onremovestream; 94 attribute EventListener onremovestream;
100 95
101 // EventTarget interface 96 // EventTarget interface
102 void addEventListener(in DOMString type, 97 void addEventListener(in DOMString type,
103 in EventListener listener, 98 in EventListener listener,
104 in [Optional] boolean useCapture); 99 in [Optional] boolean useCapture);
105 void removeEventListener(in DOMString type, 100 void removeEventListener(in DOMString type,
106 in EventListener listener, 101 in EventListener listener,
107 in [Optional] boolean useCapture); 102 in [Optional] boolean useCapture);
108 boolean dispatchEvent(in Event event) 103 boolean dispatchEvent(in Event event)
109 raises(EventException); 104 raises(EventException);
110 }; 105 };
111 106
112 } 107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698