| 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 data-name="<NAME>" data-tc="<tc>" data-path="<path>"> | 15 <body data-name="<NAME>" data-tc="<tc>" data-path="<path>"> |
| 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 <!-- The NaCl plugin will be embedded inside the element with id "listener". | 18 <!-- The NaCl plugin will be embedded inside the element with id "listener". |
| 19 See common.js.--> | 19 See common.js.--> |
| 20 | 20 |
| 21 <p>This example demonstrates using nacl_mounts ppapi_main to simplify the | 21 <p>This example demonstrates using nacl_io ppapi_main to simplify the |
| 22 creation of a PPAPI application. The ppapi_main library handles the creation | 22 creation of a PPAPI application. The ppapi_main library handles the creation |
| 23 and initialization of a pp::Instance object. The nacl_mounts library | 23 and initialization of a pp::Instance object. The nacl_io library |
| 24 intercepts standard file IO, allowing the remapping of STDOUT, and | 24 intercepts standard file IO, allowing the remapping of STDOUT, and |
| 25 STDERR.</p> | 25 STDERR.</p> |
| 26 <p>In main, we write to both STDOUT and STDERR, printing a hello world | 26 <p>In main, we write to both STDOUT and STDERR, printing a hello world |
| 27 message.</p> | 27 message.</p> |
| 28 | 28 |
| 29 <!-- The NaCl plugin will be embedded inside the element with id "listener". | 29 <!-- The NaCl plugin will be embedded inside the element with id "listener". |
| 30 See common.js.--> | 30 See common.js.--> |
| 31 <div id="listener"></div> | 31 <div id="listener"></div> |
| 32 <h1>OUTPUT</h1> | 32 <h1>OUTPUT</h1> |
| 33 <pre> | 33 <pre> |
| 34 <p><b id='outputString'></b></p> | 34 <p><b id='outputString'></b></p> |
| 35 </pre> | 35 </pre> |
| 36 </body> | 36 </body> |
| 37 </html> | 37 </html> |
| OLD | NEW |