NO-STATUSThis example demonstrates handling of input events in PPAPI.
Each time an input event happens in the context of the gray box, the main thread in the embedded NaCl module converts it from a Pepper input event to a non-Pepper event and puts this custom event onto a shared queue. A worker thread in the embedded NaCl module reads events from the queue, and converts each event to a string and then uses CallOnMainThread to post a message describing the event back to JavaScript, which prints a message to the JavaScript console in Chrome and to a string on the page.
If you press the 'Kill worker thread and queue' button, then the main thread (which puts events on the queue) will call CancelQueue, indicating that the main thread will no longer put events on the queue. When the worker sees that the shared queue has been cancelled, the worker thread will terminate.
None