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

Unified Diff: native_client_sdk/src/examples/hello_world_stdio/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/hello_world_stdio/index.html
diff --git a/native_client_sdk/src/examples/hello_world_stdio/index.html b/native_client_sdk/src/examples/hello_world_stdio/index.html
index f317883b44fc3155c42363f6082eaa4d5b8d88d6..c6a4aa1ef48faa022d4c6e071a69df969cbf422c 100644
--- a/native_client_sdk/src/examples/hello_world_stdio/index.html
+++ b/native_client_sdk/src/examples/hello_world_stdio/index.html
@@ -15,23 +15,19 @@ found in the LICENSE file.
<body {{attrs}}>
<h1>{{title}}</h1>
<h2>Status: <code id="statusField">NO-STATUS</code></h2>
- <!-- The NaCl plugin will be embedded inside the element with id "listener".
- See common.js.-->
-
- <p>This example demonstrates using nacl_io ppapi_main to simplify the
- creation of a PPAPI application. The ppapi_main library handles the creation
- and initialization of a pp::Instance object. The nacl_io library
- intercepts standard file IO, allowing the remapping of STDOUT, and
- STDERR.</p>
+ <p>The Hello World Stdio example is the simplest one in the SDK. It uses the
+ ppapi_main library which creates an Module and Instance, using default
+ values to simplify setup and communication with the PPAPI system. In
+ addition, it uses the nacl_io library to remap IO to the Pepper API. This
+ simplifies IO by providing a standard blocking API and allowing STDERR to
+ go to the JavaScript console by default.</p>
<p>In main, we write to both STDOUT and STDERR, printing a hello world
- message.</p>
+ message.</p>
<!-- The NaCl plugin will be embedded inside the element with id "listener".
See common.js.-->
+ <h2>Output:</h2>
+ <pre id="log" style="font-weight:bold"></pre>
<div id="listener"></div>
- <h1>OUTPUT</h1>
- <pre>
- <p><b id='outputString'></b></p>
- </pre>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698