mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 963516 - Part 2: dom changes to support matchMvno(). f=hsinyi,edgar r=smaug
This commit is contained in:
parent
73e9931ee8
commit
e37a31baae
@ -357,3 +357,25 @@ Icc::IccCloseChannel(int32_t aChannel, ErrorResult& aRv)
|
||||
|
||||
return request.forget();
|
||||
}
|
||||
|
||||
already_AddRefed<nsISupports>
|
||||
Icc::MatchMvno(const nsAString& aMvnoType,
|
||||
const nsAString& aMvnoData,
|
||||
ErrorResult& aRv)
|
||||
{
|
||||
if (!mProvider) {
|
||||
aRv.Throw(NS_ERROR_FAILURE);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
nsRefPtr<nsIDOMDOMRequest> request;
|
||||
nsresult rv = mProvider->MatchMvno(mClientId, GetOwner(),
|
||||
aMvnoType, aMvnoData,
|
||||
getter_AddRefs(request));
|
||||
if (NS_FAILED(rv)) {
|
||||
aRv.Throw(rv);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return request.forget();
|
||||
}
|
||||
|
@ -98,6 +98,10 @@ public:
|
||||
already_AddRefed<nsISupports>
|
||||
IccCloseChannel(int32_t aChannel, ErrorResult& aRv);
|
||||
|
||||
already_AddRefed<nsISupports>
|
||||
MatchMvno(const nsAString& aMvnoType, const nsAString& aMatchData,
|
||||
ErrorResult& aRv);
|
||||
|
||||
IMPL_EVENT_HANDLER(iccinfochange)
|
||||
IMPL_EVENT_HANDLER(cardstatechange)
|
||||
IMPL_EVENT_HANDLER(stkcommand)
|
||||
|
Loading…
Reference in New Issue
Block a user