| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 53 |
| 54 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 54 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
| 55 [CallWith=ScriptExecutionContext] static DOMString permissionLevel(); | 55 static readonly attribute [CallWith=ScriptExecutionContext] DOMString pe
rmission; |
| 56 [Custom] static void requestPermission(in NotificationPermissionCallback
callback); | 56 [Custom] static void requestPermission(in NotificationPermissionCallback
callback); |
| 57 #endif | 57 #endif |
| 58 | 58 |
| 59 attribute EventListener onshow; | 59 attribute EventListener onshow; |
| 60 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 60 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 61 attribute EventListener ondisplay; | 61 attribute EventListener ondisplay; |
| 62 #endif | 62 #endif |
| 63 attribute EventListener onerror; | 63 attribute EventListener onerror; |
| 64 attribute EventListener onclose; | 64 attribute EventListener onclose; |
| 65 attribute EventListener onclick; | 65 attribute EventListener onclick; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 77 in EventListener listener, | 77 in EventListener listener, |
| 78 in [Optional] boolean useCapture); | 78 in [Optional] boolean useCapture); |
| 79 void removeEventListener(in DOMString type, | 79 void removeEventListener(in DOMString type, |
| 80 in EventListener listener, | 80 in EventListener listener, |
| 81 in [Optional] boolean useCapture); | 81 in [Optional] boolean useCapture); |
| 82 boolean dispatchEvent(in Event evt) | 82 boolean dispatchEvent(in Event evt) |
| 83 raises(EventException); | 83 raises(EventException); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } | 86 } |
| OLD | NEW |