Example #1
0
NS_IMETHODIMP
DesktopNotificationRequest::GetTypes(nsIArray** aTypes)
{
  return CreatePermissionArray(NS_LITERAL_CSTRING("desktop-notification"),
                               NS_LITERAL_CSTRING("unused"),
                               aTypes);
}
NS_IMETHODIMP
DesktopNotificationRequest::GetTypes(nsIArray** aTypes)
{
  nsTArray<nsString> emptyOptions;
  return CreatePermissionArray(NS_LITERAL_CSTRING("desktop-notification"),
                               NS_LITERAL_CSTRING("unused"),
                               emptyOptions,
                               aTypes);
}