mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
55 lines
1.9 KiB
Plaintext
55 lines
1.9 KiB
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 "nsISupports.idl"
|
|
|
|
interface nsIDOMWindow;
|
|
interface nsIDOMDOMRequest;
|
|
|
|
[scriptable, uuid(f383a42b-0961-4bb0-b45e-dbc345d59237)]
|
|
interface nsIIccListener : nsISupports
|
|
{
|
|
void notifyStkCommand(in DOMString aMessage);
|
|
void notifyStkSessionEnd();
|
|
};
|
|
|
|
/**
|
|
* XPCOM component (in the content process) that provides the ICC information.
|
|
*/
|
|
[scriptable, uuid(1bfb62cf-544c-4adb-b91c-c75e5d0dce29)]
|
|
interface nsIIccProvider : nsISupports
|
|
{
|
|
/**
|
|
* Called when a content process registers receiving unsolicited messages from
|
|
* RadioInterfaceLayer in the chrome process. Only a content process that has
|
|
* the 'mobileconnection' permission is allowed to register.
|
|
*/
|
|
void registerIccMsg(in nsIIccListener listener);
|
|
void unregisterIccMsg(in nsIIccListener listener);
|
|
|
|
void sendStkResponse(in nsIDOMWindow window,
|
|
in jsval command,
|
|
in jsval response);
|
|
void sendStkMenuSelection(in nsIDOMWindow window,
|
|
in unsigned short itemIdentifier,
|
|
in boolean helpRequested);
|
|
void sendStkTimerExpiration(in nsIDOMWindow window,
|
|
in jsval timer);
|
|
void sendStkEventDownload(in nsIDOMWindow window,
|
|
in jsval event);
|
|
|
|
/**
|
|
* Secure Card Icc communication channel
|
|
*/
|
|
nsIDOMDOMRequest iccOpenChannel(in nsIDOMWindow window,
|
|
in DOMString aid);
|
|
|
|
nsIDOMDOMRequest iccExchangeAPDU(in nsIDOMWindow window,
|
|
in long channel,
|
|
in jsval apdu);
|
|
|
|
nsIDOMDOMRequest iccCloseChannel(in nsIDOMWindow window,
|
|
in long channel);
|
|
};
|