OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2011 Google 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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 18 matching lines...) Expand all Loading... |
29 ActiveDOMObject | 29 ActiveDOMObject |
30 ] interface MessagePort : EventTarget { | 30 ] interface MessagePort : EventTarget { |
31 // We need to have something as an ObjC binding, because MessagePort is used in
MessageEvent, which already has one, | 31 // We need to have something as an ObjC binding, because MessagePort is used in
MessageEvent, which already has one, |
32 // but we don't want to actually expose the API while it is in flux. | 32 // but we don't want to actually expose the API while it is in flux. |
33 [Custom, RaisesException] void postMessage(any message, optional Array messa
gePorts); | 33 [Custom, RaisesException] void postMessage(any message, optional Array messa
gePorts); |
34 | 34 |
35 void start(); | 35 void start(); |
36 void close(); | 36 void close(); |
37 | 37 |
38 // event handler attributes | 38 // event handler attributes |
39 attribute EventListener onmessage; | 39 attribute EventHandler onmessage; |
40 }; | 40 }; |
41 | 41 |
OLD | NEW |