Chromium Code Reviews| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 44 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 44 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 45 void cancel(); | 45 void cancel(); |
| 46 #endif | 46 #endif |
| 47 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 47 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
| 48 void close(); | 48 void close(); |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 | 51 |
| 52 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 52 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
| 53 static readonly attribute [CallWith=ScriptExecutionContext] DOMString permis sion; | 53 static readonly attribute [CallWith=ScriptExecutionContext] DOMString permis sion; |
| 54 [Custom] static void requestPermission(in NotificationPermissionCallback cal lback); | 54 [CallWith=ScriptExecutionContext] static void requestPermission(in [Optional , Callback] NotificationPermissionCallback callback); |
|
Anton Muhin
2013/03/05 11:47:42
should we remove custom implementation if any?
Mads Ager (google)
2013/03/05 11:50:49
Yes, just sent out a separate change for you on th
| |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 attribute EventListener onshow; | 57 attribute EventListener onshow; |
| 58 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 58 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 59 attribute EventListener ondisplay; | 59 attribute EventListener ondisplay; |
| 60 #endif | 60 #endif |
| 61 attribute EventListener onerror; | 61 attribute EventListener onerror; |
| 62 attribute EventListener onclose; | 62 attribute EventListener onclose; |
| 63 attribute EventListener onclick; | 63 attribute EventListener onclick; |
| 64 | 64 |
| 65 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS | 65 #if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
| 66 attribute DOMString dir; | 66 attribute DOMString dir; |
| 67 attribute DOMString replaceId; | 67 attribute DOMString replaceId; |
| 68 #endif | 68 #endif |
| 69 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS | 69 #if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
| 70 attribute DOMString tag; | 70 attribute DOMString tag; |
| 71 #endif | 71 #endif |
| 72 | 72 |
| 73 // EventTarget interface | 73 // EventTarget interface |
| 74 void addEventListener(in DOMString type, | 74 void addEventListener(in DOMString type, |
| 75 in EventListener listener, | 75 in EventListener listener, |
| 76 in [Optional] boolean useCapture); | 76 in [Optional] boolean useCapture); |
| 77 void removeEventListener(in DOMString type, | 77 void removeEventListener(in DOMString type, |
| 78 in EventListener listener, | 78 in EventListener listener, |
| 79 in [Optional] boolean useCapture); | 79 in [Optional] boolean useCapture); |
| 80 boolean dispatchEvent(in Event evt) | 80 boolean dispatchEvent(in Event evt) |
| 81 raises(EventException); | 81 raises(EventException); |
| 82 }; | 82 }; |
| 83 | 83 |
| OLD | NEW |