Index: modules/notifications/Notification.idl |
diff --git a/modules/notifications/Notification.idl b/modules/notifications/Notification.idl |
index 22b76f5bc55fe7c49893a6e3da7bc4334c7d48ab..0d5d7f700e422e94d67c2c1b1db03dc62dae347d 100644 |
--- a/modules/notifications/Notification.idl |
+++ b/modules/notifications/Notification.idl |
@@ -33,41 +33,26 @@ |
Conditional=NOTIFICATIONS|LEGACY_NOTIFICATIONS, |
ActiveDOMObject, |
EventTarget, |
-#if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
Constructor(DOMString title, [Default=Undefined] optional Dictionary options), |
- CallWith=ScriptExecutionContext, |
-#else |
-#endif |
+ ConstructorCallWith=ScriptExecutionContext, |
] interface Notification { |
void show(); |
-#if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
- void cancel(); |
-#endif |
-#if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
- void close(); |
-#endif |
+ [Conditional=LEGACY_NOTIFICATIONS] void cancel(); |
+ [Conditional=NOTIFICATIONS] void close(); |
-#if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
- [CallWith=ScriptExecutionContext] static readonly attribute DOMString permission; |
- [CallWith=ScriptExecutionContext] static void requestPermission(optional NotificationPermissionCallback callback); |
-#endif |
+ [CallWith=ScriptExecutionContext, Conditional=NOTIFICATIONS] static readonly attribute DOMString permission; |
+ [CallWith=ScriptExecutionContext, Conditional=NOTIFICATIONS] static void requestPermission(optional NotificationPermissionCallback callback); |
attribute EventListener onshow; |
-#if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
- attribute EventListener ondisplay; |
-#endif |
+ [Conditional=LEGACY_NOTIFICATIONS] attribute EventListener ondisplay; |
attribute EventListener onerror; |
attribute EventListener onclose; |
attribute EventListener onclick; |
-#if defined(ENABLE_LEGACY_NOTIFICATIONS) && ENABLE_LEGACY_NOTIFICATIONS |
- attribute DOMString dir; |
- attribute DOMString replaceId; |
-#endif |
-#if defined(ENABLE_NOTIFICATIONS) && ENABLE_NOTIFICATIONS |
- attribute DOMString tag; |
-#endif |
+ [Conditional=LEGACY_NOTIFICATIONS] attribute DOMString dir; |
+ [Conditional=LEGACY_NOTIFICATIONS] attribute DOMString replaceId; |
+ [Conditional=NOTIFICATIONS] attribute DOMString tag; |
// EventTarget interface |
void addEventListener(DOMString type, |