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, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011, 2012 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 17 matching lines...) Expand all Loading... |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 [ | 32 [ |
33 Conditional=NOTIFICATIONS|LEGACY_NOTIFICATIONS, | 33 Conditional=NOTIFICATIONS|LEGACY_NOTIFICATIONS, |
34 ActiveDOMObject, | 34 ActiveDOMObject, |
35 EventTarget, | 35 EventTarget, |
36 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 36 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
37 Constructor(DOMString title, [Default=Undefined] optional Dictionary options
), | 37 Constructor(DOMString title, [Default=Undefined] optional Dictionary options
), |
38 CallWith=ScriptExecutionContext, | 38 ConstructorCallWith=ScriptExecutionContext, |
39 #else | 39 #else |
40 #endif | 40 #endif |
41 ] interface Notification { | 41 ] interface Notification { |
42 void show(); | 42 void show(); |
43 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 43 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
44 void cancel(); | 44 void cancel(); |
45 #endif | 45 #endif |
46 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 46 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
47 void close(); | 47 void close(); |
48 #endif | 48 #endif |
(...skipping 23 matching lines...) Expand all Loading... |
72 // EventTarget interface | 72 // EventTarget interface |
73 void addEventListener(DOMString type, | 73 void addEventListener(DOMString type, |
74 EventListener listener, | 74 EventListener listener, |
75 optional boolean useCapture); | 75 optional boolean useCapture); |
76 void removeEventListener(DOMString type, | 76 void removeEventListener(DOMString type, |
77 EventListener listener, | 77 EventListener listener, |
78 optional boolean useCapture); | 78 optional boolean useCapture); |
79 [RaisesException] boolean dispatchEvent(Event evt); | 79 [RaisesException] boolean dispatchEvent(Event evt); |
80 }; | 80 }; |
81 | 81 |
OLD | NEW |