Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1197)

Unified Diff: native_client_sdk/src/examples/input_events/index.html

Issue 13488007: [NaCl SDK] Make the SDK examples buildable as a packaged app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license headers Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/examples/input_events/index.html
diff --git a/native_client_sdk/src/examples/input_events/index.html b/native_client_sdk/src/examples/input_events/index.html
index a77af1f8d23cba1f21306a11299437e2f06c624f..2e97b9884b825a90b29adf169d827a6a33f9393b 100644
--- a/native_client_sdk/src/examples/input_events/index.html
+++ b/native_client_sdk/src/examples/input_events/index.html
@@ -15,28 +15,24 @@ found in the LICENSE file.
<body {{attrs}}>
<h1>{{title}}</h1>
<h2>Status: <code id="statusField">NO-STATUS</code></h2>
- <button id="killButton">Kill worker thread and queue</button>
-
- <p>This example demonstrates handling of input events in PPAPI.</p>
- <p>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.</p>
+ <p>The Input Events example shows how to handle input events in a
+ multi-threaded application. The main thread converts input events to
+ non-pepper events and puts them on a queue. The worker thread pulls them
+ off of the queue, converts them to a string, and then uses
+ CallOnMainThread so that PostMessage can be send the result of the worker
+ thread to the browser.</p>
<p>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.</p>
+ <button id="killButton">Kill worker thread and queue</button>
+
<!-- The NaCl plugin will be embedded inside the element with id "listener".
See common.js.-->
<div id="listener"></div>
- <h2>Events</h2>
- <pre>
- <p><b id='eventString'>None</b></p>
- </pre>
+ <h2>Events:</h2>
+ <pre id="log" style="font-weight: bold"></pre>
</body>
</html>
« no previous file with comments | « native_client_sdk/src/examples/input_events/example.js ('k') | native_client_sdk/src/examples/input_events/input_events.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698