Bug 839641 - Implement handling for APZC-reported gestures. r=Cwiiis

This commit is contained in:
Kartikaya Gupta
2013-04-26 13:26:46 -04:00
parent f466b9eb6e
commit 07289d8d0a
2 changed files with 18 additions and 3 deletions

View File

@@ -516,6 +516,14 @@ public:
return event;
}
static AndroidGeckoEvent* MakeBroadcastEvent(const nsCString& topic, const nsCString& data) {
AndroidGeckoEvent* event = new AndroidGeckoEvent();
event->Init(BROADCAST);
CopyUTF8toUTF16(topic, event->mCharacters);
CopyUTF8toUTF16(data, event->mCharactersExtra);
return event;
}
int Action() { return mAction; }
int Type() { return mType; }
bool AckNeeded() { return mAckNeeded; }