| 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 * 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 29 matching lines...) Expand all Loading... |
| 40 ] interface RTCDataChannel : EventTarget { | 40 ] interface RTCDataChannel : EventTarget { |
| 41 readonly attribute USVString label; | 41 readonly attribute USVString label; |
| 42 readonly attribute boolean ordered; | 42 readonly attribute boolean ordered; |
| 43 // TODO(foolip): |maxRetransmitTime| is called |maxPacketLifeTime| in the | 43 // TODO(foolip): |maxRetransmitTime| is called |maxPacketLifeTime| in the |
| 44 // spec and both it and |maxRetransmits| are nullable. | 44 // spec and both it and |maxRetransmits| are nullable. |
| 45 [Measure] readonly attribute unsigned short maxRetransmitTime; | 45 [Measure] readonly attribute unsigned short maxRetransmitTime; |
| 46 [Measure] readonly attribute unsigned short maxRetransmits; | 46 [Measure] readonly attribute unsigned short maxRetransmits; |
| 47 readonly attribute USVString protocol; | 47 readonly attribute USVString protocol; |
| 48 readonly attribute boolean negotiated; | 48 readonly attribute boolean negotiated; |
| 49 readonly attribute unsigned short id; | 49 readonly attribute unsigned short id; |
| 50 readonly attribute RTCDataChannelState readyState; | 50 [ImplementedAs=getReadyState] readonly attribute RTCDataChannelState readySt
ate; |
| 51 readonly attribute unsigned long bufferedAmount; | 51 readonly attribute unsigned long bufferedAmount; |
| 52 attribute unsigned long bufferedAmountLowThreshold; | 52 attribute unsigned long bufferedAmountLowThreshold; |
| 53 attribute EventHandler onopen; | 53 attribute EventHandler onopen; |
| 54 attribute EventHandler onbufferedamountlow; | 54 attribute EventHandler onbufferedamountlow; |
| 55 attribute EventHandler onerror; | 55 attribute EventHandler onerror; |
| 56 attribute EventHandler onclose; | 56 attribute EventHandler onclose; |
| 57 void close(); | 57 void close(); |
| 58 attribute EventHandler onmessage; | 58 attribute EventHandler onmessage; |
| 59 [RaisesException=Setter] attribute DOMString binaryType; | 59 [RaisesException=Setter] attribute DOMString binaryType; |
| 60 // TODO(foolip): |data| should be USVString. | 60 // TODO(foolip): |data| should be USVString. |
| 61 [RaisesException] void send(DOMString data); | 61 [RaisesException] void send(DOMString data); |
| 62 [RaisesException] void send(Blob data); | 62 [RaisesException] void send(Blob data); |
| 63 [RaisesException] void send(ArrayBuffer data); | 63 [RaisesException] void send(ArrayBuffer data); |
| 64 [RaisesException] void send(ArrayBufferView data); | 64 [RaisesException] void send(ArrayBufferView data); |
| 65 | 65 |
| 66 // Non-standard APIs | 66 // Non-standard APIs |
| 67 [Measure] readonly attribute boolean reliable; | 67 [Measure] readonly attribute boolean reliable; |
| 68 }; | 68 }; |
| OLD | NEW |