Bug 860940 - Add static factory-style methods to create AndroidGeckoEvent instances in widget code. r=cpeterson

This commit is contained in:
Kartikaya Gupta
2013-04-17 17:39:12 -04:00
parent a56b5b95e4
commit 30b0f9b26e
5 changed files with 49 additions and 41 deletions

View File

@@ -498,11 +498,9 @@ AndroidGeckoEvent::ReadCharactersExtraField(JNIEnv *jenv)
}
void
AndroidGeckoEvent::Init(int aType, nsIntRect const& aRect)
AndroidGeckoEvent::UnionRect(nsIntRect const& aRect)
{
mType = aType;
mAckNeeded = false;
mRect = aRect;
mRect = aRect.Union(mRect);
}
uint32_t
@@ -671,14 +669,6 @@ AndroidGeckoEvent::Init(int aType)
mAckNeeded = false;
}
void
AndroidGeckoEvent::Init(int aType, int aAction)
{
mType = aType;
mAckNeeded = false;
mAction = aAction;
}
void
AndroidGeckoEvent::Init(AndroidGeckoEvent *aResizeEvent)
{