| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 attribute [TreatReturnedNullStringAs=Undefined] DOMString binaryType | 63 attribute [TreatReturnedNullStringAs=Undefined] DOMString binaryType |
| 64 setter raises(DOMException); | 64 setter raises(DOMException); |
| 65 | 65 |
| 66 // FIXME: Use overloading provided by our IDL code generator. | 66 // FIXME: Use overloading provided by our IDL code generator. |
| 67 // According to Web IDL specification, overloaded function with DOMStrin
g argument | 67 // According to Web IDL specification, overloaded function with DOMStrin
g argument |
| 68 // should accept anything that can be converted to a string (including n
umbers, | 68 // should accept anything that can be converted to a string (including n
umbers, |
| 69 // booleans, null, undefined and objects except ArrayBuffer and Blob). C
urrent code | 69 // booleans, null, undefined and objects except ArrayBuffer and Blob). C
urrent code |
| 70 // generator does not handle this rule correctly. | 70 // generator does not handle this rule correctly. |
| 71 // boolean send(in ArrayBuffer data) raises(DOMException); | 71 // boolean send(in ArrayBuffer data) raises(DOMException); |
| 72 // boolean send(in ArrayBufferView data) raises(DOMException); |
| 72 // boolean send(in Blob data) raises(DOMException); | 73 // boolean send(in Blob data) raises(DOMException); |
| 73 // boolean send(in DOMString data) raises(DOMException); | 74 // boolean send(in DOMString data) raises(DOMException); |
| 74 [Custom] boolean send(in DOMString data) raises(DOMException); | 75 [Custom] boolean send(in DOMString data) raises(DOMException); |
| 75 | 76 |
| 76 void close(in [Clamp, Optional] unsigned short code, in [Optional] DOMSt
ring reason) raises(DOMException); | 77 void close(in [Clamp, Optional] unsigned short code, in [Optional] DOMSt
ring reason) raises(DOMException); |
| 77 | 78 |
| 78 // EventTarget interface | 79 // EventTarget interface |
| 79 void addEventListener(in DOMString type, | 80 void addEventListener(in DOMString type, |
| 80 in EventListener listener, | 81 in EventListener listener, |
| 81 in [Optional] boolean useCapture); | 82 in [Optional] boolean useCapture); |
| 82 void removeEventListener(in DOMString type, | 83 void removeEventListener(in DOMString type, |
| 83 in EventListener listener, | 84 in EventListener listener, |
| 84 in [Optional] boolean useCapture); | 85 in [Optional] boolean useCapture); |
| 85 boolean dispatchEvent(in Event evt) | 86 boolean dispatchEvent(in Event evt) |
| 86 raises(EventException); | 87 raises(EventException); |
| 87 }; | 88 }; |
| 88 } | 89 } |
| OLD | NEW |