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

Side by Side Diff: native_client_sdk/src/examples/hello_world/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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <!-- 3 <!--
4 Copyright (c) 2012 The Chromium Authors. All rights reserved. 4 Copyright (c) 2012 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be 5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file. 6 found in the LICENSE file.
7 --> 7 -->
8 <head> 8 <head>
9 <meta http-equiv="Pragma" content="no-cache"> 9 <meta http-equiv="Pragma" content="no-cache">
10 <meta http-equiv="Expires" content="-1"> 10 <meta http-equiv="Expires" content="-1">
11 <title>{{title}}</title> 11 <title>{{title}}</title>
12 <script type="text/javascript" src="common.js"></script> 12 <script type="text/javascript" src="common.js"></script>
13 <script type="text/javascript" src="example.js"></script> 13 <script type="text/javascript" src="example.js"></script>
14 </head> 14 </head>
15 <body {{attrs}}> 15 <body {{attrs}}>
16 <h1>{{title}}</h1> 16 <h1>{{title}}</h1>
17 <h2>Status: <code id="statusField">NO-STATUS</code></h2> 17 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
18 <p>This example demonstrates a complete NaCl PPAPI application. In 18 <p>The Hello World In C example demonstrates the basic structure of all
19 source file hello_world.c contains the three required PPAPI functions 19 Native Client applications. This example loads a Native Client module. The
20 PPP_InitializeModule, PPP_GetInterface, PPP_ShutdownModule which initialize 20 page tracks the status of the module as it load. On a successful load, the
21 the application, provide a string name to callback interface mapping, and 21 module will post a message containing the string "Hello World" back to
22 cleanup on shutdown respectively.</p> 22 JavaScript which will display it as an alert.</p>
23 <p>The example will query for the Console, PostMessage and Var interfaces to 23 <h2>Output:</h2>
24 send a message to JavaScript which will be added to the output box. In 24 <pre id="log" style="font-weight: bold"></pre>
25 addition, it will send another message to the JavaScript Console to simulate
26 logging for development.</p>
27
28 <!-- The NaCl plugin will be embedded inside the element with id "listener". 25 <!-- The NaCl plugin will be embedded inside the element with id "listener".
29 See common.js.--> 26 See common.js.-->
30 <div id="listener"></div> 27 <div id="listener"></div>
31 <h1>OUTPUT</h1>
32 <pre>
33 <p><b id='outputString'></b></p>
34 </pre>
35 </body> 28 </body>
36 </html> 29 </html>
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/hello_world/example.js ('k') | native_client_sdk/src/examples/hello_world_gles/example.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698