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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.idl

Issue 2463953002: Expose RTCDataChannel and RTCDataChannelEvent (with constructor) (Closed)
Patch Set: Rebase update Created 4 years, 1 month 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
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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 19 matching lines...) Expand all
30 "open", 30 "open",
31 "closing", 31 "closing",
32 "closed" 32 "closed"
33 }; 33 };
34 34
35 // https://w3c.github.io/webrtc-pc/#rtcdatachannel 35 // https://w3c.github.io/webrtc-pc/#rtcdatachannel
36 36
37 [ 37 [
38 ActiveScriptWrappable, 38 ActiveScriptWrappable,
39 DependentLifetime, 39 DependentLifetime,
40 NoInterfaceObject,
41 ] interface RTCDataChannel : EventTarget { 40 ] interface RTCDataChannel : EventTarget {
42 readonly attribute USVString label; 41 readonly attribute USVString label;
43 readonly attribute boolean ordered; 42 readonly attribute boolean ordered;
44 // TODO(foolip): |maxRetransmitTime| is called |maxPacketLifeTime| in the 43 // TODO(foolip): |maxRetransmitTime| is called |maxPacketLifeTime| in the
45 // spec and both it and |maxRetransmits| are nullable. 44 // spec and both it and |maxRetransmits| are nullable.
46 [Measure] readonly attribute unsigned short maxRetransmitTime; 45 [Measure] readonly attribute unsigned short maxRetransmitTime;
47 [Measure] readonly attribute unsigned short maxRetransmits; 46 [Measure] readonly attribute unsigned short maxRetransmits;
48 readonly attribute USVString protocol; 47 readonly attribute USVString protocol;
49 readonly attribute boolean negotiated; 48 readonly attribute boolean negotiated;
50 readonly attribute unsigned short id; 49 readonly attribute unsigned short id;
51 readonly attribute RTCDataChannelState readyState; 50 readonly attribute RTCDataChannelState readyState;
52 readonly attribute unsigned long bufferedAmount; 51 readonly attribute unsigned long bufferedAmount;
53 attribute unsigned long bufferedAmountLowThreshold; 52 attribute unsigned long bufferedAmountLowThreshold;
54 attribute EventHandler onopen; 53 attribute EventHandler onopen;
55 attribute EventHandler onbufferedamountlow; 54 attribute EventHandler onbufferedamountlow;
56 attribute EventHandler onerror; 55 attribute EventHandler onerror;
57 attribute EventHandler onclose; 56 attribute EventHandler onclose;
58 void close(); 57 void close();
59 attribute EventHandler onmessage; 58 attribute EventHandler onmessage;
60 [RaisesException=Setter] attribute DOMString binaryType; 59 [RaisesException=Setter] attribute DOMString binaryType;
61 // TODO(foolip): |data| should be USVString. 60 // TODO(foolip): |data| should be USVString.
62 [RaisesException] void send(DOMString data); 61 [RaisesException] void send(DOMString data);
63 [RaisesException] void send(Blob data); 62 [RaisesException] void send(Blob data);
64 [RaisesException] void send(ArrayBuffer data); 63 [RaisesException] void send(ArrayBuffer data);
65 [RaisesException] void send(ArrayBufferView data); 64 [RaisesException] void send(ArrayBufferView data);
66 65
67 // Non-standard APIs 66 // Non-standard APIs
68 [Measure] readonly attribute boolean reliable; 67 [Measure] readonly attribute boolean reliable;
69 }; 68 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698