| Index: webkit/api/src/WebRuntimeFeatures.cpp
|
| ===================================================================
|
| --- webkit/api/src/WebRuntimeFeatures.cpp (revision 30646)
|
| +++ webkit/api/src/WebRuntimeFeatures.cpp (working copy)
|
| @@ -119,4 +119,20 @@
|
| #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
|
|
|