Bug 1120315 - Part 2: s/change/changed/. r=dimi

From 86ab7fbe1d409c9f8f7082499179e0632101a61b Mon Sep 17 00:00:00 2001
---
 dom/nfc/NfcContentHelper.js     | 4 ++--
 dom/nfc/gonk/Nfc.js             | 6 +++---
 dom/nfc/gonk/nfc_consts.js      | 2 +-
 dom/nfc/nsINfcContentHelper.idl | 4 ++--
 dom/nfc/nsNfc.js                | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)
This commit is contained in:
Yoshi Huang 2015-01-26 18:13:36 +08:00
Родитель 8fc659bf30
Коммит 01ea1ea1be
5 изменённых файлов: 9 добавлений и 9 удалений

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

@ -363,9 +363,9 @@ NfcContentHelper.prototype = {
case NFC.TAG_EVENT_LOST:
this.eventListener.notifyTagLost(result.sessionToken);
break;
case NFC.RF_EVENT_STATE_CHANGE:
case NFC.RF_EVENT_STATE_CHANGED:
this._rfState = result.rfState;
this.eventListener.notifyRFStateChange(this._rfState);
this.eventListener.notifyRFStateChanged(this._rfState);
break;
}
break;

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

@ -262,10 +262,10 @@ XPCOMUtils.defineLazyGetter(this, "gMessageManager", function () {
sessionToken: sessionToken });
},
onRFStateChange: function onRFStateChange(rfState) {
onRFStateChanged: function onRFStateChanged(rfState) {
for (let id in this.eventListeners) {
this.notifyDOMEvent(this.eventListeners[id],
{ event: NFC.RF_EVENT_STATE_CHANGE,
{ event: NFC.RF_EVENT_STATE_CHANGED,
rfState: rfState });
}
},
@ -539,7 +539,7 @@ Nfc.prototype = {
if (!message.errorMsg) {
this.rfState = message.rfState;
gMessageManager.onRFStateChange(this.rfState);
gMessageManager.onRFStateChanged(this.rfState);
}
break;
case "ReadNDEFResponse": // Fall through.

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

@ -44,7 +44,7 @@ this.PEER_EVENT_LOST = 0x02;
this.TAG_EVENT_FOUND = 0x03;
this.TAG_EVENT_LOST = 0x04;
this.PEER_EVENT_FOUND = 0x05;
this.RF_EVENT_STATE_CHANGE = 0x06;
this.RF_EVENT_STATE_CHANGED = 0x06;
// This value should sync with |SYSTEM_APP_ID| in nsINfcContentHelper.idl
this.SYSTEM_APP_ID = -1;

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

@ -31,7 +31,7 @@ interface nsITagNDEFInfo : nsISupports
readonly attribute boolean isFormatable;
};
[scriptable, uuid(be09c440-8385-4210-bb7b-7d3333ec3d43)]
[scriptable, uuid(b8a6a096-812f-4911-9407-bcae207dce97)]
interface nsINfcEventListener : nsISupports
{
/**
@ -83,7 +83,7 @@ interface nsINfcEventListener : nsISupports
* @param rfState
* RF state received from parent process
*/
void notifyRFStateChange(in DOMString rfState);
void notifyRFStateChanged(in DOMString rfState);
};
[scriptable, uuid(6c913015-9658-46a9-88d9-6ecfda2bd020)]

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

@ -600,7 +600,7 @@ MozNFCImpl.prototype = {
this.__DOM_IMPL__.dispatchEvent(event);
},
notifyRFStateChange: function notifyRFStateChange(rfState) {
notifyRFStateChanged: function notifyRFStateChanged(rfState) {
this._rfState = rfState;
},