gecko-dev/dom/interfaces/notification/nsIDOMDesktopNotification.idl

28 lines
866 B
Plaintext

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "domstubs.idl"
interface nsIDOMEventListener;
interface nsIDOMDesktopNotification;
[scriptable, uuid(CCEA6185-0A3D-45AB-9058-1004DD4B8C50)]
interface nsIDOMDesktopNotificationCenter : nsISupports
{
nsIDOMDesktopNotification createNotification(in DOMString title,
in DOMString description,
[optional] in DOMString iconURL);
};
[scriptable, uuid(77bc6adc-77d6-4b29-9844-7eaac25e995d)]
interface nsIDOMDesktopNotification : nsISupports
{
void show();
[implicit_jscontext] attribute jsval onclick;
[implicit_jscontext] attribute jsval onclose;
};