summaryrefslogtreecommitdiffstats
path: root/webkit/api/src/WebRuntimeFeatures.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/api/src/WebRuntimeFeatures.cpp')
-rw-r--r--webkit/api/src/WebRuntimeFeatures.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/webkit/api/src/WebRuntimeFeatures.cpp b/webkit/api/src/WebRuntimeFeatures.cpp
index fb51928..b3d3ff6 100644
--- a/webkit/api/src/WebRuntimeFeatures.cpp
+++ b/webkit/api/src/WebRuntimeFeatures.cpp
@@ -119,4 +119,20 @@ bool WebRuntimeFeatures::isSocketsEnabled()
#endif
}
+void WebRuntimeFeatures::enableNotifications(bool enable)
+{
+#if ENABLE(NOTIFICATIONS)
+ RuntimeEnabledFeatures::setNotificationsEnabled(enable);
+#endif
+}
+
+bool WebRuntimeFeatures::isNotificationsEnabled()
+{
+#if ENABLE(NOTIFICATIONS)
+ return RuntimeEnabledFeatures::notificationsEnabled();
+#else
+ return false;
+#endif
+}
+
} // namespace WebKit