| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 [ | 32 [ |
| 33 Conditional=WEB_SOCKETS, | 33 Conditional=WEB_SOCKETS, |
| 34 ActiveDOMObject, | 34 ActiveDOMObject, |
| 35 Constructor(in DOMString url), | 35 Constructor(in DOMString url), |
| 36 Constructor(in DOMString url, in sequence<DOMString> protocols), | 36 Constructor(in DOMString url, in sequence<DOMString> protocols), |
| 37 Constructor(in DOMString url, in DOMString protocol), | 37 Constructor(in DOMString url, in DOMString protocol), |
| 38 ConstructorRaisesException, | 38 ConstructorRaisesException, |
| 39 CallWith=ScriptExecutionContext, | 39 CallWith=ScriptExecutionContext, |
| 40 EventTarget, | 40 EventTarget, |
| 41 JSNoStaticTables, | |
| 42 ConstructorParameters=1 | 41 ConstructorParameters=1 |
| 43 ] interface WebSocket { | 42 ] interface WebSocket { |
| 44 readonly attribute DOMString URL; // Lowercased .url is the one in the spec,
but leaving .URL for compatibility reasons. | 43 readonly attribute DOMString URL; // Lowercased .url is the one in the spec,
but leaving .URL for compatibility reasons. |
| 45 readonly attribute DOMString url; | 44 readonly attribute DOMString url; |
| 46 | 45 |
| 47 // ready state | 46 // ready state |
| 48 const unsigned short CONNECTING = 0; | 47 const unsigned short CONNECTING = 0; |
| 49 const unsigned short OPEN = 1; | 48 const unsigned short OPEN = 1; |
| 50 const unsigned short CLOSING = 2; | 49 const unsigned short CLOSING = 2; |
| 51 const unsigned short CLOSED = 3; | 50 const unsigned short CLOSED = 3; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 78 // EventTarget interface | 77 // EventTarget interface |
| 79 void addEventListener(in DOMString type, | 78 void addEventListener(in DOMString type, |
| 80 in EventListener listener, | 79 in EventListener listener, |
| 81 in [Optional] boolean useCapture); | 80 in [Optional] boolean useCapture); |
| 82 void removeEventListener(in DOMString type, | 81 void removeEventListener(in DOMString type, |
| 83 in EventListener listener, | 82 in EventListener listener, |
| 84 in [Optional] boolean useCapture); | 83 in [Optional] boolean useCapture); |
| 85 boolean dispatchEvent(in Event evt) | 84 boolean dispatchEvent(in Event evt) |
| 86 raises(EventException); | 85 raises(EventException); |
| 87 }; | 86 }; |
| OLD | NEW |