Bug 847839 - Remove some remnants of XUL fennec from the android widget codebase. r=cpeterson

This commit is contained in:
Kartikaya Gupta 2013-03-21 16:19:49 +01:00
parent 973691f4a3
commit ff7fe4d6fe
2 changed files with 0 additions and 17 deletions

View File

@ -767,8 +767,6 @@ public:
ACTIVITY_PAUSING = 10,
ACTIVITY_SHUTDOWN = 11,
LOAD_URI = 12,
SURFACE_CREATED = 13, // used by XUL fennec only
SURFACE_DESTROYED = 14, // used by XUL fennec only
NOOP = 15,
FORCED_RESIZE = 16, // used internally in nsAppShell/nsWindow
ACTIVITY_START = 17,

View File

@ -626,21 +626,6 @@ nsAppShell::PostEvent(AndroidGeckoEvent *ae)
MutexAutoLock lock(mQueueLock);
EVLOG("nsAppShell::PostEvent %p %d", ae, ae->Type());
switch (ae->Type()) {
case AndroidGeckoEvent::SURFACE_DESTROYED:
// Give priority to this event, and discard any pending
// SURFACE_CREATED events.
mEventQueue.InsertElementAt(0, ae);
AndroidGeckoEvent *event;
for (int i = mEventQueue.Length() - 1; i >= 1; i--) {
event = mEventQueue[i];
if (event->Type() == AndroidGeckoEvent::SURFACE_CREATED) {
EVLOG("nsAppShell: Dropping old SURFACE_CREATED event at %p %d", event, i);
mEventQueue.RemoveElementAt(i);
delete event;
}
}
break;
case AndroidGeckoEvent::COMPOSITOR_CREATE:
case AndroidGeckoEvent::COMPOSITOR_PAUSE:
case AndroidGeckoEvent::COMPOSITOR_RESUME: