WKNotificationManager.cpp [plain text]
#include "config.h"
#include "WKNotificationManager.h"
#include "WKAPICast.h"
#include "WebNotificationManagerProxy.h"
using namespace WebKit;
WKTypeID WKNotificationManagerGetTypeID()
{
return toAPI(WebNotificationManagerProxy::APIType);
}
void WKNotificationManagerSetProvider(WKNotificationManagerRef managerRef, const WKNotificationProviderBase* wkProvider)
{
toImpl(managerRef)->initializeProvider(wkProvider);
}
void WKNotificationManagerProviderDidShowNotification(WKNotificationManagerRef managerRef, uint64_t notificationID)
{
toImpl(managerRef)->providerDidShowNotification(notificationID);
}
void WKNotificationManagerProviderDidClickNotification(WKNotificationManagerRef managerRef, uint64_t notificationID)
{
toImpl(managerRef)->providerDidClickNotification(notificationID);
}
void WKNotificationManagerProviderDidCloseNotifications(WKNotificationManagerRef managerRef, WKArrayRef notificationIDs)
{
toImpl(managerRef)->providerDidCloseNotifications(toImpl(notificationIDs));
}
void WKNotificationManagerProviderDidUpdateNotificationPolicy(WKNotificationManagerRef managerRef, WKSecurityOriginRef origin, bool allowed)
{
toImpl(managerRef)->providerDidUpdateNotificationPolicy(toImpl(origin), allowed);
}
void WKNotificationManagerProviderDidRemoveNotificationPolicies(WKNotificationManagerRef managerRef, WKArrayRef origins)
{
toImpl(managerRef)->providerDidRemoveNotificationPolicies(toImpl(origins));
}