| OLD | NEW |
| 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> |
| OLD | NEW |