| 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 #endif | 43 #endif |
| 44 ] Notification { | 44 ] Notification { |
| 45 void show(); | 45 void show(); |
| 46 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 46 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 47 void cancel(); | 47 void cancel(); |
| 48 #endif | 48 #endif |
| 49 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 49 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
| 50 void close(); | 50 void close(); |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 |
| 54 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
| 55 [CallWith=ScriptExecutionContext] static DOMString permissionLevel(); |
| 56 [Custom] static void requestPermission(in NotificationPermissionCallback
callback); |
| 57 #endif |
| 58 |
| 53 attribute EventListener onshow; | 59 attribute EventListener onshow; |
| 54 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 60 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 55 attribute EventListener ondisplay; | 61 attribute EventListener ondisplay; |
| 56 #endif | 62 #endif |
| 57 attribute EventListener onerror; | 63 attribute EventListener onerror; |
| 58 attribute EventListener onclose; | 64 attribute EventListener onclose; |
| 59 attribute EventListener onclick; | 65 attribute EventListener onclick; |
| 60 | 66 |
| 61 attribute DOMString dir; | 67 attribute DOMString dir; |
| 62 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 68 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 63 attribute DOMString replaceId; | 69 attribute DOMString replaceId; |
| 64 #endif | 70 #endif |
| 65 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 71 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
| 66 attribute DOMString tag; | 72 attribute DOMString tag; |
| 67 #endif | 73 #endif |
| 68 | 74 |
| 69 // EventTarget interface | 75 // EventTarget interface |
| 70 void addEventListener(in DOMString type, | 76 void addEventListener(in DOMString type, |
| 71 in EventListener listener, | 77 in EventListener listener, |
| 72 in [Optional] boolean useCapture); | 78 in [Optional] boolean useCapture); |
| 73 void removeEventListener(in DOMString type, | 79 void removeEventListener(in DOMString type, |
| 74 in EventListener listener, | 80 in EventListener listener, |
| 75 in [Optional] boolean useCapture); | 81 in [Optional] boolean useCapture); |
| 76 boolean dispatchEvent(in Event evt) | 82 boolean dispatchEvent(in Event evt) |
| 77 raises(EventException); | 83 raises(EventException); |
| 78 }; | 84 }; |
| 79 | 85 |
| 80 } | 86 } |
| OLD | NEW |