michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "domstubs.idl" michael@0: michael@0: interface nsIObserver; michael@0: michael@0: // Notification service that also provides the manifest URL michael@0: [scriptable, uuid(50cb17d2-dc8a-4aa6-bcd3-94d76af14e20)] michael@0: interface nsIAppNotificationService : nsISupports michael@0: { michael@0: void showAppNotification(in AString imageUrl, michael@0: in AString title, michael@0: in AString text, michael@0: in nsIObserver alertListener, michael@0: // details should be a WebIDL michael@0: // AppNotificationServiceOptions Dictionary object michael@0: in jsval details); michael@0: };