summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp')
-rw-r--r--Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp b/Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp
index 7eec7efd9..bc1ecc7e7 100644
--- a/Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp
+++ b/Source/WebCore/bindings/v8/custom/V8NotificationCenterCustom.cpp
@@ -30,7 +30,7 @@
#include "config.h"
-#if ENABLE(NOTIFICATIONS)
+#if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
#include "V8NotificationCenter.h"
#include "ExceptionCode.h"
@@ -49,7 +49,7 @@ namespace WebCore {
v8::Handle<v8::Value> V8NotificationCenter::createHTMLNotificationCallback(const v8::Arguments& args)
{
- INC_STATS(L"DOM.NotificationCenter.CreateHTMLNotification()");
+ INC_STATS("DOM.NotificationCenter.CreateHTMLNotification()");
NotificationCenter* notificationCenter = V8NotificationCenter::toNative(args.Holder());
ExceptionCode ec = 0;
@@ -60,12 +60,12 @@ v8::Handle<v8::Value> V8NotificationCenter::createHTMLNotificationCallback(const
return throwError(ec);
notification->ref();
- return toV8(notification.get());
+ return toV8(notification.get(), args.GetIsolate());
}
v8::Handle<v8::Value> V8NotificationCenter::createNotificationCallback(const v8::Arguments& args)
{
- INC_STATS(L"DOM.NotificationCenter.CreateNotification()");
+ INC_STATS("DOM.NotificationCenter.CreateNotification()");
NotificationCenter* notificationCenter = V8NotificationCenter::toNative(args.Holder());
ExceptionCode ec = 0;
@@ -75,12 +75,12 @@ v8::Handle<v8::Value> V8NotificationCenter::createNotificationCallback(const v8:
return throwError(ec);
notification->ref();
- return toV8(notification.get());
+ return toV8(notification.get(), args.GetIsolate());
}
v8::Handle<v8::Value> V8NotificationCenter::requestPermissionCallback(const v8::Arguments& args)
{
- INC_STATS(L"DOM.NotificationCenter.RequestPermission()");
+ INC_STATS("DOM.NotificationCenter.RequestPermission()");
NotificationCenter* notificationCenter = V8NotificationCenter::toNative(args.Holder());
ScriptExecutionContext* context = notificationCenter->scriptExecutionContext();
@@ -107,4 +107,4 @@ v8::Handle<v8::Value> V8NotificationCenter::requestPermissionCallback(const v8::
} // namespace WebCore
-#endif // ENABLE(NOTIFICATIONS)
+#endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)