diff options
Diffstat (limited to 'WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp')
-rwxr-xr-x | WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp b/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp index 21b3c30..36c7001 100755 --- a/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp +++ b/WebCore/bindings/v8/custom/V8WorkerContextCustom.cpp @@ -34,6 +34,7 @@ #include "DOMTimer.h" #include "ExceptionCode.h" +#include "NotificationCenter.h" #include "ScheduledAction.h" #include "V8Binding.h" #include "V8CustomBinding.h" @@ -45,6 +46,13 @@ namespace WebCore { +#if ENABLE(NOTIFICATIONS) +ACCESSOR_RUNTIME_ENABLER(WorkerContextWebkitNotifications) +{ + return NotificationCenter::isAvailable(); +} +#endif + ACCESSOR_GETTER(WorkerContextSelf) { INC_STATS(L"DOM.WorkerContext.self._get"); |