| 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) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 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 module threads { | 32 module threads { |
| 33 | 33 |
| 34 interface [ | 34 interface [ |
| 35 Conditional=NOTIFICATIONS|LEGACY_NOTIFICATIONS, | 35 Conditional=NOTIFICATIONS|LEGACY_NOTIFICATIONS, |
| 36 ActiveDOMObject, | 36 ActiveDOMObject, |
| 37 EventTarget, | 37 EventTarget, |
| 38 OmitConstructor | 38 OmitConstructor |
| 39 ] Notification { | 39 ] Notification { |
| 40 void show(); | 40 void show(); |
| 41 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 41 void cancel(); | 42 void cancel(); |
| 43 #endif |
| 44 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
| 45 void close(); |
| 46 #endif |
| 42 | 47 |
| 43 attribute EventListener onshow; | 48 attribute EventListener onshow; |
| 44 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 49 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 45 attribute EventListener ondisplay; | 50 attribute EventListener ondisplay; |
| 46 #endif | 51 #endif |
| 47 attribute EventListener onerror; | 52 attribute EventListener onerror; |
| 48 attribute EventListener onclose; | 53 attribute EventListener onclose; |
| 49 attribute EventListener onclick; | 54 attribute EventListener onclick; |
| 50 | 55 |
| 51 attribute DOMString dir; | 56 attribute DOMString dir; |
| 57 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 52 attribute DOMString replaceId; | 58 attribute DOMString replaceId; |
| 59 #endif |
| 60 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
| 61 attribute DOMString tag; |
| 62 #endif |
| 53 | 63 |
| 54 // EventTarget interface | 64 // EventTarget interface |
| 55 void addEventListener(in DOMString type, | 65 void addEventListener(in DOMString type, |
| 56 in EventListener listener, | 66 in EventListener listener, |
| 57 in [Optional] boolean useCapture); | 67 in [Optional] boolean useCapture); |
| 58 void removeEventListener(in DOMString type, | 68 void removeEventListener(in DOMString type, |
| 59 in EventListener listener, | 69 in EventListener listener, |
| 60 in [Optional] boolean useCapture); | 70 in [Optional] boolean useCapture); |
| 61 boolean dispatchEvent(in Event evt) | 71 boolean dispatchEvent(in Event evt) |
| 62 raises(EventException); | 72 raises(EventException); |
| 63 }; | 73 }; |
| 64 | 74 |
| 65 } | 75 } |
| OLD | NEW |