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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
49 | 49 |
50 | 50 |
51 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 51 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
52 [CallWith=ScriptExecutionContext] static readonly attribute DOMString permis
sion; | 52 [CallWith=ScriptExecutionContext] static readonly attribute DOMString permis
sion; |
53 [CallWith=ScriptExecutionContext] static void requestPermission([Callback] o
ptional NotificationPermissionCallback callback); | 53 [CallWith=ScriptExecutionContext] static void requestPermission(optional Not
ificationPermissionCallback callback); |
54 #endif | 54 #endif |
55 | 55 |
56 attribute EventListener onshow; | 56 attribute EventListener onshow; |
57 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 57 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
58 attribute EventListener ondisplay; | 58 attribute EventListener ondisplay; |
59 #endif | 59 #endif |
60 attribute EventListener onerror; | 60 attribute EventListener onerror; |
61 attribute EventListener onclose; | 61 attribute EventListener onclose; |
62 attribute EventListener onclick; | 62 attribute EventListener onclick; |
63 | 63 |
64 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 64 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
65 attribute DOMString dir; | 65 attribute DOMString dir; |
66 attribute DOMString replaceId; | 66 attribute DOMString replaceId; |
67 #endif | 67 #endif |
68 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 68 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
69 attribute DOMString tag; | 69 attribute DOMString tag; |
70 #endif | 70 #endif |
71 | 71 |
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 |