OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2010, 2011 Apple Inc. All Rights Reserved. | 3 * Copyright (C) 2010, 2011 Apple Inc. All Rights Reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const unsigned short OPEN = 1; | 51 const unsigned short OPEN = 1; |
52 const unsigned short CLOSING = 2; | 52 const unsigned short CLOSING = 2; |
53 const unsigned short CLOSED = 3; | 53 const unsigned short CLOSED = 3; |
54 readonly attribute unsigned short readyState; | 54 readonly attribute unsigned short readyState; |
55 readonly attribute unsigned long bufferedAmount; | 55 readonly attribute unsigned long bufferedAmount; |
56 | 56 |
57 // networking | 57 // networking |
58 attribute EventHandler onopen; | 58 attribute EventHandler onopen; |
59 attribute EventHandler onerror; | 59 attribute EventHandler onerror; |
60 attribute EventHandler onclose; | 60 attribute EventHandler onclose; |
61 // FIXME: Per spec and impl, should never return undefined. Verify and remov
e extended attribute. | 61 readonly attribute DOMString extensions; |
62 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString extension
s; | 62 readonly attribute DOMString protocol; |
63 // FIXME: Per spec and impl, should never return undefined. Verify and remov
e extended attribute. | |
64 [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString protocol; | |
65 [RaisesException] void close([Clamp] optional unsigned short code, optional
USVString reason); | 63 [RaisesException] void close([Clamp] optional unsigned short code, optional
USVString reason); |
66 | 64 |
67 // messaging | 65 // messaging |
68 attribute EventHandler onmessage; | 66 attribute EventHandler onmessage; |
69 attribute BinaryType binaryType; | 67 attribute BinaryType binaryType; |
70 [RaisesException] void send(USVString data); | 68 [RaisesException] void send(USVString data); |
71 [RaisesException] void send(Blob data); | 69 [RaisesException] void send(Blob data); |
72 [RaisesException] void send(ArrayBuffer data); | 70 [RaisesException] void send(ArrayBuffer data); |
73 [RaisesException] void send(ArrayBufferView data); | 71 [RaisesException] void send(ArrayBufferView data); |
74 }; | 72 }; |
OLD | NEW |