| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Blob data) raises(DOMException); | 72 // boolean send(in Blob data) raises(DOMException); |
| 73 // boolean send(in DOMString data) raises(DOMException); | 73 // boolean send(in DOMString data) raises(DOMException); |
| 74 [Custom] boolean send(in DOMString data) raises(DOMException); | 74 [Custom] boolean send(in DOMString data) raises(DOMException); |
| 75 | 75 |
| 76 // FIXME: Implement and apply [Clamp] attribute instead of [Custom]. | 76 void close(in [Clamp, Optional] unsigned short code, in [Optional] DOMSt
ring reason) raises(DOMException); |
| 77 [Custom] void close(in [Optional] unsigned short code, in [Optional] DOM
String reason) raises(DOMException); | |
| 78 | 77 |
| 79 // EventTarget interface | 78 // EventTarget interface |
| 80 void addEventListener(in DOMString type, | 79 void addEventListener(in DOMString type, |
| 81 in EventListener listener, | 80 in EventListener listener, |
| 82 in [Optional] boolean useCapture); | 81 in [Optional] boolean useCapture); |
| 83 void removeEventListener(in DOMString type, | 82 void removeEventListener(in DOMString type, |
| 84 in EventListener listener, | 83 in EventListener listener, |
| 85 in [Optional] boolean useCapture); | 84 in [Optional] boolean useCapture); |
| 86 boolean dispatchEvent(in Event evt) | 85 boolean dispatchEvent(in Event evt) |
| 87 raises(EventException); | 86 raises(EventException); |
| 88 }; | 87 }; |
| 89 } | 88 } |
| OLD | NEW |