updating sample plugin to use lifecycle events.

This commit is contained in:
Derek Sollenberger
2009-06-08 10:53:09 -04:00
parent 81a4598187
commit 9119e7d05d

View File

@@ -364,17 +364,12 @@ int16 NPP_HandleEvent(NPP instance, void* event)
}
return 1;
case kPause_ANPEventType:
gLogI.log(instance, kDebug_ANPLogType, "---- %p pause event\n",
instance);
case kLifecycle_ANPEventType:
gLogI.log(instance, kDebug_ANPLogType, "---- %p Lifecycle action=%d",
instance, evt->data.lifecycle.action);
break;
case kResume_ANPEventType:
gLogI.log(instance, kDebug_ANPLogType, "---- %p resume event\n",
instance);
break;
case kTouch_ANPEventType:
case kTouch_ANPEventType:
gLogI.log(instance, kDebug_ANPLogType, "---- %p Touch action=%d [%d %d]",
instance, evt->data.touch.action, evt->data.touch.x,
evt->data.touch.y);