Bug 824717 - Part 3: Modify nsIMobileMessageCallback::notifySendMessageFailed() to accept an additional nsISupports message. r=vyang

This commit is contained in:
Bevis Tseng 2014-04-28 12:33:10 +08:00
Родитель 8999e1fa2f
Коммит 709665fa30
4 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -5,7 +5,7 @@
#include "nsISupports.idl" #include "nsISupports.idl"
#include "nsIDOMSmsSegmentInfo.idl" #include "nsIDOMSmsSegmentInfo.idl"
[scriptable, uuid(41db87b0-b0a1-11e3-a04f-cf487d837ee3)] [scriptable, uuid(0e6f8ace-cc59-11e3-aad5-e32847abfda1)]
interface nsIMobileMessageCallback : nsISupports interface nsIMobileMessageCallback : nsISupports
{ {
/** /**
@ -30,7 +30,7 @@ interface nsIMobileMessageCallback : nsISupports
* |message| can be nsIDOMMoz{Mms,Sms}Message. * |message| can be nsIDOMMoz{Mms,Sms}Message.
*/ */
void notifyMessageSent(in nsISupports message); void notifyMessageSent(in nsISupports message);
void notifySendMessageFailed(in long error); void notifySendMessageFailed(in long error, in nsISupports message);
/** /**
* |message| can be nsIDOMMoz{Mms,Sms}Message. * |message| can be nsIDOMMoz{Mms,Sms}Message.

Просмотреть файл

@ -138,7 +138,7 @@ MobileMessageCallback::NotifyMessageSent(nsISupports *aMessage)
} }
NS_IMETHODIMP NS_IMETHODIMP
MobileMessageCallback::NotifySendMessageFailed(int32_t aError) MobileMessageCallback::NotifySendMessageFailed(int32_t aError, nsISupports *aMessage)
{ {
return NotifyError(aError); return NotifyError(aError);
} }

Просмотреть файл

@ -192,7 +192,8 @@ SmsRequestChild::Recv__delete__(const MessageReply& aReply)
} }
break; break;
case MessageReply::TReplyMessageSendFail: case MessageReply::TReplyMessageSendFail:
mReplyRequest->NotifySendMessageFailed(aReply.get_ReplyMessageSendFail().error()); mReplyRequest->NotifySendMessageFailed(
aReply.get_ReplyMessageSendFail().error(), nullptr);
break; break;
case MessageReply::TReplyGetMessage: { case MessageReply::TReplyGetMessage: {
const MobileMessageData& data = const MobileMessageData& data =

Просмотреть файл

@ -639,7 +639,7 @@ SmsRequestParent::NotifyMessageSent(nsISupports *aMessage)
} }
NS_IMETHODIMP NS_IMETHODIMP
SmsRequestParent::NotifySendMessageFailed(int32_t aError) SmsRequestParent::NotifySendMessageFailed(int32_t aError, nsISupports *aMessage)
{ {
return SendReply(ReplyMessageSendFail(aError)); return SendReply(ReplyMessageSendFail(aError));
} }