From 1e7c3319b3b637b5b8a1088b06f338af2b7d924b Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Tue, 26 May 2009 16:37:45 -0400 Subject: [PATCH] add tests for new pause/resume events --- samples/SampleBrowserPlugin/jni/main.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/samples/SampleBrowserPlugin/jni/main.cpp b/samples/SampleBrowserPlugin/jni/main.cpp index 4abc07c4c..ab95ce618 100644 --- a/samples/SampleBrowserPlugin/jni/main.cpp +++ b/samples/SampleBrowserPlugin/jni/main.cpp @@ -363,8 +363,18 @@ int16 NPP_HandleEvent(NPP instance, void* event) browser->invalidaterect(instance, NULL); } return 1; + + case kPause_ANPEventType: + gLogI.log(instance, kDebug_ANPLogType, "---- %p pause event\n", + instance); + break; - case kTouch_ANPEventType: + case kResume_ANPEventType: + gLogI.log(instance, kDebug_ANPLogType, "---- %p resume event\n", + instance); + break; + + 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);