OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <!-- |
| 4 Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 5 Use of this source code is governed by a BSD-style license that can be |
| 6 found in the LICENSE file. |
| 7 --> |
| 8 <head> |
| 9 <meta http-equiv="Pragma" content="no-cache"> |
| 10 <meta http-equiv="Expires" content="-1"> |
| 11 <title>{{title}}</title> |
| 12 <script type="text/javascript" src="common.js"></script> |
| 13 <script type ="text/javascript" src="example.js"></script> |
| 14 </head> |
| 15 <body {{attrs}}> |
| 16 <h1>{{title}}</h1> |
| 17 <h2>Status: <code id="statusField">NO-STATUS</code></h2> |
| 18 <p> |
| 19 This example shows how to pass a Chrome FileSystem to the Native Client |
| 20 module. The standard Pepper FileSystem (see examples/api/file_io) only |
| 21 allows you to write to a sandboxed filesystem, but the Chrome FileSystem |
| 22 allows you to write directly to a directory on the user's filesystem. |
| 23 </p> |
| 24 <p>The Chrome FileSystem is only supported for Chrome Apps.</p> |
| 25 <p> |
| 26 Click the button below and choose a directory. A new FileSystem will be |
| 27 created which contains that directory. It will then be passed to the Native |
| 28 Client module, where it will be used to write a file in that directory |
| 29 called hello_from_nacl.txt. |
| 30 </p> |
| 31 <div> |
| 32 <input type="button" id="choosedir" value="Choose Directory"> |
| 33 <pre id="log"></pre> |
| 34 <div id="listener"></div> |
| 35 </body> |
| 36 </html> |
OLD | NEW |