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

Side by Side Diff: native_client_sdk/src/examples/tutorial/filesystem_passing/index.html

Issue 690403002: [NaCl SDK] Add filesystem passing example. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 6 years, 1 month 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
« no previous file with comments | « native_client_sdk/src/examples/tutorial/filesystem_passing/filesystem_passing.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/tutorial/filesystem_passing/filesystem_passing.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698