dom/cellbroadcast/interfaces/nsICellBroadcastProvider.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/cellbroadcast/interfaces/nsICellBroadcastProvider.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +
    1.10 +interface nsIDOMMozCellBroadcastMessage;
    1.11 +
    1.12 +[scriptable, uuid(4c6fb794-31bd-4ed7-b21a-34b82aa3efbe)]
    1.13 +interface nsICellBroadcastListener : nsISupports
    1.14 +{
    1.15 +  /**
    1.16 +   * Called when a Cell Broadcast message has been received by the network.
    1.17 +   *
    1.18 +   * @param message
    1.19 +   *        The received Cell Broadcast Message.
    1.20 +   */
    1.21 +  void notifyMessageReceived(in nsIDOMMozCellBroadcastMessage message);
    1.22 +};
    1.23 +
    1.24 +/**
    1.25 + * XPCOM component (in the content process) that provides the cell broadcast
    1.26 + * information.
    1.27 + */
    1.28 +[scriptable, uuid(e6c01d18-829e-4d5a-9611-60fca36e6b46)]
    1.29 +interface nsICellBroadcastProvider : nsISupports
    1.30 +{
    1.31 +  /**
    1.32 +   * Called when a content process registers receiving unsolicited messages from
    1.33 +   * RadioInterfaceLayer in the chrome process. Only a content process that has
    1.34 +   * the 'cellbroadcast' permission is allowed to register.
    1.35 +   */
    1.36 +  void registerCellBroadcastMsg(in nsICellBroadcastListener listener);
    1.37 +  void unregisterCellBroadcastMsg(in nsICellBroadcastListener listener);
    1.38 +};

mercurial