webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
IWebDesktopNotificationsDelegate Interface Reference

import"IWebDesktopNotificationsDelegate.idl";

Inheritance diagram for IWebDesktopNotificationsDelegate:
DRTDesktopNotificationPresenter

Public Member Functions

HRESULT showDesktopNotification ([in] IWebDesktopNotification *notification)
 
HRESULT cancelDesktopNotification ([in] IWebDesktopNotification *notification)
 
HRESULT notificationDestroyed ([in] IWebDesktopNotification *notification)
 
HRESULT checkNotificationPermission ([in] BSTR origin, [out, retval] int *result)
 
HRESULT requestNotificationPermission ([in] BSTR origin)
 

Member Function Documentation

◆ cancelDesktopNotification()

HRESULT IWebDesktopNotificationsDelegate::cancelDesktopNotification ( [in] IWebDesktopNotification notification)

cancelDesktopNotification: Cancel showing a notification (or take it down if it's shown).

Parameters
notificationThe Notification to be canceled.

◆ checkNotificationPermission()

HRESULT IWebDesktopNotificationsDelegate::checkNotificationPermission ( [in] BSTR  origin,
[out, retval] int *  result 
)

checkNotificationPermission: See if the origin context is allowed to show notifications.

Parameters
originThe origin to be checked.
resultA value from WebCore::NotificationProvider::Permission enum.

◆ notificationDestroyed()

HRESULT IWebDesktopNotificationsDelegate::notificationDestroyed ( [in] IWebDesktopNotification notification)

notificationDestroyed: Notify the presenter that the object has been destroyed. The notification need not be un-shown, but events should not be invoked.

Parameters
notificationThe Notification that was destroyed.

◆ requestNotificationPermission()

HRESULT IWebDesktopNotificationsDelegate::requestNotificationPermission ( [in] BSTR  origin)

requestNotificationPermission: Request permission to show notifications on a given origin.

Parameters
originThe origin to be requested.

◆ showDesktopNotification()

HRESULT IWebDesktopNotificationsDelegate::showDesktopNotification ( [in] IWebDesktopNotification notification)

showDesktopNotification: Show a notification.

Parameters
notificationThe Notification to be shown.

The documentation for this interface was generated from the following file: